CI Failure Information
CI Run Link: https://github.com/coder/coder/actions/runs/26023143468
Job: test-go-pg (ubuntu-latest) (job ID: 76489624441)
Commit: b7a282d544a18c06b20242a4b48f6c08c0a49187 — "fix(enterprise/coderd/prebuilds): downgrade reconciliation stats log to debug (#25340)" by Danny Kopping
Failure Details
Test: enterprise/cli.TestBoundaryLicenseVerification/AGPLDeployment
Error Snippet:
Error "running command \"coder boundary\": failed to get entitlements:
github.com/coder/coder/v2/enterprise/cli.(*RootCmd).verifyLicense
/home/runner/work/coder/coder/enterprise/cli/boundary.go:46
- Get "http://127.0.0.1:37907/api/v2/entitlements": net/http: HTTP/1.x transport connection broken: http: CloseIdleConnections called" does not contain "your deployment appears to be an AGPL deployment"
Test Summary: DONE 23918 tests, 65 skipped, 2 failures in 318.789s
Root Cause Analysis
- No data race warnings detected in the job logs.
- No panic/OOM indicators detected.
- Failure matches the recurring
CloseIdleConnections flake pattern where a shared/default HTTP transport is closed while a request is in flight.
- The CLI client created during the command execution uses the config-derived URL/session token but not the isolated HTTP transport from the test setup, so it may still share the default transport with other parallel tests that call
CloseIdleConnections.
Assignment Analysis
- Failing test function:
TestBoundaryLicenseVerification (subtest AGPLDeployment) in enterprise/cli/boundary_test.go (around line ~197).
- Recent file history (
git log --oneline --follow enterprise/cli/boundary_test.go via GitHub):
4a6756a3 — fix: isolate test HTTP clients (#25038) — Thomas Kosiewski
15c61906 — test: fix flaky boundary test (#21660) — Yevhenii Shcherbina
- Assigning to @ThomasK33 as the most recent substantive modifier of the failing test file and recent HTTP client isolation changes.
Related Issues
Reproduction
go test ./enterprise/cli -run TestBoundaryLicenseVerification/AGPLDeployment -count=1
CI Failure Information
CI Run Link: https://github.com/coder/coder/actions/runs/26023143468
Job: test-go-pg (ubuntu-latest) (job ID: 76489624441)
Commit: b7a282d544a18c06b20242a4b48f6c08c0a49187 — "fix(enterprise/coderd/prebuilds): downgrade reconciliation stats log to debug (#25340)" by Danny Kopping
Failure Details
Test:
enterprise/cli.TestBoundaryLicenseVerification/AGPLDeploymentError Snippet:
Test Summary: DONE 23918 tests, 65 skipped, 2 failures in 318.789s
Root Cause Analysis
CloseIdleConnectionsflake pattern where a shared/default HTTP transport is closed while a request is in flight.CloseIdleConnections.Assignment Analysis
TestBoundaryLicenseVerification(subtestAGPLDeployment) inenterprise/cli/boundary_test.go(around line ~197).git log --oneline --follow enterprise/cli/boundary_test.govia GitHub):4a6756a3— fix: isolate test HTTP clients (#25038) — Thomas Kosiewski15c61906— test: fix flaky boundary test (#21660) — Yevhenii ShcherbinaRelated Issues
CloseIdleConnectionsflakes #1020 (shared/default HTTP transportCloseIdleConnectionsflakes)Reproduction