Repository navigation
bl-186: Flaky WorkflowReloadCommandTest, two config_reload_failed events for one invalid edit - #96
Merged
Merged
Conversation
Cause of the flaky WorkflowReloadCommandTest: LoopFixture.writeWorkflow used Path.writeText, which truncates the file and then writes it. A reload poll of the running loop between the two steps reads an empty or partial WORKFLOW.md, a text of its own hash, and records it as a rejected edit, so the one invalid edit gives two config_reload_failed events. A throwaway test that wrote the file in two steps, empty then the invalid text, a poll apart, recorded two events: tracker.kind is required (hash e3b0c442, the empty file) and agent.max_turns must be a positive integer, got 0. The reload code is right, one event per rejected text (spec 6.2). writeWorkflow now writes a temporary file in the same folder and moves it over WORKFLOW.md atomically, through replaceAtomically, moved out of TranscriptReplay into AtomicFiles.kt and shared by both. A reload assertion that expects one event now lists every event of that kind when it fails. ClaudeCodeTrackerToolsTest m4-14 (bl-243) was fixed by bl-215's commit 2d8c1ba, which replaces the fake claude's record files atomically. Its failure messages now add the runner_output events of each issue, stderr included, so a fake claude that exits early shows why.
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.
Loop verified the result of attempt d1a5800b for bl-186: every check passed.
Verdict: verified
Fingerprint: git:96f6edfe3add61a5296b3c5eed5fb96fd12c89cb:e3b0c44298fc1c14:e3b0c44298fc1c14
Checks:
Judgment calls left to a human: 3
Refs bl-186