Skip to content

feat: add build.py --check-stale diagnostic CI gate#63

Open
brain-marchine wants to merge 2 commits into
Saiaaax:mainfrom
brain-marchine:feat/build-check-stale
Open

feat: add build.py --check-stale diagnostic CI gate#63
brain-marchine wants to merge 2 commits into
Saiaaax:mainfrom
brain-marchine:feat/build-check-stale

Conversation

@brain-marchine

Copy link
Copy Markdown

Fixes #2

Summary

Add a CI-friendly --check-stale gate (plus --retention-report) for stale diagnostic artifacts under diagnostic/.

Changes

  • build.py: report current vs stale artifacts; exit non-zero when stale bytes exceed --max-stale-bytes (default 0).
  • tests/test_check_stale.py: 5 regression tests using temporary diagnostic directories.
  • Document commands in docs/OPERATIONS.md.

Testing

  • python3 -m pytest -q tests/test_check_stale.py
  • python3 build.py -m frailbox — diagnostic artifacts included

Payout wallet (Base): 0x86D4FC06f553792D8c33058438Bcc7444182EB30

@brain-marchine

Copy link
Copy Markdown
Author

Updated this PR with a valid script-generated diagnostic bundle (diagnostic/build-02104344.json + .logd) aligned to commit 02104344. CI should pass the diagnostic gate now — thanks for reviewing!

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.

[$10 BOUNTY] [Python] Add build.py --check-stale flag for CI gating

1 participant