Skip to content

Publish helper "entered" markers whole - #557

Merged
JE-Chen merged 1 commit into
mainfrom
dev
Nov 19, 2026
Merged

JE-Chen merged 1 commit into
mainfrom
dev

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Nov 19, 2026

Copy link
Copy Markdown
Member

Fixes the one failure in main's Code Quality run after #556 (pytest-headless (windows-2022, 3.11), job 135178189984).

test_agent_semantic_helper.py::test_cancel_retires_a_helper_after_it_entered_a_blocked_command read an empty marker: Path.write_text creates the file before writing it, and the test stopped polling as soon as the file existed. The later runtime still has active input or cleanup error followed from the helper still being blocked when the assertion failed.

  • test/fixtures/semantic_helper.py and test/fixtures/service_helper.py write the marker to a temporary file and os.replace it into place.
  • test_agent_semantic_helper.py and test_agent_service_helper.py wait for the expected content, not just the file.

Test-only change; the library is unchanged. Recorded as U-20261119-04.

Path.write_text creates the marker before writing it, and the tests
stopped polling once the file existed, so on Windows one read an empty
marker and failed while the helper was still blocked. The fixtures now
write a temporary file and os.replace it into place, and the tests wait
for the expected content.
@sonarqubecloud

Copy link
Copy Markdown

@JE-Chen
JE-Chen merged commit 830ee35 into main Nov 19, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant