Repository navigation
fix: skip pre-auto-upgrade agents in rollout, clearer aggregation budget log - #1016
Merged
Merged
Conversation
…lidping-business#109) Agents older than the rolling upgrade send no autoUpgrade field and ignore the upgrade frame, yet the server asked them anyway (VersionPinned read an absent field as "follow", protocol.go:217): each request burned an attempt, held the region's slot for the 10 min timeout, and ended in a misleading "giving up (check imagePullPolicy)" WARN. Such agents are now withdrawn from the rollout like pinned ones (upgrade.go noteAgentVersion), logged once per connection at INFO "agent predates auto-upgrade: upgrade it by hand". The timeout WARN now says "asking it again" with the attempt when the agent that timed out is the next candidate (single-agent region), carries the slot's deadline (the expiry is only seen when an agent next contends), and names next_agent when it really moves on. Tests: upgrade_legacy_test.go (a claim without autoUpgrade never gets an upgrade frame, and does not hold up its region) and TestUpgradeTimeoutAsksTheOnlyAgentAgain; all fail before the fix. Closes fclairamb/solidping-business#109 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ind (fclairamb/solidping-business#110) A run that spent its 30 s budget with no raw lag logged "Aggregation is behind its raw retention" at INFO, every few minutes on a busy deployment, although it was keeping up (logAggregationRun, job_aggregation.go:287 used the message for budget_exhausted || lag > 1h). The "behind" message now needs the lag past the threshold; a budget-only stop logs "Aggregation stopped on its run budget" (INFO, same attributes). Test: TestLogAggregationRun_BudgetWithoutLagIsNotBehind, fails before the fix. Closes fclairamb/solidping-business#110 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1016 +/- ##
==========================================
+ Coverage 91.00% 91.03% +0.02%
==========================================
Files 1413 1413
Lines 146786 146807 +21
==========================================
+ Hits 133585 133646 +61
+ Misses 13193 13153 -40
Partials 8 8
🚀 New features to boost your workflow:
|
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.
Two fixes from the dev logs review.
autoUpgradefield) are now skipped by the rollout like pinned agents, instead of being asked to upgrade (which they ignore) and holding their region's turn. The timeout WARN now says when it asks the same (only) agent again, with the attempt number.Aggregation stopped on its run budget; "behind its raw retention" is kept for a real lag > 1 h.Closes fclairamb/solidping-business#109
Closes fclairamb/solidping-business#110
🤖 Generated with Claude Code