Skip to content

Fix CI build failures on main#4072

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/sub-pr-4071
Closed

Fix CI build failures on main#4072
Copilot wants to merge 3 commits intomainfrom
copilot/sub-pr-4071

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

Summary

Two CI failures after e783bf5 ("Automate HMAC secret management"):

  1. sessionv2_integration_test.go referenced MetadataKeyTokenSalt without its sessiontypes package prefix → typecheck lint failure cascading into test compilation failures for dependent packages.
  2. TestMiddleware_ContextTimeoutHandling hard-coded a 15s wait on the discoveryTimeout constant → slow, fragile test.

Changes:

  • Fix missing sessiontypes. prefix on MetadataKeyTokenSalt
  • Make discoveryTimeout injectable via WithDiscoveryTimeout middleware option
  • Reduce testTimeout from 100ms → 10ms (test now completes in ~0.01s vs original 15s); shrink unreachable safety-net time.After from 5s → 1s

Type of change

  • Bug fix

Test plan

  • Unit tests (task test)
  • Linting (task lint-fix)

Does this introduce a user-facing change?

No


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

JAORMX and others added 2 commits March 10, 2026 14:42
The main build broke after e783bf5 due to two issues:

1. sessionv2_integration_test.go referenced MetadataKeyTokenSalt
   without the sessiontypes package prefix, causing a typecheck error
   that failed lint and cascaded into test compilation failures for
   dependent packages.

2. TestMiddleware_ContextTimeoutHandling hard-coded a 15-second wait
   for the discovery timeout constant. Make discoveryTimeout injectable
   via WithDiscoveryTimeout middleware option so the test uses 100ms
   instead, cutting the test from 15s to 0.1s.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: amirejaz <195902446+amirejaz@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix CI build failures on main Fix CI build failures on main Mar 10, 2026
Base automatically changed from fix/ci-lint-and-test-timeout to main March 10, 2026 14:06
@rdimitrov
Copy link
Copy Markdown
Member

Hey, @amirejaz, closing this one as I think the issue is already fixed (feel free to reopen of course).

@rdimitrov rdimitrov closed this Mar 16, 2026
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.

4 participants