-
Notifications
You must be signed in to change notification settings - Fork 307
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
fix flaky tests + increase runner size when building docker image #4502
Conversation
(timezone.now() - timezone.timedelta(weeks=50), False), | ||
(timezone.now() - timezone.timedelta(minutes=4), True), | ||
(timezone.now() + timezone.timedelta(minutes=4), True), |
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.
I think the fact that timezone.now
was being invoked before the actual test was running was causing some funkiness w/ pytest-xdist
# see this PR regarding the permissions needed for this workflow | ||
# https://github.com/snyk/actions/pull/79 | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read |
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.
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.
scratch that, still not working.. opened a separate issue to fix this
@@ -13,7 +13,7 @@ on: | |||
jobs: | |||
build-engine-docker-image-and-publish-to-dockerhub: | |||
name: Build engine Docker image and publish to Dockerhub | |||
runs-on: ubuntu-latest | |||
runs-on: ubuntu-latest-16-cores |
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.
trying to see if I can speed up building of our multi-platform Docker image (linux/arm64 + linux/amd64) by just throwing more resources at it.. it seems that installing the Python deps on linux/arm64 takes ~400s
alternative here would be to build the different image variants on different hardware and publish the image manifest separately (something like this, seems much more involved...)
Which issue(s) this PR closes
Closes https://github.com/grafana/oncall-private/issues/2733