Repository navigation
Idle app engine CPU down about tenfold; cmd/codeaf suite runs to the end - #1941
Merged
Merged
Conversation
…anges Every open job or step chat checks the job's budget every 100 ms. Each check read and decoded the job's whole document, step log included, and trimmed the log again, which was over half of an idle engine's CPU. The check now stats the file first and decodes the document only when the file has changed; the budget line it answers is the same. Co-Authored-By: Claude Opus 5.5 <[email protected]>
runApp armed a thirty-second bound on its wrap-up, and its own deferred cancel started that bound as it returned. A process that lived on after the door was then ended thirty seconds later: the cmd/codeaf test binary runs the door in-process, so the whole suite died partway with "still leaving after 30s" and no test to blame. The bound now stands down when the door returns, and still ends a wrap-up that outruns it while the door is leaving. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Cuts an idle app engine's CPU about tenfold, and stops the
cmd/codeaftest binary being killed partway.Factory job budget check
App leave bound
runApp's 30 s leave bound was started by its own deferred cancel as it returned.cmd/codeaftest binary runs the door in-process, so the suite died about 150 tests in with "still leaving after 30s".mainexits as soon as the door returns.How to test
go vet ./cmd/codeafmake test-focus PKGS=./cmd/codeaf RUN='^TestAJobsChat|^TestADoorThatReturned|^TestALeaving|^TestTheAppDoor'go test ./cmd/codeaf -count=1now runs to the end instead of being killed partway.Known red on
app/v3, not from this changego vetfalse positive atinternal/factory/run/chatstage.go:402.cmd/codeaftest failures, several laws and three manual retrieval tests fail onapp/v3with and without these commits.🤖 Generated with Claude Code