BB-96 follow-up: committed marker-retry regression test does not exercise the marker branch #99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How found: coordinator re-review of Breadway/breadboard PR98 at head
4e404eca, verifying the seven findings from PR comment 5366 (review 5442).Confidence: high (code reading plus an independent scratch test).
Explanation:
crates/breadboard-server/tests/import.rs::repair_retry_finds_remote_marker_after_webhook_echo_and_link_failurecallsstore::claim_unlinked_issuefirst to simulate the webhook echo, which links the local card beforeimport::runexecutes.import::runthen sees an already-linked card and skips the writeback entirely, sowriteback_new_issue_result's marker lookup (forgejo::find_import_issue) is never reached. The test name promises coverage of the marker-retry path that finding 1 is about, but it would still pass if the marker lookup were deleted. I confirmed the underlying behavior is correct with a scratch test (unlinked card plus a marker-bearing remote issue,repair: true: remote create count stays 0 and the card links to the existing issue), but that scratch test was not committed.Suggested fix: add a committed test that leaves the local card unlinked while a marker-bearing remote issue exists, runs repair, and asserts the remote create count does not increase and the card links to that issue. Optionally drive the echo through
apply_issueorPOST /webhooks/forgejofor a truthful race model.Refs PR98 (merged
2a538f089a), comment 5366, review 5442.