Skip to content

Commit 85c0916

Browse files
committed
ci: add retry for flaky WASM tests
1 parent c9647f3 commit 85c0916

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/build-test.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,21 @@ jobs:
7474
- name: "Run WASM Tests"
7575
# There's a whole bunch of vars in the environment that aren't needed for running this test, so we clear them out.
7676
# NOTE: if you need to do this in the future, I recommend bashing into the container and running `env | sort | less`
77-
run: |-
78-
GOOS=js \
79-
GOARCH=wasm \
80-
cleanenv \
81-
-remove-prefix GITHUB_ \
82-
-remove-prefix ANDROID_ \
83-
-remove-prefix JAVA_ \
84-
-remove-prefix DOTNET_ \
85-
-remove-prefix RUNNER_ \
86-
-remove-prefix HOMEBREW_ \
87-
-remove-prefix runner_ \
88-
-- \
89-
go test ./pkg/wasm/... -exec $(go env GOPATH)/bin/wasmbrowsertest
77+
# NOTE: wasmbrowsertest can have flaky websocket timeouts, so we retry up to 3 times
78+
uses: "nick-fields/retry@v3"
79+
with:
80+
max_attempts: 3
81+
timeout_minutes: 5
82+
command: |-
83+
GOOS=js \
84+
GOARCH=wasm \
85+
cleanenv \
86+
-remove-prefix GITHUB_ \
87+
-remove-prefix ANDROID_ \
88+
-remove-prefix JAVA_ \
89+
-remove-prefix DOTNET_ \
90+
-remove-prefix RUNNER_ \
91+
-remove-prefix HOMEBREW_ \
92+
-remove-prefix runner_ \
93+
-- \
94+
go test ./pkg/wasm/... -exec $(go env GOPATH)/bin/wasmbrowsertest

0 commit comments

Comments
 (0)