Skip to content

fix(tests): make async callback test deterministic#5986

Merged
rwgk merged 1 commit intopybind:masterfrom
rwgk:fix_test_async_callbacks_race
Feb 17, 2026
Merged

fix(tests): make async callback test deterministic#5986
rwgk merged 1 commit intopybind:masterfrom
rwgk:fix_test_async_callbacks_race

Conversation

@rwgk
Copy link
Collaborator

@rwgk rwgk commented Feb 16, 2026

Description

Replace the fixed sleep in test_async_callbacks with a bounded wait for all expected callback results, so detached worker scheduling no longer causes sporadic CI failures.

xref: #5985 (comment)

Suggested changelog entry:

  • Placeholder.

Replace the fixed sleep in test_async_callbacks with a bounded wait for all expected callback results, so detached worker scheduling no longer causes sporadic CI failures.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rwgk rwgk force-pushed the fix_test_async_callbacks_race branch from 3c786f7 to 7af0782 Compare February 17, 2026 05:14
rwgk added a commit to rwgk/pybind11 that referenced this pull request Feb 17, 2026
@rwgk rwgk marked this pull request as ready for review February 17, 2026 07:03
@rwgk
Copy link
Collaborator Author

rwgk commented Feb 17, 2026

Testing under #5988 was successful: Merging 4th of 4 PRs in quick succession.

@rwgk rwgk merged commit 1a86364 into pybind:master Feb 17, 2026
3 checks passed
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Feb 17, 2026
@rwgk rwgk deleted the fix_test_async_callbacks_race branch February 17, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs changelog Possibly needs a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant