Skip to content

backup: keep retired Meta exporter data optional - #6794

Merged
dezren39 merged 1 commit into
mainfrom
queue/5045-retired-meta-exporter-s4
Nov 7, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/5045-retired-meta-exporter-s4

Conversation

@dezren39

@dezren39 dezren39 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Summary

Make frozen Meta exporter outputs optional while retaining them in archives when present; stop querying the retired exporter's journal.

  • Present files are staged and manifested as optional; absent files are recorded as optional + missing.
  • Only pm-aggregator and quota-gatherer journal logs are queried.
  • Refresh stale fixtures to include the full required aggregator set.

Evidence

  • Before: backup, date, and prune tests failed because their fixtures omitted required aggregator inputs.
  • After: all seven nixos/home/pm-dashboard-backup*.test.sh suites pass, including absent/present exporter coverage.
  • bash -n, shellcheck --severity=warning, and git diff --check pass 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


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 7, 2026 05:08
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a3524fab-477d-499e-9ea1-d0a0ba10194b
Commits

Reviewing files that changed from the base of the PR and between 962dbfc and e6e6189.

Files selected for processing: 6

  • nixos/home/pm-dashboard-backup-date.test.sh
  • nixos/home/pm-dashboard-backup-manifest.test.sh
  • nixos/home/pm-dashboard-backup-prune.test.sh
  • nixos/home/pm-dashboard-backup-record.test.sh
  • nixos/home/pm-dashboard-backup.sh
  • nixos/home/pm-dashboard-backup.test.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T05:10:36.737184Z e6e6189 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 requested a balanced review from Copilot November 7, 2026 05:27
@dezren39
dezren39 merged commit 0a21a23 into main Nov 7, 2026
4 of 5 checks passed
@dezren39
dezren39 deleted the queue/5045-retired-meta-exporter-s4 branch November 7, 2026 05:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
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 remove meta-quota-export journal collection.
  • Limit journal collection to pm-aggregator and quota-gatherer services.
  • Refresh/expand test fixtures to include all required pm-aggregator state 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

Comment on lines 90 to +97
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
Comment on lines 105 to +112
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
Comment on lines 164 to +171
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

backup: pm-dashboard-backup requires files from the retired Meta exporter

2 participants