Skip to content

flake: TestWorkspaceTagsTerraform/overrides_with_dynamic_option_from_var/dynamic #1470

@flake-investigator

Description

@flake-investigator

CI Run Link: https://github.com/coder/coder/actions/runs/24493089585
Failing Job: https://github.com/coder/coder/actions/runs/24493089585/job/71581975520 (test-go-pg (windows-2022))
Failure time: 2026-04-16T05:22:19Z (same window as Slack alert)

Commit Info:

  • SHA: fded2cb5c96a0e44a090c61464e3a38c828864f3
  • Author: Kayla はな
  • Commit: coder/coder@fded2cb

Failure evidence:

=== FAIL: enterprise/coderd TestWorkspaceTagsTerraform/overrides_with_dynamic_option_from_var/dynamic
    coderdtest.go:1162:
        Error Trace: /home/runner/work/coder/coder/enterprise/coderd/coderdtest/coderdtest.go:1162
                     /home/runner/work/coder/coder/enterprise/coderd/workspaces_test.go:3503
                     /home/runner/work/coder/coder/enterprise/coderd/workspaces_test.go:3417
        Error:       Condition never satisfied
        Messages:    make sure you set `IncludeProvisionerDaemon`!
DONE 19903 tests, 153 skipped, 3 failures in 747.162s

Notes:

  • The “3 failures” count appears to be the subtest + parent test + package failure for this single failing subtest; only one distinct failing test was observed in logs.

Root cause assessment:

  • Likely flaky test / timing around external provisioner daemon readiness. This test intentionally sets IncludeProvisionerDaemon: false and spins up an external Terraform provisioner daemon. The failure indicates the job never became ready within the polling window, triggering the generic “IncludeProvisionerDaemon” message from the wait helper.

Data race / panic / OOM checks:

  • Searched job logs for WARNING: DATA RACE, panic:, out of memory, signal: killed — none found.

Precise assignment analysis:

  • Intended blame target:
    • git blame -L 3410,3520 enterprise/coderd/workspaces_test.go (covers workspaceTagsTerraform and the failing subtest)
  • Recent test file history:
    • git log --oneline -10 --follow enterprise/coderd/workspaces_test.go
    • Most recent substantive change touching the workspace tags Terraform tests is f543a87b (Kacper Sawicki) “chore: cache terraform providers for workspaces terraform tests (#20603)”, which updated TestWorkspaceTagsTerraform helpers.

Assignment:

  • Best candidate: @kacpersaw (most recent meaningful changes to the workspace tags Terraform tests; see commit f543a87b).

Related issues (different failure modes):

Reproduction (best effort):

  • go test ./enterprise/coderd -run TestWorkspaceTagsTerraform/overrides_with_dynamic_option_from_var/dynamic -count=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions