Skip to content

Fix CI build failures on main#4071

Merged
aponcedeleonch merged 1 commit intomainfrom
fix/ci-lint-and-test-timeout
Mar 10, 2026
Merged

Fix CI build failures on main#4071
aponcedeleonch merged 1 commit intomainfrom
fix/ci-lint-and-test-timeout

Conversation

@JAORMX
Copy link
Copy Markdown
Collaborator

@JAORMX JAORMX commented Mar 10, 2026

Summary

  • The main build broke after e783bf5 ("Automate HMAC secret management") due to a missing package prefix on MetadataKeyTokenSalt in sessionv2_integration_test.go, causing a typecheck lint failure that cascaded into test compilation failures for dependent packages.
  • TestMiddleware_ContextTimeoutHandling hard-coded a 15-second wait for the discoveryTimeout constant, making it slow and fragile. Made the timeout injectable via WithDiscoveryTimeout middleware option so the test uses 100ms instead.

Type of change

  • Bug fix

Test plan

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

Does this introduce a user-facing change?

No

Generated with Claude Code

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>
@github-actions github-actions bot added the size/XS Extra small PR: < 100 lines changed label Mar 10, 2026
@amirejaz
Copy link
Copy Markdown
Contributor

@copilot review this PR if test time can further be reduced

Copilot AI mentioned this pull request Mar 10, 2026
3 tasks
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

@amirejaz I've opened a new pull request, #4072, to work on those changes. Once the pull request is ready, I'll request review from you.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.55%. Comparing base (5fa6252) to head (248e1a5).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4071      +/-   ##
==========================================
- Coverage   68.67%   68.55%   -0.13%     
==========================================
  Files         446      446              
  Lines       45433    45547     +114     
==========================================
+ Hits        31203    31223      +20     
- Misses      11818    11913      +95     
+ Partials     2412     2411       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aponcedeleonch aponcedeleonch merged commit f0777f9 into main Mar 10, 2026
61 of 66 checks passed
@aponcedeleonch aponcedeleonch deleted the fix/ci-lint-and-test-timeout branch March 10, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants