Skip to content

test(cli): increase timeouts to fix Golden test flakes under CI load#26464

Draft
DanielleMaywood wants to merge 1 commit into
mainfrom
fix/cli-task-logs-golden-flake
Draft

test(cli): increase timeouts to fix Golden test flakes under CI load#26464
DanielleMaywood wants to merge 1 commit into
mainfrom
fix/cli-task-logs-golden-flake

Conversation

@DanielleMaywood

Copy link
Copy Markdown
Contributor

Note

🤖 This PR was written by Coder Agent on behalf of Danielle Maywood

The gen CI job runs TZ=UTC go test ./cli -run="Test(CommandHelp|ServerYAML|ErrorExamples|.*Golden)" -update, which executes all matching tests in a single go test invocation with full parallelism. Several subtests spin up their own coderd with provisioner daemons (setupCLITaskTest with IncludeProvisionerDaemon: true, prepareTestData with IncludeProvisionerDaemon: true). Under CI load, the 25-second testutil.WaitLong timeout is insufficient for provisioning operations to complete, causing context deadline exceeded errors across Test_TaskLogs_Golden, TestCommandHelp, and other golden tests.

Increase all setup and command execution timeouts from testutil.WaitLong (25s) to testutil.WaitSuperLong (60s) in the task test files and prepareTestData. This follows the precedent set by #21725, which fixed a similar timeout flake in TestGitSSH.

Closes coder/internal#1561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flake: Test_TaskLogs_Golden (multiple variants)

1 participant