Skip to content

Conversation

@imichaelmoore
Copy link
Collaborator

Summary

  • Fix flaky "job ordering (order keyword)" e2e test that was causing CI failures
  • The test verifies pmtr starts jobs based on order keyword by comparing timestamps
  • Root cause: even though pmtr starts jobs in correct order, OS scheduling can cause the timestamp writes to race

Fix

Add proportional sleep delays (0.1s, 0.2s, 0.3s) before each job writes its timestamp, ensuring timestamps reflect the actual start order.

Test plan

  • Verify CI passes on this branch

The test verifies pmtr starts jobs in order based on the 'order' keyword
by having each job write a timestamp to a file and checking timestamps
are ascending. However, even though pmtr starts jobs in the correct
order, OS scheduling can cause the timestamp writes to race.

Fix by adding proportional sleep delays (0.1s, 0.2s, 0.3s) before each
job writes its timestamp, ensuring the timestamps reflect start order.
@imichaelmoore imichaelmoore changed the title Fix flaky job ordering e2e test fix(tests): flaky job ordering e2e test Nov 29, 2025
@imichaelmoore imichaelmoore merged commit 808121c into troydhanson:master Nov 29, 2025
2 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