Repository navigation
fix(factory): clear app/v3's go vet error; fix two furrow-only test fixtures - #1988
Merged
Merged
Conversation
…t window `go vet ./...` (CI's Vet step) failed on app/v3 with lostcancel at chatstage.go:402: the report window's cancel was reassigned inside the loop and released by a deferred closure, which vet cannot follow. It was not a leak, but it kept every PR gate red. The window is set at most once (reportDone guards it), so a plain `defer reportCancel()` where it is made releases it at return, as before. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
TestAChatBeingTakenIsNotOpened tests the door, but with a real furrow
its fake opener's refusal left a warm capture writing into the chat
while TempDir cleanup removed it ("unlinkat …/.cell: directory not
empty"): 3 of 15 -race runs failed. Cells are switched off for this
fixture; the handoff guard it asserts is unchanged. 15/15 -race, 20/20
plain.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
TestSealedTreeCarriesTheSessionTruth failed every time with a real furrow (it skips on CI): RunLandedTasks opens its own default-config agent in the chat, and closing it stamps that agent's effort and approval over the seeded meta, so the round trip compared empty fields. The test now puts the seed back after setting up its landed task. 2/2 with the pinned furrow. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Collaborator
Author
|
Gate (run 40434763814): Vet is clean now. 30 test failures: 29 are on the app/v3 baseline Full check's failure list (the packed-manual corpora checks, the git-land and prompt-budget tests in |
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.
Summary
Three small fixes found while verifying the relay merges. None of them changes product behaviour.
go vet ./...is red on app/v3 (CI's Vet step, which every PR gate runs). It reports lostcancel atinternal/factory/run/chatstage.go:402. The report window's cancel was reassigned inside the loop and released by a deferred closure, which vet can't follow. It wasn't a leak. The window is set at most once (reportDoneguards it), so a plaindefer reportCancel()where it's made releases it at return, as before.TestAChatBeingTakenIsNotOpened(needs a real furrow, so it skips on CI) failed intermittently. Its fake opener's refusal left a warm capture writing into the chat while TempDir cleanup removed it (unlinkat …/.cell: directory not empty). The fixture now switches cells off; the handoff guard it asserts is unchanged. With-raceit failed 3 of 15 runs before and passes 15 of 15 after; it also passes 20 of 20 without-race.TestSealedTreeCarriesTheSessionTruth(also furrow-only) failed every time.RunLandedTasksopens its own default-config agent in the chat, and closing it stamps that agent's effort and approval over the seeded meta. The round trip then compared empty fields. The test now puts the seed back after setting up its landed task, and passes 2 of 2 with the pinned furrow v0.2.0.Verification
go vet ./internal/factory/runis clean.go test ./internal/factory/runhas one failure,TestARefusedReportLeavesTheEarlierOneStanding. It fails 10 of 10 on the unchanged file too, and it's on the app/v3 baseline Full check's failure list, so it predates this change.🤖 Generated with Claude Code