Skip to content

flake: TestBoundaryLicenseVerification/AGPLDeployment #1538

@flake-investigator

Description

@flake-investigator

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions