Граф коммитов

100 Коммитов

Автор SHA1 Сообщение Дата
Kevin Meinhardt daee988fcd
Remove initialize_docker: Integrate data initialization to make up (#22663)
* Integrate initialize command into make up flow

Rename "initialize_data" to "initialize"

Remove DOCKER_SERVICES as dangerous option given hard dependency on mysqld and elasticsearch.

Better timing for mysql healthcheck

* Partial revert of setup-ui-tests

* Fix initialization should always reindex

* TMP: fix
2024-10-11 19:08:39 +02:00
Mathieu Pillard 24dd2ee5c2
Make assets step in Dockerfile depend on locales, for jsi18n files (#22717)
* Make assets step in Dockerfile depend on locales, for jsi18n files
* Only depend on locales stage for files we need to copy over
2024-10-09 15:05:31 +02:00
Mathieu Pillard bc34e66cfa
Fix user-media loading in local environments (#22732)
* Fix user-media loading in local environments

URLs with /user-media/foo should map to
<root_storage>/user-media/shared_storage/uploads/ on the filesystem.
2024-10-07 17:51:50 +02:00
Mathieu Pillard 020bafff59
Revert "Move assets stage to production only image (#22710)" (#22723)
This reverts commit 27dd5fd1c1.
2024-09-30 14:48:43 +02:00
Kevin Meinhardt 27dd5fd1c1
Move assets stage to production only image (#22710)
* Simplify static file mounts in nginx

* Only compile assets in production image

* TMP: ensure volume dirs exist

* TMP: use django to create staticfile dirs

* Update src/olympia/core/apps.py

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* Update src/olympia/lib/settings_base.py

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-09-27 23:23:59 +02:00
Kevin Meinhardt 90f997a2d2
Small fixes to docker setup (logs, static file routing, healthcheck, dockerignore) (#22679)
* Only log docker compose if specified in CI run-docker step

* Better and alphabetized ignore paths for git and docker

* Less aggressive post start health checks

* Clean up redundant code

* Add better documentation about dockerignore/gitignore

* Update start period
2024-09-24 19:54:25 +02:00
Kevin Meinhardt 2a64618e9d
Enable Production Mode via DEBUG or docker-compose.ci.yml (#22613)
* TMP: clean bake metadata file

* SPLIT: Log UWSGI in docker compose console

Remove PID

* SPLIT: Raise error in update_assets if file not found

* Enable Production mode via DEBUG and or docker-compose.ci.yml

* Option 1: Load node_modules from statifiles directory

* Option 2: Load node_modules via django-node-asset

* separate ./static from locally built static files

* Add docs for static file serving

* TMP: fixes from code review

* Update docs/topics/development/static-files.md

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* TMP: update docs

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-09-05 16:20:03 +02:00
Kevin Meinhardt f5d21109a9
Use default buildx builder for faster build (#22631)
* Use default buildx builder for faster build

* Update Docs

* Rename metadata.json

* Remove uneeded build.py

* TMP: clarify the reason for docker driver

* Keep explicit builder declaration for backwards compatibility

* TMP: shorten metadata file
2024-09-04 15:30:38 +02:00
Kevin Meinhardt d63e7e7fb1
Create release with template and release notes (#22622)
* Create release with template and release notes

* TMP: update from comments

* TMP: update release template with changelog sections

* TMP: use release hero input for GITHUB_USER template variable

* Rename LATEST -> PREVIOUS

* TMP: apply typo fix
2024-09-04 11:29:12 +02:00
Kevin Meinhardt 5a274e1a00
Only run verify build metadata on upstream PRs (#22633) 2024-09-04 10:17:22 +02:00
Kevin Meinhardt d396ce433c
Use Bakefile to build image (#22611)
* Use Bakefile to build image

* TMP: better tests and lint fix
2024-09-03 15:24:54 +02:00
Kevin Meinhardt b410505cf3
CI: Only run push locales on push events (#22589)
* CI: Only run push locales on push events

* TMP: also run push on pull requests

* TMP: revert the push check
2024-08-22 15:49:45 +02:00
Kevin Meinhardt 84d514e744
Remove version.json file from host environment (#22571)
* Remove version.json file from host environment

* tmp: fix

* TMP: fix tests

* TMP: remove unecessary test

* TMP: fix test for get_version_json

* TMP: fixy
2024-08-21 10:33:31 +02:00
Kevin Meinhardt 564b67bdcd
Remove -next suffix from image tags (#22568)
fixes: mozilla/addons#14964
2024-08-14 11:31:04 +02:00
Kevin Meinhardt a80e4c6350
Push production docker images to both registries (#22546)
* test patch

* TMP: test using the branch in all cases.

* TMP: update event action condition
2024-08-07 18:32:30 +02:00
Kevin Meinhardt 884d1c4669
Convert .rst files to MyST style markdown (#22467)
* Convert .rst files to MyST style markdown

* TMP: convert literal text back to emphasis

* TMP: fix from previous commit, bring back literals where we had them
2024-07-17 21:05:00 +02:00
Kevin Meinhardt 42160ee861
Mozilla/addons/issues/14823-build-bake (#22453)
* Split build and authentication from _build.yml to separate actions, remove _build.yml

* Push production Docker images in CI

* TMP: Provide fallback for non fork CI image build name
2024-07-11 15:05:52 +02:00
Kevin Meinhardt 002ce4253a
Include github event and triggering workflow for reusable workflow concurrency groups (#22457) 2024-07-09 19:10:43 +02:00
Kevin Meinhardt 8d4b227677
Fix github action workflow syntax issues and update docs (#22455)
* Unify concurrency and inputs for triggerable github action workflows

* Remove CI splits input from workflow dispatch trigger

* Update github action docs
2024-07-09 17:56:32 +02:00
Kevin Meinhardt 0d7ae9d568
Use reusable workflow for executing docker build (#22446)
* Use composite workflow for executing docker build

* TMP: unify inputs for _build
2024-07-09 11:03:44 +02:00
Kevin Meinhardt 91e213b937
Read full input ref from json to enforce data type (#22445) 2024-07-08 11:27:55 +02:00
Kevin Meinhardt de25c329f7
Split test jobs to callable workflows (#22434)
* Split test jobs to callable workflows

TMP: fix splits value

TMP: remove other jobs

Use number

TMP: remove comments

* Organize _test jobs via strategy matrix
2024-07-03 13:00:42 +02:00
Kevin Meinhardt d8dec7a6d8
Update PULL_REQUEST_TEMPLATE.md (#22415)
* Update PULL_REQUEST_TEMPLATE.md

* Update PULL_REQUEST_TEMPLATE.md
2024-06-25 14:26:28 +02:00
Kevin Meinhardt 0d9c7e9b73
Login to GAR (#22405) 2024-06-25 12:21:01 +02:00
Kevin Meinhardt c6e28044d9
Use more explicit syntax in push locales conditional expression (#22386) 2024-06-21 18:13:19 +02:00
Kevin Meinhardt 61dd5120be
Remove unecessary release.yml workflow (#22385) 2024-06-20 10:04:44 +02:00
Kevin Meinhardt f9130dfe58
Updated PR template (#22365)
* Updated PR template

* TMP: add docs check

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>

* Update .github/PULL_REQUEST_TEMPLATE.md

Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>

---------

Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
2024-06-20 09:09:12 +02:00
Kevin Meinhardt 3e95b58854
Escape json blob in context job (#22381)
* Escape json blob in context job

* TMP: escape context blob in release.yml
2024-06-19 18:02:57 +02:00
Kevin Meinhardt 2f365811de
Add logs for github output (#22368) 2024-06-14 16:44:38 +02:00
Kevin Meinhardt 7e62135104
Jobs to release_master/tag in release workflow (#22367) 2024-06-14 16:27:23 +02:00
Kevin Meinhardt 21a632122e
Rename-release (#22364)
* Add on pull request

* Remove pull request trigger

* Release workflow ready to trigger deploy-amo

* Run release in ci to ensure tests are run and reuse the existing build job

* Add release workflow to decouple ci from cd and to wait for entire workflow to finish before triggering deployment
2024-06-14 14:01:12 +02:00
Kevin Meinhardt 8fc73b3a30
Split tests for faster execution (#22318)
* Split tests for faster execution

* TMP: remove uneeded step

* TMP: revert remove assertNumQueries

* TMP: sort directories for logs

* TMP: Missing }

* TMP: unify default splits
2024-06-13 16:59:58 +02:00
Kevin Meinhardt 13aa55a76d
Rename release workflow (#22362)
* Rename release workflow

* Really rename it.

* Add on pull request

* Remove pull request trigger
2024-06-12 19:36:06 +02:00
Kevin Meinhardt 5057769097
TMP: remove workflow dispatch (#22361) 2024-06-12 18:48:54 +02:00
Kevin Meinhardt ff8a6c5983
Listen to all release events (#22360) 2024-06-12 18:43:26 +02:00
Kevin Meinhardt 3743cf0489
FIx typos in release.yml (#22359) 2024-06-12 18:28:57 +02:00
Kevin Meinhardt 2d591be6d6
Auto-release (#22358)
* Add created/edited to release.yml

* TMP: udpate name
2024-06-12 17:56:01 +02:00
Kevin Meinhardt be6a1a312c
Add workflow to log context on release events (#22357)
* Add workflow to log context on release events

* Update .github/workflows/release.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-06-12 17:04:08 +02:00
Kevin Meinhardt fe02ae8d7d
Wait for build docs before deploying (#22356) 2024-06-12 15:53:29 +02:00
Kevin Meinhardt f4c10c50f6
Merge docs/extract locales to CI workflow (#22352)
* Merge docs/extract locales to CI workflow

* Update .github/workflows/ci.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* TMP: use official dependabot check

* TMP: clean up logic, split push from default branch. use better default branch check

* TMP: use bash string comparison syntax for all if comparisons

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-06-12 15:20:22 +02:00
Mathieu Pillard cfa81948ac
Don't attempt to push an image if actor is dependabot (#22343)
Dependabot doesn't (and shouldn't) have access to secrets, so it
can't push the temporary image built for its PR. This changes prevents
GitHub actions from attempting to push that image (overall job will be
slower but should succeed).
2024-06-10 16:37:13 +02:00
Kevin Meinhardt 7b94d8f736
Add version suffix and enable push on master (#22331)
* Add prefix and enable push on master

* Update .github/actions/build-docker/action.yml

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-06-06 18:44:09 +02:00
Kevin Meinhardt 80529f9dc8
Run CI on push to master (#22330)
* Run CI on push to master

* Only push image on non forks
2024-06-06 17:39:28 +02:00
Kevin Meinhardt a790d973a2
Refactor CI workflow and enable parallelization (#22306)
* Fix flaky tests

* Reorganize and consolidate CI workflows

* TMP: squash

* TMP: recomment
2024-06-06 14:03:42 +02:00
Kevin Meinhardt 299dc4922b
More efficient utilization of github action cache (#22314)
* More efficient utilization of github action cache

* Set cache from/to only in CI

* Update Dockerfile

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-06-05 14:48:42 +02:00
Kevin Meinhardt ee3a753da0
Hardcode artifact name for docs deployment. (#22304) 2024-05-31 13:11:00 +02:00
Kevin Meinhardt ef033d0c8a
Implement All CircleCI tests in github actions (#22250)
* TMP: move test definition to make file

TMP: squash

* TMP: add the github version

* TMP: squash (no need to parallelize this test)
2024-05-31 11:53:45 +02:00
Kevin Meinhardt f4bdaec5bb
Add configurable compose file to make up flow (#22299) 2024-05-30 13:02:26 +02:00
Kevin Meinhardt 6b3b067097
Cache ./deps directory in CI to speed up installation (#22280) 2024-05-30 12:52:54 +02:00
Kevin Meinhardt a3d861e168
Limit concurrency group to PR on the same branch (#22284) 2024-05-27 16:08:53 +02:00