Repository navigation
fix(fleet): keep ureq out of the connect binary so it fits the D7 size gate - #12684
Merged
Merged
Conversation
…e gate #12326 made ureq (with rustls) and base64 unconditional for the OpenCode session liveness probe. That pulled a TLS HTTP client into fleet-connect, and fleet-connect-static grew to 2,542,136 bytes, past the 2 MiB D7 gate, so fleet-smoke has failed on main since. Both are optional again behind a new opencode-probe feature, on in full and serve and off in connect. Without it a recorded session counts as not live, the same answer an unreachable OpenCode server already gives. gh enables ureq itself again, as before #12326. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dezren39
marked this pull request as ready for review
November 22, 2026 21:08
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 55 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before:
fleet-smoke has been red on main since #12326 merged. That PR made
ureq(with rustls) andbase64unconditional dependencies of thefleetcrate for the OpenCode session liveness probe, so the TLS HTTP client landed in the connect variant too.fleet-connect-staticnow builds at 2,542,136 bytes and fails the 2 MiB D7 size gate ("binary exceeds the 2 MiB connect size gate"), which fails "Build the four fleet variant outputs".After:
The connect variant's dependency tree has no
ureq,rustlsorbase64again (cargo tree --no-default-features), so it is back to its pre-#12326 shape. Full and serve keep the liveness probe.How:
opencode-probefeature (dep:ureq,dep:base64), included infullandserve, left out of connect.ghenablesureqitself again, as it did before feat(fleet): persist worktree session identity #12326.session_state.rs: the probe and its helpers are behind the feature. Without it,session_is_livereturns false, which is the answer an unreachable OpenCode server already gives, so a recorded session is not reused on connect machines. Explicit and environment identities are unaffected.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.