Say whether submissions were still in the air when the device went #451

Closed
github-bot wants to merge 661 commits from github-bot/gh-451 into main AGit
Owner

@⁠Kal0s-design on GitHub · 2026-11-29 17:28 UTC · original
Kal0s-design:fix/removal-context-flights → main · +60049 −5438 · 206 files · 661 commits · closed without merging

Refs #448. Diagnostics only.

When the host device is lost, removal_context reports the submitting thread's phase. For phases 0, 1 and 3 it always added "(nothing of ours was running on the card)". With submissions sent ahead (VICTORY_RELAY), though, the submitting thread can be preparing the next submission while earlier ones are still on the card. The same line's "submissions started X finished Y" can show that, but the wording says the opposite. In #448 every run ended with "preparing a submission (nothing of ours was running on the card) … 4.8–5.3 s", which reads as an idle card stalled on the CPU side.

Now the phase text comes from submitting_phase(phase, started - finished):

  • with nothing in the air: unchanged, "(nothing of ours was running on the card)";
  • otherwise: "(N submissions of ours started and not yet seen finished)". FINISHED is the last submission seen finished, so these may have finished without being looked at yet, and the text doesn't claim more than that.

A new unit test the_removal_phase_names_submissions_still_on_the_card covers it. cargo test -p victory-gpu --lib passes (528), clippy is clean with and without --all-features, and cargo xtask policy is ok.

AI-assisted: yes

🤖 Generated with Claude Code

Update (4f507d5): the wording is now "started and not yet seen finished": STARTED is counted when a submission's preparation begins, so the one being prepared is included, and "sent" claimed more than the counter holds. Pointed out in review of the same change on a sibling tree.

**@⁠Kal0s-design** on GitHub · 2026-11-29 17:28 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/451) `Kal0s-design:fix/removal-context-flights` → `main` · +60049 −5438 · 206 files · 661 commits · closed without merging Refs #448. Diagnostics only. When the host device is lost, `removal_context` reports the submitting thread's phase. For phases 0, 1 and 3 it always added "(nothing of ours was running on the card)". With submissions sent ahead (`VICTORY_RELAY`), though, the submitting thread can be preparing the next submission while earlier ones are still on the card. The same line's "submissions started X finished Y" can show that, but the wording says the opposite. In #448 every run ended with "preparing a submission (nothing of ours was running on the card) … 4.8–5.3 s", which reads as an idle card stalled on the CPU side. Now the phase text comes from `submitting_phase(phase, started - finished)`: - with nothing in the air: unchanged, "(nothing of ours was running on the card)"; - otherwise: "(N submissions of ours started and not yet seen finished)". `FINISHED` is the last submission seen finished, so these may have finished without being looked at yet, and the text doesn't claim more than that. A new unit test `the_removal_phase_names_submissions_still_on_the_card` covers it. `cargo test -p victory-gpu --lib` passes (528), clippy is clean with and without `--all-features`, and `cargo xtask policy` is ok. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) **Update (4f507d5):** the wording is now "started and not yet seen finished": `STARTED` is counted when a submission's preparation begins, so the one being prepared is included, and "sent" claimed more than the counter holds. Pointed out in review of the same change on a sibling tree.
The removal report said "preparing a submission (nothing of ours was
running on the card)" whenever the submitting thread was between or
before submissions, though with submissions sent ahead (VICTORY_RELAY)
some may still be running then. In #448 that read as an idle card while
the same line's "submissions started X finished Y" could say otherwise.
The phase now names how many were sent and not yet seen finished, and
says nothing ran only when none were.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:31:06 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 19:09 UTC · original

Thanks for fixing the diagnostic wording. Started minus finished is the number not yet observed complete, not proof that those lists are still executing. The proposed text and focused test preserve that distinction without changing submission behavior.

**@⁠TaynanGT** on GitHub · 2026-11-29 19:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/451#issuecomment-7261051484) Thanks for fixing the diagnostic wording. Started minus finished is the number not yet observed complete, not proof that those lists are still executing. The proposed text and focused test preserve that distinction without changing submission behavior.
STARTED is counted when a submission's preparation begins, before its lists
go to the queue, so the one being prepared is among STARTED less FINISHED;
'sent' claimed more than the counter holds. (Found in review of the same
change on a sibling tree.)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot closed this pull request 2026-11-30 17:08:31 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:06 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:06 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/451#issuecomment-7285720251) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.