Repository navigation
test: don't require a heartbeat write before a report ends the shell - #439
Merged
Merged
Conversation
Two workflow memory tests proved a background shell had started by
checking that its heartbeat file existed. Under parallel load the report
can end the child session about 0.1 s after the shell starts, before its
first write, so the check failed even though the shell started and was
ended. Release run 46608675841 hit this once.
Prove the start by the bash tool result ("command started in
background") and the end by the heartbeat file not growing over 1.5 s.
A shell that kept running would still fail the test.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: cc944a13-3e0b-43de-8040-5863182bbdb0
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.
Two tests in
workflow-agent-memory-worker.test.jsproved a background shell had started by checking that its heartbeat file existed. Under parallel load, the step's report can end the child session about 0.1 s after the shell starts, before the shell's first write. The check then fails even though the product behaved correctly: the shell started and was ended.Release run 46608675841 (v0.8.22) hit this once in its initial baseline run, on "a background shell started in the report's own message ends too". The case passed its sequential verification.
Changes:
command started in background).A shell that kept running still fails the test, because its file would grow during the pause.
Validation: the whole file passed on Linux (15/15), and
npm run lintpassed.