Skip to content

test: summary concurrency test waits for the expected overlap - #547

Merged
rejojer merged 1 commit into
mainfrom
test/summary-concurrency-deterministic
Oct 1, 2026
Merged

rejojer merged 1 commit into
mainfrom
test/summary-concurrency-deterministic

Conversation

@rejojer

@rejojer rejojer commented Oct 1, 2026

Copy link
Copy Markdown
Member

test_summary_concurrency_caps_both_lanes_on_every_path failed on CI py3.13 (with frameworks) as (3, 2) == (3, 3) on three of #542's four commits, and passed on the fourth.

The mock held each call for a fixed 20 ms and expected all three to overlap inside it. On a slow runner the three summaries start further apart than that, so the first one finishes before the third arrives.

Each call still holds 20 ms, so a lane with no cap still lets the others in. It then holds until its lane reaches the expected peak, with a 5 s deadline.

  • Starting the summaries 15 ms apart reproduced (3, 2) before this change and passes after it.
  • An ignored cap still fails ((3, 3) == (1, 1)), and too little overlap still fails ((2, 2) == (3, 3)).

Test-only change.

test_summary_concurrency_caps_both_lanes_on_every_path held each mocked
call for a fixed 20 ms and expected all three to overlap inside it. On a
slow CI runner the three summaries start further apart than that, the
first is gone before the third arrives, and the control run reads
(3, 2) instead of (3, 3) (seen on py3.13 with frameworks).

Each call still holds 20 ms, so an ungated lane still lets the others
in, then holds until its lane reaches the expected peak (5 s deadline).
Starting the summaries 15 ms apart reproduced (3, 2) before and passes
now; an ignored cap still fails with (3, 3) == (1, 1), and too little
overlap still fails with (2, 2) == (3, 3).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-01T13:49:12.677771Z 5a587c6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@rejojer
rejojer merged commit f0d67c1 into main Oct 1, 2026
10 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