Repository navigation
fix(aggregation): drain the raw backlog in one run and log lag - #978
Merged
Merged
Conversation
…dping-business#104) An org with several check x region pairs could see its raw results outlive the raw retention by hours (uptimebar "aggregation is lagging" warning): each aggregation run rolled up a single bucket and rescheduled itself at delay=0 (job_aggregation.go Run), so every bucket paid a job-queue round-trip. Run now loops over the stages until nothing is left, a stage errors, or a 30 s / 1000-bucket budget is spent; only a run stopped on its budget reschedules at delay=0, a drained one waits +1h as before. A run that stopped on its budget, or whose oldest raw bucket was more than 1h past the retention boundary, logs "Aggregation is behind its raw retention" at INFO with the lag. TestRun_DrainsWholeBacklogInOneRun (5 old buckets, one run) failed before the fix (1 hour row instead of 5); the cap and lag-logging paths are also tested. Closes fclairamb/solidping-business#104 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #978 +/- ##
==========================================
+ Coverage 90.89% 90.90% +0.01%
==========================================
Files 1405 1405
Lines 145346 145394 +48
==========================================
+ Hits 132114 132174 +60
+ Misses 13224 13212 -12
Partials 8 8
🚀 New features to boost your workflow:
|
Merged
fclairamb
added a commit
that referenced
this pull request
Nov 22, 2026
🤖 I have created a release *beep* *boop* --- ## [0.53.0](v0.52.0...v0.53.0) (2026-11-22) ### Features * **auth:** OIDC-only mode with IdP group admin roles ([#966](#966)) ([1b51f89](1b51f89)) * **service:** install writes config.env, unit loads it via EnvironmentFile ([#948](#948)) ([e4b7fc4](e4b7fc4)) ### Bug Fixes * **aggregation:** drain the raw backlog in one run and log lag ([#978](#978)) ([26b93cd](26b93cd)) * **deps:** update github.com/dop251/goja digest to 79d6ad3 ([#972](#972)) ([02c6821](02c6821)) * **deps:** update go dependencies (non-major) ([#955](#955)) ([7dfbcd6](7dfbcd6)) * **deps:** update go dependencies (non-major) ([#968](#968)) ([6c09bae](6c09bae)) * **deps:** update go dependencies (non-major) ([#979](#979)) ([ee088b6](ee088b6)) * **deps:** update module github.com/oapi-codegen/oapi-codegen/v2 to v2.9.0 ([#975](#975)) ([1121e2e](1121e2e)) * **deps:** update module go.mongodb.org/mongo-driver/v2 to v2.10.1 ([#950](#950)) ([9e684c4](9e684c4)) * email validation, OAuth error display, translator crash guard, clone slugs, watchdog pauses ([#959](#959)) ([a20f951](a20f951)) * log OAuth code-exchange failures, show a refused sign-in on the invitation page ([#974](#974)) ([c4a8dca](c4a8dca)) * retry SMTP 4xx, 503 on agent auth DB errors, scope checkGroupUid to the org ([#973](#973)) ([88179aa](88179aa)) * **security:** block WebRTC around the browser egress proxy, survive an invalid status page ?lang= ([#957](#957)) ([79bdc82](79bdc82)) * **security:** keep OIDC-group admin grants revocable, mask resolved channel references, contain browser popups ([#976](#976)) ([6e0f09e](6e0f09e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Aggregation now drains its backlog in one run instead of rolling up a single (check, region, hour) bucket per job round-trip.
Aggregation is behind its raw retentionat INFO (buckets per stage, duration,raw_lag_minutes), so lag is visible before the uptime bar warns.Closes fclairamb/solidping-business#104
🤖 Generated with Claude Code