-
Notifications
You must be signed in to change notification settings - Fork 84
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
Build docker on PRs, and inline docker GHA config #584
Conversation
This config seemed to build arm wheels much more quickly and I've no idea why!?!!
This reverts commit c733ced.
poetry install
verbosely@@ -26,7 +26,7 @@ COPY --chown=sydent:sydent ["sydent", "sydent"] | |||
COPY --chown=sydent:sydent ["README.rst", "pyproject.toml", "poetry.lock", "./"] | |||
|
|||
# Install dependencies | |||
RUN python -m poetry install --no-dev --no-interaction --extras "prometheus sentry" | |||
RUN python -m poetry install -vv --no-dev --no-interaction --extras "prometheus sentry" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you still want the -vv
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My thinking was to leave it in as it can't do any harm.
@@ -59,6 +59,22 @@ jobs: | |||
packaging: | |||
uses: "matrix-org/backend-meta/.github/workflows/packaging.yml@v1" | |||
|
|||
docker: | |||
# Sanity check that we can build the x64 image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just x64 because arm is slow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was my thinking, yeah.
The latest release's CI hung. It's spent over 3 hours doing a docker build, and I've no idea why: https://github.com/matrix-org/sydent/actions/runs/6932931412
To try to debug this I tried:
poetry install -vv
. I don't think this made much difference to the logs that were generated. Might need-vvv
, or a newer Poetry version? (This repo uses 1.2.x in CI, I think.)I'd like to try this on
main
to see if the docker build magically becomes fast again.