Join retirement test workers before checking resource counts #336

Manually merged
github merged 1 commit from gh-pr/336/head into gh-pr/336/base 2026-11-27 17:36:29 +00:00
Owner

@⁠TaynanGT on GitHub · 2026-11-27 17:25 UTC · original
TaynanGT:test/join-retirement-workers → main · +25 −14 · 1 files · 1 commits · merged 2026-11-27 17:32 UTC

The retirement tests now join their workers before checking the resource counts. The batch is flushed by a thread-local destructor, and the implicit wait in std::thread::scope can return while that destructor is still running.

A standalone Windows test held the destructor in progress and observed the old ordering. With an explicit join, the caller waited for retirement before reading the result. This addresses the timing-dependent failure reported in #324.

Patch from hamdanpor-ctrl's 4380f16. Rust scope documentation.

**@⁠TaynanGT** on GitHub · 2026-11-27 17:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/336) `TaynanGT:test/join-retirement-workers` → `main` · +25 −14 · 1 files · 1 commits · merged 2026-11-27 17:32 UTC The retirement tests now join their workers before checking the resource counts. The batch is flushed by a thread-local destructor, and the implicit wait in `std::thread::scope` can return while that destructor is still running. A standalone Windows test held the destructor in progress and observed the old ordering. With an explicit join, the caller waited for retirement before reading the result. This addresses the timing-dependent failure reported in #324. Patch from [hamdanpor-ctrl's `4380f16`](https://github.com/hamdanpor-ctrl/Vice-Tay/commit/4380f169d582f56ba9a64335904259143d3fe43e). [Rust scope documentation](https://doc.rust-lang.org/std/thread/fn.scope.html).
Join the scoped workers explicitly so the retirement tests wait for thread-local batch destruction before counting held resources.

Co-authored-by: hamdanpor-ctrl <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 17:36:26 +00:00
github manually merged commit e9e7853432 into gh-pr/336/base 2026-11-27 17:36:29 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 17:25 UTC · original · edited 2026-11-27 17:27 UTC

Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T17:26:34.348671Z e9e7853 PR opened
🔒 Security Review ✅ Completed 2026-11-27T17:27:11.673726Z e9e7853 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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 17:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/336#issuecomment-7224392076) · edited 2026-11-27 17:27 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"e9e78534325f23b866741efba44046e9bf580746","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"e9e78534325f23b866741efba44046e9bf580746","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"e9e78534325f23b866741efba44046e9bf580746","mergeGateEnabled":false,"pullRequestNumber":336,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T17:26:34.348671Z">2026-11-27T17:26:34.348671Z</relative-time> | `e9e7853` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T17:27:11.673726Z">2026-11-27T17:27:11.673726Z</relative-time> | `e9e7853` | 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 "@⁠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. </details> </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.