Repository navigation
Conversation
The agent summary and the stats aggregator only read counts and a few scalar fields, but loaded and cloned every full container row. Use getContainersForStats instead and add name to the projection for the aggregator. The Prometheus gauge rebuild still reads full rows because its labels come from the result and image fields.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration:
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
scttbnsn
added a commit
that referenced
this pull request
Oct 20, 2026
scttbnsn
added a commit
that referenced
this pull request
Oct 20, 2026
* fix(agent): detect half-open agent event streams (#1405) * fix(compose): fill the operation record like the Docker action (#1406) * fix(watcher): don't hold update results for release notes (#1409) * perf(store): use the stats projection for counts (#1411) * fix(store): keep a retained policy with the replacement on local renames (#1412) * fix(api): build the dependency graph from the listed containers (#1419) * fix(agent): tell Portwing timeouts apart from unreachable agents (#1422) * feat(api): include versions in update-operation-changed events (#1427) * feat(notifications): show why a notification was skipped (#1429) * docs(changelog): sort the batch B entries into their sections
Contributor
Author
|
Landed in #1433 as part of folding the reviewed 1.8 work into 1.8.0. |
This branch was successfully deployed
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.
DR-88. Held for 1.8.1.
The agent event summary and the stats aggregator only read counts and a few scalar fields, but called getContainers(), which clones and redacts every full row. Both now use getContainersForStats(). The projection gains
name, which the aggregator needs. The aggregator's container type is narrowed to the four fields it reads.Left alone: the Prometheus gauge rebuild in app/prometheus/container.ts. Its labels come from flatten() over result_, image_, update_kind_*, labels and trigger fields, which the projection doesn't carry, so it needs full rows.
Measured with a throwaway script, 2000 containers with large result, details, label and scan payloads, in-memory store, one call each:
Output is unchanged. A store test checks the summary, image count and id/name/watcher/agent match between getContainers and getContainersForStats, and the site tests assert the projection is called and getContainers isn't.