Repository navigation
Name the review a hook could not read - #157
Open
ammartahamohamedy wants to merge 1 commit into
Open
ammartahamohamedy wants to merge 1 commit into
ammartahamohamedy wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Fixes #156
Problem
hooks::requestturned every failure intoReport::Unreviewed, including a failed read after the server had accepted the patch. One 502, 500 or dropped connection while the hook waited, or the timeout cutting off the first read, printedcould not review <label>with no ID or link, though the review was running.Fix
hooks::requestuploads first, then reads. A failure before the upload isUnreviewedas before.Report::Unread, printed with the review's URL andfindings --review <id>, worded like the hook's message for a review still running at its last read:onIncompletedecides the exit as before. The upload stays outside the deadline: cancelling a POST the server accepted would lose the ID the same way.Unreadkeeps its URL as aString, soReportstays under clippy'sresult_large_errsize.Tests (written first; failed before the change)
a_review_the_hook_could_not_read_is_still_named(new,tests/hooks.rs)findings --review, no longer says "could not review", and still proceeds as an incomplete reviewThe stand-in (
serve_reads) gains one step: anullscript entry answers 502.Mutation checks: losing the ID on a read error, losing it at the deadline, or not counting
Unreadas a gap each fails the test.Checks
cargo fmt --check: ✅cargo clippy --locked -- -D warnings: clean on the lib, the bins and the integration tests.--all-targetsstops at the 2 errorsmainalready has on Windows (src/agent/tests.rs).cargo test --locked: the new test passes. Otherwise, the same 12 Windows failures as onmain(tests/mcp.rs×7,agent_install×2,update,local_patch,hookson a Windows push URL), none of them in this change.cargo deny check: no dependency changes.checkandwindowspass on ammar-taha-dev/proofline-cli#7.Proofline review log
Fork review PR: ammar-taha-dev/proofline-cli#7. Rounds capped at 2.
The prompts below are the ones that drove this implementation; the investigation, reproduction and fix scope were done before them and aren't included.