Skip to content

Commit

Permalink
ci: Set the tests sleeps multiplier as env variable
Browse files Browse the repository at this point in the history
While we're trying to do this smartly checking the build information for
the binaries we're testing, this doesn't work particularly well in some
test binaries (debug.BuildInfo Settings are inconsistently exposed).

So, let's just be consitent in CI, ensuring that wait times are
multiplied as expected.
  • Loading branch information
3v1n0 committed Feb 27, 2025
1 parent ab0b21b commit c19590f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ jobs:
if: matrix.test == 'race'
env:
GO_TESTS_TIMEOUT: 35m
AUTHD_TESTS_SLEEP_MULTIPLIER: 3
run: |
go test -json -timeout ${GO_TESTS_TIMEOUT} -race ./... | \
gotestfmt --logfile "${AUTHD_TEST_ARTIFACTS_PATH}/gotestfmt.race.log"
Expand All @@ -258,6 +259,7 @@ jobs:
CGO_CFLAGS: "-O0 -g3 -fno-omit-frame-pointer"
G_DEBUG: "fatal-criticals"
GO_TESTS_TIMEOUT: 30m
AUTHD_TESTS_SLEEP_MULTIPLIER: 1.5
# Use these flags to give ASAN a better time to unwind the stack trace
GO_GC_FLAGS: -N -l
run: |
Expand Down

0 comments on commit c19590f

Please sign in to comment.