Repository navigation
Conversation
Who: developers and scripts that run `proofline findings` outside CI. What: `--review` now takes `--head`; a head found by search or from the checkout is checked against the review that is read. Where: src/lib.rs and src/outcome.rs (callers in hooks.rs, scan.rs and tools.rs pass None), README.md, tests/findings_head.rs, tests/http.rs. When: any findings read that names a head, or looks one up. Why: a summary at commit A and a detail at commit B printed B and exited 0. Now it fails with both heads named. Fixes the fixture too. How verified: cargo fmt --check clean; cargo test --offline passes 244 (was 234) with the same 14 failures as before. Fixes prooflinedev#123
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror of prooflinedev#169, opened in my fork so Proofline can review it. Same commit; discussion stays on the upstream PR.
Fixes prooflinedev#123.
Who it helps
Builds and scripts that know a commit SHA and a Proofline review ID, and
developers who run
proofline findingsfrom a checkout.What changes
--reviewand--headcan now be given together. The CLI reads thatreview directly, so it works with no checkout, and checks the head the
console reports against the full SHA before it prints anything.
The same check applies when the CLI finds a review by
--heador by thecheckout's HEAD. The existing
departedfixture gave its summary andits detail different SHAs, which hid the bug; both now use one SHA.
Decisions
read_review_once, so text, JSON and SARIF are allrefused before output, and every
--waitpoll is checked.same_headfunction, so both commands report a bad head the same way.
--reviewalone still reads any review, including a patch reviewwith no head.
--prstill conflicts with--headand--review; a PR number and ahead stay separate lookup choices. SHAs match in either letter case.
How verified
cargo fmt --check: clean.cargo clippy --all-targets --offline -- -D warnings: no findings inthe changed code. Two errors remain in
src/agent/tests.rs(lines 526and 745), a file this change does not touch.
cargo test --offline --no-fail-fast: 244 passed, 14 failed. Beforethe change: 234 passed, the same 14 failed (on this Windows machine; unrelated).
tests/findings_head.rsand the unit test insrc/outcome.rspass. Seven of the nine fail on the old code.