Repository navigation
fix(aggregator): scope AA configs/cai as-of the selected batch (#8817) - #8834
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 41 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis 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: c0ebd5c04a
ℹ️ 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".
|
Fixed in d186f85. The collector now validity-keys AA batch caches with the payload SQL revision, following the existing pricesFingerprint pattern:
Tests: bun test test/aa-batches.test.ts 23/23 (new guard test for the sqlRevision field); tsc error set identical to main (26 pre-existing, line shifts only). |
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
Fixes #8817.
Problem
aaPayloadSql scoped sources/rankings/thresholds/testRunRows to the selected batch, but the configs and cai sections pinned measurement_events to the newest workbook-import ingest batch overall. A historical payload therefore mixed the newest configs/CAI into data labelled and cached under the historical batch UUID (Codex P2 on PR #8681, discussion 4538397747).
Fix
Scope both sections AS-OF the selected batch: the newest workbook-import event batch imported at or before it. Live verification (2026-11-12) showed measurement_events.ingest_batch_id is the importing batch's ainventory.sources.import_batch, and that not every workbook import produces benchmark events (the imports after 2026-10-26 have none yet), so as-of is the correct mapping:
Tests
Task 15065 (queue triage, fixed inline per runbook 1c).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.