Repository navigation
feat(dev): add --inflight-staging flag to run.py - #1372
Conversation
The in-flight NAR staging feature (serve --cache-inflight-staging-enabled, added in 541a25c) had no way to be enabled from the dev harness, so it could not be exercised or reproduced locally. Add an --inflight-staging toggle to dev-scripts/run.py that appends --cache-inflight-staging-enabled to every spawned serve instance. Only the enabled toggle is exposed; retention (5m) and part-size (8 MiB) keep their Go defaults. No locker guard rails are added, mirroring the Go-side guard where the feature self-disables on non-distributed lockers. The effective state is surfaced in the startup banner and persisted to state.json so test drivers can read it. Also captures the dev-run-inflight-staging capability spec.
|
This change is part of the following stack: Change managed by git-spice. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdds a new ChangesIn-Flight Staging Flag Implementation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Code Review
This pull request adds support for the --inflight-staging flag in the dev-scripts/run.py development harness, propagating --cache-inflight-staging-enabled to spawned instances, logging its status in the startup banner, and persisting it in state.json. The reviewer suggests refining both the startup banner and the persisted state to reflect the effective staging state (dormant vs. active) based on whether a distributed locker like redis is configured.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
The startup banner and state.json reported in-flight staging as enabled/true whenever --inflight-staging was passed, even with --locker local. The Go-side InflightStagingEnabled() guard keeps the feature dormant without a distributed locker, so this misrepresented the effective state that test drivers read from state.json. Compute staging_active = flag AND locker == redis. The banner now shows a third 'dormant (requires redis locker)' state, and state.json persists the effective boolean. The --cache-inflight-staging-enabled arg is still emitted on the raw flag, preserving the no-guard-rails behavior that defers activation to the Go guard. Addresses gemini-code-assist review on #1372.
Summary
serve --cache-inflight-staging-enabled, added in 541a25c) had no way to be enabled from the dev harnessdev-scripts/run.py, so it could not be exercised or reproduced locally.--inflight-stagingtoggle that appends--cache-inflight-staging-enabledto every spawnedserveinstance. Only the enabled toggle is exposed;retention(5m) andpart-size(8 MiB) keep their Go defaults.--locker redis).state.json(inflight_staging) so test drivers can read it.dev-run-inflight-stagingcapability spec (OpenSpec change archived).Test plan
task fmt/task lintpassrun.py --inflight-stagingemits--cache-inflight-staging-enabledand recordsinflight_staging: true; without the flag no--cache-inflight-staging-*arg appears and state showsfalse