Skip to content

Test: live-session promote order no longer depends on thread timing - #158

Open
frindle wants to merge 1 commit into
mainfrom
test-promote-order-race
Open

frindle wants to merge 1 commit into
mainfrom
test-promote-order-race

Conversation

@frindle

@frindle frindle commented Dec 1, 2026

Copy link
Copy Markdown
Owner

The live session's promote starts on its own thread, outside the promote limit, so the test world can record it just before or just after the queue's first promote. test_live_session_then_season_in_episode_order_then_rest asserted the exact start order and failed once on #155, which only changes comments.

The test now checks that:

  • all five rows were promoted once
  • the live one ran as a want
  • the queue kept season-then-episode order

The runner is unchanged. In the real runner the queued promotes pause before each chunk while a watched file is fetched.

The live session's promote runs on its own thread outside the concurrency limit, so it can be
recorded just after the queue's first promote. The test now checks that it ran as a want and that
the queue kept episode order. It failed once on a comment-only PR.
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