Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lets just try dockah #15585

Merged
merged 77 commits into from Mar 14, 2024
Merged

lets just try dockah #15585

merged 77 commits into from Mar 14, 2024

Conversation

ewdurbin
Copy link
Member

@ewdurbin ewdurbin commented Mar 13, 2024

everything else involved (dev, prod) is docker, why not ci?

yeee, fucking, haw.

closes #15583.

@ewdurbin ewdurbin marked this pull request as ready for review March 14, 2024 00:51
@ewdurbin ewdurbin requested a review from a team as a code owner March 14, 2024 00:51
sudo apt -y install libcurl4-openssl-dev libssl-dev pkg-config libxml2-dev libxslt-dev
- uses: actions/setup-python@v5
- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exposes the necessary variables for the gha cache type to work for docker layers, see https://docs.docker.com/build/cache/backends/gha/#authentication

cache-source: var-lib-apt
cache-target: /var/lib/apt
skip-extraction: ${{ steps.cache-var-lib-apt.outputs.cache-hit }}
- name: inject root-cache-pip into docker
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these combined with the normal "cache" steps help us persist RUN --mount=type=cache caches between runs improving our pip/apt/npm install times.

- name: Dependencies
command: bin/github-actions-deps
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something goes wrong trying to run git in the container. without the gha specific deps job... we burn an extra minute of CI every run :/

@@ -39,7 +39,7 @@ build-mos: compile-pot
translations: compile-pot
ifneq ($(GITHUB_ACTIONS), false)
cd ../../; \
git diff --quiet ./warehouse/locale/messages.pot || (echo "There are outstanding translations, run 'make translations' and commit the changes."; exit 1)
cmp -s ./warehouse/locale/messages.pot /opt/warehouse/src/warehouse/locale/messages.pot || (echo "There are outstanding translations, run 'make translations' and commit the changes."; exit 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this leverages the fact that we have a copy of the messages.pot from the build step since git diff doesn't work in the container.

.github/workflows/ci.yml Show resolved Hide resolved
warehouse/forklift/legacy.py Outdated Show resolved Hide resolved
@ewdurbin ewdurbin enabled auto-merge (squash) March 14, 2024 14:57
@ewdurbin ewdurbin merged commit cca230b into main Mar 14, 2024
17 checks passed
@ewdurbin ewdurbin deleted the gha_docker branch March 14, 2024 15:03
ewdurbin added a commit that referenced this pull request Mar 14, 2024
ewdurbin added a commit that referenced this pull request Mar 14, 2024
This reverts commit cca230b.

Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants