Skip to content

fix(exec) Patch resume test race condition#12648

Merged
dylan-hurd-oai merged 1 commit intomainfrom
dh--flakey-resume-test
Feb 24, 2026
Merged

fix(exec) Patch resume test race condition#12648
dylan-hurd-oai merged 1 commit intomainfrom
dh--flakey-resume-test

Conversation

@dylan-hurd-oai
Copy link
Collaborator

Summary

The test exec_resume_last_respects_cwd_filter_and_all_flag makes one session “newest” by resuming it, but rollout updated_at is stored/sorted at second precision. On fast CI (especially Windows), the touch could land in the same second as initial session creation, making ordering nondeterministic.

This change adds a short sleep before the recency-touch step so the resumed session is guaranteed to have a later updated_at, preserving the intended assertion without changing product behavior.

Copy link
Collaborator

@etraut-openai etraut-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a sleep to a test is usually sets off big red flags, but I think it's reasonable in this case.

@dylan-hurd-oai
Copy link
Collaborator Author

Agreed - ideally we'd have millisecond granularity on the timestamps, but will defer to @jif-oai since I suspect that's a larger change

@dylan-hurd-oai dylan-hurd-oai merged commit fbeda61 into main Feb 24, 2026
33 checks passed
@dylan-hurd-oai dylan-hurd-oai deleted the dh--flakey-resume-test branch February 24, 2026 05:54
@github-actions github-actions bot locked and limited conversation to collaborators Feb 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants