Reuse heap sync rounds on current main #343

Manually merged
github merged 3 commits from github-bot/gh-343 into gh-pr/343/base 2026-11-27 19:00:08 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 18:34 UTC · original
TaynanGT:fix/heap-sync-rounds-current-main → main · +356 −178 · 4 files · 3 commits · merged 2026-11-27 18:53 UTC

Bring Petr Seifert’s heap-sync rounds from #323 onto current main. When queued submissions can use the same completed round, let them share it. Keep the #311 check that closes host lists before submission preparation.

The existing round-coalescing unit test passed in an isolated Windows run. The combined diff keeps the four source files from #323 and resolves the single conflict at Host::submit.

Original change by PetrSeifert.

**@⁠TaynanGT** on GitHub · 2026-11-27 18:34 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/343) `TaynanGT:fix/heap-sync-rounds-current-main` → `main` · +356 −178 · 4 files · 3 commits · merged 2026-11-27 18:53 UTC Bring Petr Seifert’s heap-sync rounds from #323 onto current main. When queued submissions can use the same completed round, let them share it. Keep the #311 check that closes host lists before submission preparation. The existing round-coalescing unit test passed in an isolated Windows run. The combined diff keeps the four source files from #323 and resolves the single conflict at `Host::submit`. Original change by [PetrSeifert](https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/323).
Let queued submissions share a completed heap-sync round when the recorded stamps allow it. Keep the queue-close check before preparing submission steps.

Co-authored-by: PetrSeifert <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 18:36:23 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 18:34 UTC · original · edited 2026-11-27 18:48 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-27T18:47:11.482142Z 398b72c New commits
🔒 Security Review ✅ Completed 2026-11-27T18:48:38.622791Z 398b72c 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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 18:34 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/343#issuecomment-7225630130) · edited 2026-11-27 18:48 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"398b72c455a08ea0482f94e9ddff67d208570608","has_any_findings":true,"has_unresolved_findings":true,"status":"completed"},"security_review":{"commit_sha":"398b72c455a08ea0482f94e9ddff67d208570608","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"398b72c455a08ea0482f94e9ddff67d208570608","mergeGateEnabled":false,"pullRequestNumber":343,"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-27T18:47:11.482142Z">2026-11-27T18:47:11.482142Z</relative-time> | `398b72c` | New commits | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T18:48:38.622791Z">2026-11-27T18:48:38.622791Z</relative-time> | `398b72c` | 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>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 18:36 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 38c145b80a

ℹ️ 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".

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".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 18:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/343#pullrequestreview-6092155713) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `38c145b80a` <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". 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". </details>
@ -7243,3 +7291,3 @@
0 => crate::descriptor::begin_sync_heaps(),
0 => crate::descriptor::begin_sync_heaps_for(heap_sync),
mark => crate::descriptor::begin_sync_heaps_after(mark),
};
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 18:36 UTC · original

P1 Badge Recheck the heap-sync floor after deferred descriptor writes

With asynchronous heap sync enabled and the default VICTORY_PORT_JOURNAL setting, a queued submission can now reuse a round completed before preparation and receive SyncedHeaps(None) here. However, run_deferred subsequently executes Step::Copy, free Step::Placed, and Step::RawCopy operations that can write descriptor-heap memory. Their prep_wrote() calls raise the floor, but nothing rechecks it before drop(heaps_synced) at line 7484; that drop simply returns for None. Consequently, the submission can execute with stale host descriptors even though its preparation updated the title-side records. Revalidate the required round after deferred writes and any preparation-time landings, before sending the command lists.

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 18:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/343#discussion_r4722697041) **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Recheck the heap-sync floor after deferred descriptor writes** With asynchronous heap sync enabled and the default `VICTORY_PORT_JOURNAL` setting, a queued submission can now reuse a round completed before preparation and receive `SyncedHeaps(None)` here. However, `run_deferred` subsequently executes `Step::Copy`, free `Step::Placed`, and `Step::RawCopy` operations that can write descriptor-heap memory. Their `prep_wrote()` calls raise the floor, but nothing rechecks it before `drop(heaps_synced)` at line 7484; that drop simply returns for `None`. Consequently, the submission can execute with stale host descriptors even though its preparation updated the title-side records. Revalidate the required round after deferred writes and any preparation-time landings, before sending the command lists. Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
Pass both the enqueue stamp and the card-step plan through submission preparation. Forward the stamp when splitting a submission and retain the queue-close check.
Supply both optional arguments in the GPU producer test so it exercises an unstamped submission without a precomputed card-step plan.
github-bot changed target branch from main to gh-pr/343/base 2026-11-27 19:00:06 +00:00
github manually merged commit db814d1863 into gh-pr/343/base 2026-11-27 19:00:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.