Repository navigation
tests: seal-engine tests use codeaf's own engine and run in the gate - #2178
Merged
Merged
Conversation
Three internal/session seal tests resolved furrow with ResolveBinary, which falls back to PATH. On a machine whose PATH furrow is older than the pinned engine, the skip check passed and the product's own seal path, which accepts only the configured or embedded engine, then failed with 'engine unavailable' or 'no engine of codeaf's own'. No make test target staged the embedded engine, so the gate could not run these proofs at all. celltest.Engine is now the one door for a test that needs the real engine: it asks the same owned-engine question as the product and skips, naming the missing engine and how to provide it, only when none exists. The resolve-and- skip copies in session, cellstore, cellsync, cellindex, syncsetup and cmd/codeaf use it. make test and make test-focus depend on make furrow, so test-touched, pr-ready and the touched CI legs (which run make test through touched-verdict.py) build with the pinned engine and the proofs run there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
internal/furrow imports internal/config through exec, and config's own tests import celltest, so celltest importing furrow made an import cycle that go vet ./... refuses. furrowbin already held the owned-engine choice for the cells probe; exporting it as OwnedBinary lets celltest ask the same question from below every package furrow imports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
santoshkumarradha
marked this pull request as ready for review
November 2, 2026 17:50
AbirAbbas
added a commit
that referenced
this pull request
Nov 2, 2026
…for branch publication Rebased onto app/v3, where #2178 and #2183 already cover most of this branch: the engine-backed fixtures and the hosted take-back's resumed-hold proof. What is left: - the hosted move rig and the drive rig's default daemon keep their homes under /tmp on Unix, because macOS's temporary folder leaves a workspace socket only a few bytes under the address limit; - the L12 death-branches test waits for A's branch row to hold its three orphan turns before it reads them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
AbirAbbas
added a commit
that referenced
this pull request
Nov 3, 2026
…for branch publication (#2032) Rebased onto app/v3, where #2178 and #2183 already cover most of this branch: the engine-backed fixtures and the hosted take-back's resumed-hold proof. What is left: - the hosted move rig and the drive rig's default daemon keep their homes under /tmp on Unix, because macOS's temporary folder leaves a workspace socket only a few bytes under the address limit; - the L12 death-branches test waits for A's branch row to hold its three orphan turns before it reads them. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
What changes
Tests that seal through codeaf's own furrow engine now look for it the same way the product does: the configured engine (
CODEAF_FURROW) or the one embedded in the build, never one found on PATH.celltest.Enginedoes this in one place. It replaces 15 copied checks in the session, cellstore, cellsync, cellindex, syncsetup and cmd/codeaf suites.make furrowor setCODEAF_FURROW.make testandmake test-focusnow runmake furrowfirst.test-touched,pr-readyand the touched CI legs therefore build with the pinned engine and run these tests instead of skipping them.Cause: the tests checked for an engine with
furrow.ResolveBinary, which falls back to PATH (internal/furrow/furrow.go:332). On a machine with an older furrow on PATH, the check passed and the tests ran. The seal itself accepts only the configured or embedded engine (internal/furrow/furrow.go:350) and refused, so the tests failed. No test target embedded the pinned engine.Evidence
TestSealedTreeCarriesTheSessionTruthC1bModelChoiceandTestSealedTreeCarriesTaskHistoryfailed with "engine unavailable".TestUserBashChangesReachTheTurnEndSnapshotfailed with "no engine to seal with … no engine of codeaf's own".go test: all four seal tests skip with the message above.make test-focus, starting with no engine staged: the target staged the engine, and all four ran and passed, EXIT=0:TestSealedTreeCarriesTheSessionTruthC1bModelChoice(0.59s)TestSealedTreeCarriesTaskHistory(0.28s)TestUserBashChangesReachTheTurnEndSnapshot(0.28s)TestOwnershipSealedTasklessChatCarriesIdentity(0.50s)make vetandmake fmt-checkpass.Limits
internal/syncsetup:TestAReturnAfterTheWriterReopensIsNotALostRaceTestWatchDisplacementRetiresTheDriveHoldImmediatelyTestOwnershipCheckThatFindsAnotherHolderKeepsUnsentTurnsTestContinuingAChatKeepsItsLeaseDespiteDamagedTeamsAndLaterHealscmd/codeaf:TestAppChatRowsR2SavedTurnTimeTestAppChatStartupR3QuietReleaseTestC1AppViewerAcceptsRealPendingConsentTestC1C2AppViewerRefusesWorkBeforeSubmissionmake testnow needs network access or aFURROW_ARTIFACTpath to stage the engine, the same asmake build.internal/session, the skip message says to setCODEAF_FURROW, but that suite readsCODEAF_TEST_FURROW. The main instruction,make furrow, is correct everywhere.🤖 Generated with Claude Code