Skip to content

fix(atlas-backup): recognize filed snapshots - #9032

Merged
dezren39 merged 3 commits into
mainfrom
queue/8941-3913-atlas-backup-parser
Nov 14, 2026
Merged

dezren39 merged 3 commits into
mainfrom
queue/8941-3913-atlas-backup-parser

Conversation

@dezren39

@dezren39 dezren39 commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Fixes #3913

Summary

  • Emit canonical uppercase OK success markers, matching the filed-snapshot parser.
  • Accept legacy lowercase success markers so existing backup logs keep dedupe and retention history.
  • Add parser and keep-7 regression coverage; PARTIAL and unchanged rows remain excluded from filed dates.

Tests

  • bash nixos/home/atlas-backup.test.sh
  • bash -n nixos/home/atlas-backup.sh nixos/home/atlas-backup.test.sh
  • bash nixos/home/openclaw-backup.test.sh
  • bash nixos/home/pm-dashboard-backup.test.sh
  • git diff --check

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 12, 2026 21:08
@coderabbitai

coderabbitai Bot commented Nov 12, 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 41 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: 158381c2-20fa-470d-a8cb-6d0c66f0d006
Commits

Reviewing files that changed from the base of the PR and between fdbabb3 and f88e70c.

Files selected for processing: 4

  • .github/test-suite-registry.json
  • lib/default.nix
  • nixos/home/atlas-backup.sh
  • nixos/home/atlas-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 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T19:55:02.328030Z
We couldn’t complete this review. Comment @codex review to try again.
f88e70c New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0cec8909d3

ℹ️ 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".

Comment thread nixos/home/atlas-backup.test.sh Resolved
Comment thread nixos/home/atlas-backup.test.sh Resolved
…rser property tests

Dispositions the two Codex P1 findings on PR #9032:
- nixos/home/atlas-backup.test.sh is now in the make-laptop-backups-checks
  suites list (lib/default.nix) and in the nixos.home.shell-checks paths
  of .github/test-suite-registry.json, so the suite runs in the same
  venue as its sibling backup suites instead of only by hand.
- The suite gains a property section: 300 generated log sequences
  (mixed OK/ok/PARTIAL/unchanged rows, duplicate dates, no-success
  sequences) checked against an independent model of the parser
  invariants (oracle: only success rows file dates; the dedupe digest
  is the last success row sha).

Verified: atlas-backup, openclaw-backup, pm-dashboard-backup suites
pass; git diff --check clean.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

…s-backup-parser-fix

# Conflicts:
#	.github/test-suite-registry.json
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

Shepherd progress on PR #9032 (task 17187, lane code-c): both Codex P1 findings are fixed and this task is now parked on CI.

What changed on the branch (head f88e70c357df0f93a47cd79f28729fad7bc38fe6):

  • Commit b596a21228 dispositions the two Codex findings (replies posted on both review threads):
    • Suite registration: atlas-backup added to the make-laptop-backups-checks suites in lib/default.nix, and nixos/home/atlas-backup.test.sh added to the nixos.home.shell-checks paths in .github/test-suite-registry.json.
    • Property tests: the suite now generates 300 log sequences (mixed OK / legacy ok / PARTIAL / unchanged, duplicate dates, no-success cases) and checks the real parser against an independent invariant model (oracle: only success rows file dates; dedupe digest = last success row's sha), with coverage guards.
  • Merge commit f88e70c357 brings the branch up to current main (one registry conflict, resolved keeping both sides; post-merge diff vs main is exactly this PR's change set).

Verification at the merged head, in worktree ~/git/fleet/17187-9032 on the laptop:

  • bash nixos/home/atlas-backup.test.sh — all pass, including the property section (300 sequences: mixed=198, dup_dates=231, no_success=45).
  • bash nixos/home/openclaw-backup.test.sh and bash nixos/home/pm-dashboard-backup.test.sh — pass (pre-merge head).
  • git diff --check clean; registry JSON valid.
  • Codex re-review of the new head did not run (Codex usage limits, per its PR comment) — no new findings exist to disposition; the two original findings are fixed as described.

Park reason: PR checks on the new head are stalled in the fleet runner backlog (2 of the rollup completed, SUCCESS + NEUTRAL, after ~5 minutes of polling; mergeable/CLEAN was observed at f88e70c357). Resume: when the checks settle, recheck PR #9032 state and merge on its merits (this also closes issue #3913); if a check fails on a file this PR touches, fix it in the same worktree.

@dezren39
dezren39 merged commit d11cf52 into main Nov 14, 2026
2 checks passed
@dezren39
dezren39 deleted the queue/8941-3913-atlas-backup-parser branch November 14, 2026 21:00
@dezren39

Copy link
Copy Markdown
Member Author

Agent note — task 17187 done (lane any-b): PR #9032 merged

Shepherd work: a prior lane's fix commit b596a21 was already on the branch answering both Codex P1s (suite registered in lib/default.nix make-laptop-backups-checks + .github/test-suite-registry.json; parser property tests added), with disposition replies posted at 19:52Z — but the threads were never resolved and the PR never merged. This pass verified the fix at head f88e70c (registry + suites entries present; bash nixos/home/atlas-backup.test.sh passes in full, including the property section: 300 generated sequences against the independent invariant model; sibling openclaw-backup and pm-dashboard-backup suites also pass), resolved both Codex threads, confirmed MERGEABLE/CLEAN with no failing or pending checks, and merged.

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.

atlas-backup: filed-snapshot log parser never matches the scripts own OK lines — dedupe dead, keep-7 rotation collapses to keep-1

1 participant