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

Closed
Kal0s-design wants to merge 661 commits from upstream-pr/451 into main
Kal0s-design commented 2026-11-29 17:28:59 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by Kal0s-design on 2026-11-29T17:28:59Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5553239954 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/451). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-11-29T17:28:59Z. --- 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.
TaynanGT commented 2026-11-29 19:09:15 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:09:15Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7261051484 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/451#issuecomment-7261051484). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T19:09:15Z. --- 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 commented 2026-11-30 17:06:07 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:06:07Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285720251 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/451#issuecomment-7285720251). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:06:07Z. --- `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

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!451
No description provided.