Repository navigation
fix(idris-dependents): repair the test crate (red on main since #628) - #649
Conversation
`ready_mock()` in tests/scan_tests.rs predates the `responses` field on `Mock`, so the test crate failed to compile (E0063) and the `build · test · clippy (idris-dependents)` job has been red on main since #628, and on every PR since. The field is initialised empty, as the other two Mock literals in the file already do. All idris-dependents tests pass; clippy -D warnings and fmt are clean. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PpQVLrCbURpoXtrdvy8V3B
…tract With scan_tests compiling again, two tests in scan_edge_tests.rs fail. (The previous commit said all tests pass; that was wrong: those two were cut from the output I checked.) Both encode behaviour from before raw files returning HTTP 404/410/451 became skipped URLs, which the README, the `get_file` doc comment and scan_tests' `unavailable_files_are_logged_reported_and_skipped_in_both_raw_fetch_paths` all specify: - raw_content_fetches_retry_rate_limits_and_propagate_hard_failures expected a raw 404 to fail the run. A 404 is now skipped, so the hard failure case uses HTTP 500, which still propagates. The 404 skip stays covered by scan_tests. - report_json_keeps_public_field_names_and_confidence_spelling now includes the public `skippedUrls` field. All 79 idris-dependents tests across every test binary pass; clippy -D warnings and fmt are clean. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01PpQVLrCbURpoXtrdvy8V3B
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Three governance checks fail here, and they fail on main and every PR. This PR changes only
Squash-merging per the owner's merge-when-green instruction; these three checks are already red on main and documented here. Generated by Claude Code |
#649 landed the same three test-fixture repairs as this branch's first commit. Conflicts resolved to main's ready_mock and this branch's scan_edge_tests (a superset: it also asserts the 404 skip and the HTTP error body), so against main this PR now only adds. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01J4QvDfb1gn2SD218jMg9jk



Summary
build · test · clippy (idris-dependents)has failed on main since #628, and on every PR since (for example #645).ready_mock()intests/scan_tests.rspredates theresponsesfield onMock, so the test crate failed with E0063 before any test ran. The field is now initialised empty, as the file's other twoMockliterals already do.tests/scan_edge_tests.rs, both tests encoded behaviour from before raw files returning HTTP 404/410/451 became skipped URLs. That contract is specified in the README, in theget_filedoc comment, and inscan_tests::unavailable_files_are_logged_reported_and_skipped_in_both_raw_fetch_paths.raw_content_fetches_retry_rate_limits_and_propagate_hard_failuresexpected a raw 404 to fail the run. Its hard-failure case now uses HTTP 500, which still propagates asHTTP 500 for <url>. The 404 skip stays covered byscan_tests.report_json_keeps_public_field_names_and_confidence_spellingnow includes the publicskippedUrlsfield.Only test code changes; the product behaviour is untouched.
Validation
cargo clippy --all-targets -D warningsandcargo fmt --checkare clean.Generated by Claude Code