Repository navigation
backup: keep retired Meta exporter data optional - #6794
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 36 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.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
actions.jsonis written twice in this test fixture as well. Deduplicate (either make the loop the… · Newactions.jsonis written twice (once explicitly, then again via the loop). This duplication makes… · Newactions.jsonis also created twice in the second fixture block. For consistency and to avoid… · New
What changed in this PR
Updates the pm-dashboard backup/manifest behavior so retired Meta exporter outputs are treated as optional (recorded as missing when absent), and stops querying the retired exporter’s journal, while refreshing fixtures to include the full required aggregator state set.
Changes:
- Mark
meta-quota-export/{latest.json,history.jsonl}as optional members in the expected manifest set and removemeta-quota-exportjournal collection. - Limit journal collection to
pm-aggregatorandquota-gathererservices. - Refresh/expand test fixtures to include all required
pm-aggregatorstate files.
| File | Description |
|---|---|
| nixos/home/pm-dashboard-backup.test.sh | Expands fixture aggregator file set for backup tests. |
| nixos/home/pm-dashboard-backup.sh | Makes retired exporter outputs optional and drops retired exporter journal collection. |
| nixos/home/pm-dashboard-backup-record.test.sh | Updates record-test fixtures to no longer require retired exporter data. |
| nixos/home/pm-dashboard-backup-prune.test.sh | Expands fixture aggregator file set for prune tests. |
| nixos/home/pm-dashboard-backup-manifest.test.sh | Updates manifest expectations for optional retired exporter files and verifies retired exporter journal is not queried. |
| nixos/home/pm-dashboard-backup-date.test.sh | Expands fixture aggregator file set for date tests. |
Review effort: Lite
| printf '{}\n' >"$home/.local/state/pm-aggregator/actions.json" | ||
| # Full required set (#1025): a missing required member now fails | ||
| # the run at verify, so the fixture carries every required file. | ||
| for f in comments.json fleet-feed.json quota-current.json registry.json quota-gatherer-state.json quota-gatherer-heartbeat.json; do printf '{}\n' >"$home/.local/state/pm-aggregator/$f"; done | ||
| for f in actions.json comments.json fleet-feed.json quota-current.json registry.json \ | ||
| quota-gatherer-state.json quota-gatherer-heartbeat.json events.json \ | ||
| coverage-snapshot.json aa-last-good.json; do | ||
| printf '{}\n' >"$home/.local/state/pm-aggregator/$f" | ||
| done |
| printf '{}\n' >"$home/.local/state/pm-aggregator/actions.json" | ||
| # Full required set (#1025): a missing required member now fails | ||
| # the run at verify, so the fixture carries every required file. | ||
| for f in comments.json fleet-feed.json quota-current.json registry.json quota-gatherer-state.json quota-gatherer-heartbeat.json; do printf '{}\n' >"$home/.local/state/pm-aggregator/$f"; done | ||
| for f in actions.json comments.json fleet-feed.json quota-current.json registry.json \ | ||
| quota-gatherer-state.json quota-gatherer-heartbeat.json events.json \ | ||
| coverage-snapshot.json aa-last-good.json; do | ||
| printf '{}\n' >"$home/.local/state/pm-aggregator/$f" | ||
| done |
| printf '{}\n' >"$tf_home/.local/state/pm-aggregator/actions.json" | ||
| # Full required set (#1025): a missing required member now fails | ||
| # the run at verify, so the fixture carries every required file. | ||
| for f in comments.json fleet-feed.json quota-current.json registry.json quota-gatherer-state.json quota-gatherer-heartbeat.json; do printf '{}\n' >"$tf_home/.local/state/pm-aggregator/$f"; done | ||
| for f in actions.json comments.json fleet-feed.json quota-current.json registry.json \ | ||
| quota-gatherer-state.json quota-gatherer-heartbeat.json events.json \ | ||
| coverage-snapshot.json aa-last-good.json; do | ||
| printf '{}\n' >"$tf_home/.local/state/pm-aggregator/$f" | ||
| done |

Summary
Make frozen Meta exporter outputs optional while retaining them in archives when present; stop querying the retired exporter's journal.
Evidence
nixos/home/pm-dashboard-backup*.test.shsuites pass, including absent/present exporter coverage.bash -n,shellcheck --severity=warning, andgit diff --checkpass for changed scripts.Merge Danger
Door: two-way — revert the script and fixture changes to restore the previous manifest behavior.
Blast Radius: narrow — only dashboard backup contents and its regression tests.
Closes #5045
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.