Repository navigation
fix: share ThreadSafeBus send lock with default periodic tasks - #2116
zariiii9003 merged 2 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review
The automated review has remained marked running since 27 October on the
unchanged head. Requesting a fresh review to recover that stalled attempt.
On Mon, 26 Oct 2026 21:28:12 -0700, "chatgpt-codex-connector[bot]" < ***@***.***> wrote:
chatgpt-codex-connector[bot] left a comment (hardbyte/python-can#2116) <!--
codex-pull-request-review-summary --> <!-- codex-review-state:v1
{"code_review":{"commit_sha":"4fdc38364c97b79828983059d9985cd316eb714c","has_any_findings":null,"has_unresolved_findings":null,"status":"running"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}}
--> ## Codex Review Summary This comment shows the latest Codex review
activity on this pull request. | Review | Status | Commit | Review trigger
| | --- | --- | --- | --- | | 📝 **Code Review** | 🔄 **Running** since
<relative-time
datetime="2026-10-27T04:27:46.369343Z">2026-10-27T04:27:46.369343Z</relative-time>
| `4fdc383` | PR opened | <details> <summary>ℹ️ About Codex in
GitHub</summary> <br/> [Your team has set up Codex to review pull requests
in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews
are triggered when you - Open a pull request for review - Mark a draft as
ready - Comment ***@***.*** review" or ***@***.*** 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. </details> --
Reply to this email directly or view it on GitHub:
#2116 (comment)
You are receiving this because you authored the thread. Message ID:
***@***.***>
|
|
Codex Review: Something went wrong. Try again later by commenting “@codex review”. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
AI Review: share ThreadSafeBus send lock with default periodic tasksThe fix in Tests
Verdictrequest changes |
|
Thanks for the review. I've addressed the test feedback in faf6e82: the single regression is now in I checked the revised test in an isolated lock-behaviour harness (20/20 expected failures with the old locking behaviour, 20/20 passes with the corrected behaviour). This is not an upstream test-suite result; the revised test still needs to run against the actual package in CI. |
Summary of Changes
Default thread-based periodic tasks call the wrapped backend directly, bypassing ThreadSafeBus.send. The null periodic context therefore permits a manual send and a periodic send, or two periodic workers, to enter backend.send concurrently.
Assign the wrapper's reentrant send lock to the backend's default periodic-task lock after initializing the send/receive locks. Preserve direct backend dispatch and separate receive locking. Add two event-controlled behavioral regressions with real VirtualBus delivery, a clarifying docstring sentence and a news fragment.
Related Issues / Pull Requests
Type of Change
Checklist
tox).Additional Notes
Validation recorded on 25 October 2026, Linux / CPython 3.13.16:
errno 19). The suite remains failing and the all-checks checkbox remains unchecked.On 27 October, public head
4fdc38364c97b79828983059d9985cd316eb714cwas recovered with full tree62abe5d4dcdaa2cebcc413648a789b7212b54f2d, exactly matching tested clean candidate97c97b4on unchanged mainb4f82ab. The saved raw tests, installed-source identities and equal full-suite failure sets were inspected again; Python/tox checks were not rerun during this publication refresh.The contract is mutual exclusion for default thread-based periodic sends, not bounded backend latency or synchronous cancellation. Independent inspection reproduced the same existing non-joining stop/post-shutdown-send limitation on base and candidate. A blocking backend send can retain the shared lock. Native/specialized periodic implementations, physical hardware and the full OS/interpreter CI matrix remain unvalidated.
Prepared with AI assistance and independently inspected during the original preparation.
Timothy Anderson — Spotted Ridge Engineering / OC Labs
Independent software verification · GDN (Global Decision Network)
timothyanderson096@gmail.com · Engineering evidence