-
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,14 @@ jobs: | |
synk-security-scan: | ||
name: Snyk security scan | ||
runs-on: ubuntu-latest | ||
# 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 | ||
Comment on lines
+10
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. scratch that, still not working.. opened a separate issue to fix this |
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Python | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,15 +183,24 @@ def test_next_escalation_policy_snapshot(escalation_snapshot_test_setup): | |
|
||
@pytest.mark.django_db | ||
@pytest.mark.parametrize( | ||
"next_step_eta,expected", | ||
"timedelta,time_in_past,expected", | ||
[ | ||
(None, None), | ||
(timezone.now() - timezone.timedelta(weeks=50), False), | ||
(timezone.now() - timezone.timedelta(minutes=4), True), | ||
(timezone.now() + timezone.timedelta(minutes=4), True), | ||
Comment on lines
-189
to
-191
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the fact that |
||
(None, None, None), | ||
(timezone.timedelta(weeks=50), True, False), | ||
(timezone.timedelta(minutes=4), True, True), | ||
(timezone.timedelta(minutes=4), False, True), | ||
], | ||
) | ||
def test_next_step_eta_is_valid(escalation_snapshot_test_setup, next_step_eta, expected) -> None: | ||
def test_next_step_eta_is_valid(escalation_snapshot_test_setup, timedelta, time_in_past, expected) -> None: | ||
now = timezone.now() | ||
|
||
if timedelta is None: | ||
next_step_eta = None | ||
elif time_in_past: | ||
next_step_eta = now - timedelta | ||
else: | ||
next_step_eta = now + timedelta | ||
|
||
alert_group, _, _, _ = escalation_snapshot_test_setup | ||
escalation_snapshot = alert_group.escalation_snapshot | ||
|
||
|
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...)