Repository navigation
Simplify heartbeat counter handling and fix fleet version gauge race - #934
Gajesh2007 wants to merge 2 commits into
Conversation
|
@codex review |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a1a7031c8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a1a7031c8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Superseded by #1051, which carries this change and its regression coverage into the coordinator subsystem layout. The replacement passed the relevant local race tests, build/lint checks, and independent source review. Please review #1051; closing this older implementation to keep one active version of the change. The branch and review history are retained. No change has been merged to master by this closure. |
Fleet version gauges read
Provider.Versionafter releasing the mutex, racing with registration'sSetVersion. Capture status and version together under the existing provider lock. A concurrent test reproduces the race on master and passes after the fix.Heartbeat ingestion also repeated signed integer clamp branches and optional session-counter retention. Use direct integer bounds and the existing field-pair loop. Float rejection policies remain explicit: invalid load headroom becomes absent and invalid observed prefill becomes zero, preserving conservative routing estimates. Sequence ordering, liveness, snapshot ownership, nil clearing, durability, admission and default values are unchanged.
Before:
After:
Reviewed the ten heartbeat, persistence and fleet telemetry production files as one operation group. Kept the two-phase profiler sampling, trust restoration, sticky per-slot KV attribution, accounting identities, public projections and versioned token budgets intact. Production is 48 lines smaller; three regression/characterization tests and documentation increase the overall diff.
Validation:
fleet_views.goversusversion_reset.go), then passes on this branch.GOTOOLCHAIN=go1.25.0 go test -race ./coordinator/registry -count=1passes (24.344s).Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.