Skip to content

test(autostart): read only committed command files in the native-failure test - #588

Open
tnunamak wants to merge 1 commit into
mainfrom
fix/autostart-test-temp-file
Open

tnunamak wants to merge 1 commit into
mainfrom
fix/autostart-test-temp-file

Conversation

@tnunamak

Copy link
Copy Markdown
Contributor

failed native result is rejected for that command in reference-implementation/test/autostart-store.test.ts fails intermittently in CI with "Autostart change was not applied by the desktop app within 0.5s" (seen on #577 and #585 on 2026-10-23).

The store writes each command to <id>.json.<uuid>.tmp and then renames it (server/autostart-store.ts:69-71). The test took the first directory entry without filtering, so a read during that window picked the temporary name, answered the wrong command id, and the request timed out. The test now reads only .json names, as its commands() helper already does.

Under 32-way parallel load the old test failed 4 of 64 runs and the new one 0 of 64. Test-only change.

Assisted-by: AI

…ure test

The store writes each command to <id>.json.<uuid>.tmp and renames it.
The test took the first directory entry, so a read during that window
answered a temporary name and the request timed out with "was not
applied by the desktop app". Filter to .json names, as the test's own
helper already does. Under 32-way parallel load the old test failed 4 of
64 runs and the new one 0 of 64.

Signed-off-by: Tim Nunamaker <tnunamak@gmail.com>
Assisted-by: AI
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