test(server): decouple compatibility fixtures from release version #20068
main fromrefs/pull/20068/head·merged by juliusmarminge View on GitHubProblem#
Bumping the server package to 0.1.0 made eight provider compatibility tests fail, including a registry-stream test that timed out. Their shared policy only matched T3 Code versions below 0.1.0, but the resolver defaults to the real package version. This also blocks unrelated PRs, including #20060.
Change#
Let the shared fixture match all server releases. Test the bounded T3 Code range separately with explicit versions, pass a fixed version when testing prefixed ranges, and use an impossible range for the fallback test. Production code is unchanged.
Scope and approval#
Requested directly by maintainer Julius as a separate fix for the confirmed main-branch CI failure. This PR changes only the affected test file and stays separate from the mobile release-pipeline change.
Verification#
- Reproduced the boundary-classification failure on current main at server version
0.1.0before the fix. vp test run apps/server/src/provider/providerCompatibility.test.ts: all 13 tests pass, including the registry-stream test and explicit lower/upper version boundaries.- Targeted lint, formatting, and
git diff --checkpass.
Model: GPT-6.1 Sol. Harness: Codex through T3 Code.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
juliusmarminge added labelsmacroscope-review
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Approvability#
Verdict: Approved at
ea16e5eMacroscope's review found this PR approvable — The PR is limited to a single ignored server compatibility test file, with no production request-path or product-default changes. Its impact is confined to test execution and it introduces no static-analysis suppression or sensitive-area changes.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Team
- Run ID:
ffac0681-bc14-4b54-85df-79cf57c2c1be
📥 Commits
-
Reviewing files that changed from the base of the PR and between 9d26a7986c3fafa4e2cfe50f32ad8cf725081ac4 and ea16e5e3127832c10eb1a8945bc0f39e16ea6a01.
📒 Files selected for processing: 1
-
apps/server/src/provider/providerCompatibility.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
📝 Walkthrough
-
The provider compatibility tests update T3 Code version ranges, add checks for scoped policy applicability, and use updated version inputs in prefixed-policy compatibility checks.
Changes: Provider compatibility test updates
Layer / File(s) Summary Compatibility policy test coverage
apps/server/src/provider/providerCompatibility.test.tsThe tests update policy version ranges, check scoped policy applicability at additional T3 Code versions, and retain the expected compatibility results for provider versions 2.0.0and3.0.0.Priority: ⬇️ Low
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Suggested reviewers:
t3dotgg
Merge Risk: ⚪ Minimal · up to
ea16e-
This change updates compatibility-test fixtures and boundary cases without an indicated production behavior change. No actionable merge-blocking risk is identified in the supplied context.
Pre-merge checks:
4-
Check name Status Explanation Title check The title clearly and concisely describes the main change: decoupling server compatibility-test fixtures from the release version. Description check The description covers the problem, change, scope, approval rationale, and verification results. It identifies the affected test file, reports focused test results, and states that production code is … Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
-
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful
mainmeasurement shown below.Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 5.0 KiB 5.0 KiB +7 B (+0.1%) 6.8 KiB ✅ Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB +7 B (+0.6%) 2.0 KiB ✅ Codex Live turn WebSocket decoded 20.9 KiB 20.9 KiB 0 B (0.0%) 29.3 KiB ✅ Codex Live turn messages 2 2 0 (0.0%) 8 ✅ Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅ Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅ Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅ Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅ Claude Live turn messages 2 2 0 (0.0%) 8 ✅ Baseline:
eef0e4e· PR result:ea16e5e· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
juliusmarminge merged this4d01315
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes