Skip to content

Commit 6f43117

Browse files
committed
test: Increase timeouts to reduce flakes
It's difficult to understand what's timing out due to a lock vs. taking a long time. This should help resolve! 🕵️
1 parent 10dc9e3 commit 6f43117

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/coder.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
run: gotestsum --junitfile="gotests.xml" --packages="./..." --
210210
-covermode=atomic -coverprofile="gotests.coverage"
211211
-coverpkg=./...,github.com/coder/coder/codersdk
212-
-timeout=3m -count=$GOCOUNT -short -failfast
212+
-timeout=5m -count=$GOCOUNT -short -failfast
213213

214214
- name: Upload DataDog Trace
215215
if: always() && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
@@ -316,7 +316,7 @@ jobs:
316316
deploy:
317317
name: "deploy"
318318
runs-on: ubuntu-latest
319-
timeout-minutes: 20
319+
timeout-minutes: 30
320320
if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
321321
permissions:
322322
contents: read

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ test: test-clean
115115
.PHONY: test-postgres
116116
test-postgres: test-clean
117117
DB=ci gotestsum --junitfile="gotests.xml" --packages="./..." -- \
118-
-covermode=atomic -coverprofile="gotests.coverage" -timeout=5m \
118+
-covermode=atomic -coverprofile="gotests.coverage" -timeout=10m \
119119
-coverpkg=./...,github.com/coder/coder/codersdk \
120120
-count=1 -parallel=1 -race -failfast
121121

cli/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func TestServer(t *testing.T) {
5656
assert.NoError(t, err)
5757
client = codersdk.New(accessURL)
5858
return true
59-
}, 15*time.Second, 25*time.Millisecond)
59+
}, time.Minute, 50*time.Millisecond)
6060
_, err = client.CreateFirstUser(ctx, codersdk.CreateFirstUserRequest{
6161
Email: "some@one.com",
6262
Username: "example",

0 commit comments

Comments
 (0)