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

fix flaky tests + increase runner size when building docker image #4502

Merged
merged 4 commits into from
Jun 11, 2024

Conversation

joeyorlando
Copy link
Contributor

@joeyorlando joeyorlando added pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes labels Jun 11, 2024
@joeyorlando joeyorlando requested a review from a team June 11, 2024 14:17
Comment on lines -189 to -191
(timezone.now() - timezone.timedelta(weeks=50), False),
(timezone.now() - timezone.timedelta(minutes=4), True),
(timezone.now() + timezone.timedelta(minutes=4), True),
Copy link
Contributor Author

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

Comment on lines +10 to +17
# 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
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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

#4503

@@ -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
Copy link
Contributor Author

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...)

@joeyorlando joeyorlando merged commit a4e399c into dev Jun 11, 2024
19 checks passed
@joeyorlando joeyorlando deleted the jorlando/fix-flaky-tests branch June 11, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates release:ignore PR will not be added to release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant