You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test TestWorkspaceProxyWorkspaceApps_BlockDirect/WorkspaceAppsProxySubdomain/ProxyError failed on Windows during the nightly gauntlet run. This appears to be a different failure pattern from the existing issue #112, which reports "failed to reach the Coordinate endpoint" errors.
The test took 15.28 seconds and failed, but the specific error details from the logs show extensive workspace proxy and agent shutdown sequences, suggesting this may be related to cleanup timing issues or resource management during test teardown.
Root Cause Assessment
This appears to be a timing/cleanup issue in the workspace proxy test teardown. The logs show extensive shutdown sequences for:
Agent lifecycle state reporting
Tailnet connection cleanup
Workspace proxy server shutdown
DERP connection cleanup
Provisioner daemon shutdown
The failure may be related to:
Race conditions during test cleanup
Timing sensitivity on Windows platform
Resource cleanup ordering issues
Network connection teardown timing
Assignment Analysis
Used git blame on enterprise/wsproxy/wsproxy_test.go line 1001 (test function):
Primary author: Colin Adler (original test author, 2024-03-07)
Most recent wsproxy flake fixes: Dean Sheather (commit 9d148e954, "chore: fix wsproxy flakes (#18522)")
Assigning to @deansheather based on recent work on wsproxy flake fixes.
changed the title [-]flake: TestWorkspaceProxyWorkspaceApps_BlockDirect/WorkspaceAppsProxySubdomain/ProxyError[/-][+]flake: TestWorkspaceProxyWorkspaceApps/WorkspaceAppsProxySubdomain/ProxyError[/+]on Oct 15, 2025
The workspace proxy returned a 502 error when trying to issue a signed app token because the agent was in a "disconnected" state instead of "connected".
Analysis
This is a reoccurrence of the same timing/race condition, but now observed on macOS instead of Windows. The test attempts to access a workspace app before the agent has fully established its connection state.
The error occurred at approximately 04:17:31 when the test tried to access test-app-fake via the workspace proxy, but the agent state check reported the agent as "disconnected".
Pattern
Both the Windows (original) and macOS (this) occurrences show timing-sensitive behavior around:
Agent connection state transitions
Workspace proxy app validation
Agent lifecycle reporting
This suggests the fix needs to ensure proper synchronization/waiting for agent connectivity before attempting workspace app access in tests.
Activity
ethanndickson commentedon Sep 10, 2025
Likely same cause as #960
[-]flake: TestWorkspaceProxyWorkspaceApps_BlockDirect/WorkspaceAppsProxySubdomain/ProxyError[/-][+]flake: TestWorkspaceProxyWorkspaceApps/WorkspaceAppsProxySubdomain/ProxyError[/+]blink-so commentedon Oct 15, 2025
New Occurrence - 2025-10-15
CI Run Link: https://github.com/coder/coder/actions/runs/18517423772
Commit: e0b15360757e3f08a59c1439790ec1a48cd5d308
Platform: macOS (nightly-gauntlet)
Date: 2025-10-15 04:19:59 GMT
Error Details
The test failed with:
Test Output:
The workspace proxy returned a 502 error when trying to issue a signed app token because the agent was in a "disconnected" state instead of "connected".
Analysis
This is a reoccurrence of the same timing/race condition, but now observed on macOS instead of Windows. The test attempts to access a workspace app before the agent has fully established its connection state.
The error occurred at approximately 04:17:31 when the test tried to access
test-app-fakevia the workspace proxy, but the agent state check reported the agent as "disconnected".Pattern
Both the Windows (original) and macOS (this) occurrences show timing-sensitive behavior around:
This suggests the fix needs to ensure proper synchronization/waiting for agent connectivity before attempting workspace app access in tests.
test(coderd/workspaceapps/apptest): fix lastusedat assertion for all …
test(coderd/workspaceapps/apptest): fix lastusedat assertion for all …