Tests that failed CI by timing: one asking at a time, and the heap-sync thread #55

Merged
TaynanGT merged 2 commits from upstream-pr/55 into main 2026-11-26 20:14:13 +00:00
TaynanGT commented 2026-11-26 19:51:54 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-26T19:51:54Z.


Three tests failed CI by timing: host::refresh_tests::unchanged_ranges_are_known (on this PR), watch::port7_tests::no_write_is_lost_with_port_7 and descriptor::tests::records_copied_as_bytes_are_made_at_the_next_sync (both seen locally). The xasync and descriptor-grid fixes this PR started with are already on main through #57; a follow-up PR handles the reentrant wait in XAsyncGetStatus.

  • The one asking. watch::ask_once keeps one asking for the whole process. When two tests asked at the same moment, each asking ended the other's, and one test's asking took the write the other was waiting for. The five tests that go through it (unchanged_ranges_are_known, no_write_is_lost_with_port_7, refreshed_ranges_hold_title_memory, landings_title_writes_and_light_refreshes_at_once, frame_of_refreshes) now hold a test-only lock, watch::one_asking_test(). Their assertions are unchanged.
  • The heap-sync thread. Once another test starts the victory-heap-sync thread, a sync on that thread can take a page's write and make the record just after the test's own sync_heaps() returns. The test syncs again for up to 200 ms; a record that is never made still fails.

This replaces the child-process isolation of unchanged_ranges_are_known from the earlier head, since the lock covers the whole family.

Checked by running the whole victory-gpu lib suite 15 times per commit on the RTX 4090 PC:

commit failures
before (6b00db81) 3 of 15 (2× no_write_is_lost_with_port_7, 1× records_copied_as_bytes_are_made_at_the_next_sync)
with the lock 0 of 15
with the lock and the descriptor retry 0 of 15

🤖 Generated with Claude Code

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5516297570 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/55). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-26T19:51:54Z. --- Three tests failed CI by timing: `host::refresh_tests::unchanged_ranges_are_known` (on this PR), `watch::port7_tests::no_write_is_lost_with_port_7` and `descriptor::tests::records_copied_as_bytes_are_made_at_the_next_sync` (both seen locally). The xasync and descriptor-grid fixes this PR started with are already on main through #57; a follow-up PR handles the reentrant wait in `XAsyncGetStatus`. - **The one asking.** `watch::ask_once` keeps one asking for the whole process. When two tests asked at the same moment, each asking ended the other's, and one test's asking took the write the other was waiting for. The five tests that go through it (`unchanged_ranges_are_known`, `no_write_is_lost_with_port_7`, `refreshed_ranges_hold_title_memory`, `landings_title_writes_and_light_refreshes_at_once`, `frame_of_refreshes`) now hold a test-only lock, `watch::one_asking_test()`. Their assertions are unchanged. - **The heap-sync thread.** Once another test starts the `victory-heap-sync` thread, a sync on that thread can take a page's write and make the record just after the test's own `sync_heaps()` returns. The test syncs again for up to 200 ms; a record that is never made still fails. This replaces the child-process isolation of `unchanged_ranges_are_known` from the earlier head, since the lock covers the whole family. Checked by running the whole `victory-gpu` lib suite 15 times per commit on the RTX 4090 PC: | commit | failures | |---|---| | before (6b00db81) | 3 of 15 (2× `no_write_is_lost_with_port_7`, 1× `records_copied_as_bytes_are_made_at_the_next_sync`) | | with the lock | 0 of 15 | | with the lock and the descriptor retry | 0 of 15 | 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-26 19:52:05 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T19:52:05Z.


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-26T20:11:17.004764Z 8028442 New commits
🔒 Security Review ✅ Completed 2026-11-26T20:12:07.844818Z 8028442 New commits
ℹ️ 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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7202043838 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/55#issuecomment-7202043838). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T19:52:05Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"802844286bf763ca86a9a85b11a1fd0c3045c8e6","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"802844286bf763ca86a9a85b11a1fd0c3045c8e6","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"802844286bf763ca86a9a85b11a1fd0c3045c8e6","mergeGateEnabled":false,"pullRequestNumber":55,"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-26T20:11:17.004764Z">2026-11-26T20:11:17.004764Z</relative-time> | `8028442` | New commits | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-26T20:12:07.844818Z">2026-11-26T20:12:07.844818Z</relative-time> | `8028442` | New commits | <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>
TaynanGT commented 2026-11-26 20:05:50 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-26T20:05:50Z.


The failing check in the first run was host::refresh_tests::unchanged_ranges_are_known. At e924a7a5, that test passed locally, along with all 15 xasync tests. Windows CI also passed the default and diagnostics suites and Clippy on that exact commit.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7202292146 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/55#issuecomment-7202292146). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-26T20:05:50Z. --- The failing check in the first run was `host::refresh_tests::unchanged_ranges_are_known`. At `e924a7a5`, that test passed locally, along with all 15 `xasync` tests. [Windows CI](https://github.com/TaynanGT/Vice-Tay/actions/runs/45887866547) also passed the default and diagnostics suites and Clippy on that exact commit.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
TaynanGT/Vice-Tay!55
No description provided.