Repository navigation
CI: shared-files test no longer depends on GITHUB_REPOSITORY - #173
Conversation
test_sibling_differences_are_warnings_not_failures expected a "could not read BitcoinAddressFinder" warning from the sibling it leaves unreachable. main() never fetches the repository being checked, and takes its name from GITHUB_REPOSITORY, so in BitcoinAddressFinder's own CI that sibling was skipped and the test failed there alone (red since the test was added; e.g. run 37680715063). The test now pins current_repo, as the other tests in the file do, and asserts the pinned repository is not fetched. Shared file: identical in all four repos, manifests refreshed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AytmJF9faEiQEVt6eetQS2
|
Review SummaryThis PR is a well-executed fix for a flaky test that was environment-dependent. ✅ Key Strengths
No issues foundNo code quality, bug, or security concerns identified. The hash update in Approve and ready to merge. 🚀 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #173 +/- ##
=========================================
Coverage 96.99% 96.99%
Complexity 116 116
=========================================
Files 1 1
Lines 266 266
Branches 29 29
=========================================
Hits 258 258
Misses 2 2
Partials 6 6 ☔ View full report in Codecov by Harness. |



Summary
test_sibling_differences_are_warnings_not_failuresin the shared.github/buildcheck/tests/test_sharedfiles.py. Since it was added on 2026-09-30, it has been red in BitcoinAddressFinder's CI only:Shared files + build checks, for example run 37680715063.main()never fetches the repository being checked, and it takes that name fromGITHUB_REPOSITORY. The test expects the sibling it leaves unreachable, BitcoinAddressFinder, to produce acould not read …warning. In BitcoinAddressFinder's own CI that sibling is the current repository and is skipped, so the warning never appeared. Locally (GITHUB_REPOSITORYunset) and in the other three repos the test passed.current_repotojava-llama.cpp, the same way the other tests in the file already mock it, and additionally asserts that the pinned repository is not fetched.Test plan
GITHUB_REPOSITORY=x/BitcoinAddressFinder python3 -m unittest discover -s .github/buildcheck/tests -t .githubfails before the fix and passes after it.check-shared-files.pyreports 0 files changed here alone, with the same hash in all four repos.Related issues / PRs
The same change is made in java-llama.cpp, BitcoinAddressFinder, streambuffer and srcmorph.
Checklist
CONTRIBUTING.mdandCODE_OF_CONDUCT.mdCI:prefix instead.🤖 Generated with Claude Code
https://claude.ai/code/session_01AytmJF9faEiQEVt6eetQS2
Generated by Claude Code