Skip to content

Add --check-stale flag to build.py for CI gating#38

Open
nargis12dev wants to merge 2 commits into
Saiaaax:mainfrom
nargis12dev:main
Open

Add --check-stale flag to build.py for CI gating#38
nargis12dev wants to merge 2 commits into
Saiaaax:mainfrom
nargis12dev:main

Conversation

@nargis12dev

Copy link
Copy Markdown

Summary

Add --check-stale flag to build.py that exits 1 when stale diagnostic artifacts exist, suitable for CI gating. Also adds --max-stale-bytes threshold option.

Changes

  • Added --check-stale flag to build.py (exits 1 if stale artifacts found)
  • Added --max-stale-bytes option (default: 0 = any stale is error)
  • Added 4 tests in tests/test_check_stale.py
  • Documented flag in docs/OPERATIONS.md

Testing

  • 4 tests passing: pytest tests/test_check_stale.py -v
  • python3 build.py run successfully

Diagnostic Artifacts

  • Artifact: diagnostic/build-dc10b573.logd
  • Password: f2c5cb6b696f2049616a
  • JSON: diagnostic/build-dc10b573.json

Closes #2

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