A panic while a pipeline is made refuses it, the worker goes on #219

Open
github-bot wants to merge 1 commit from github-bot/gh-219 into main AGit
Owner

@⁠Ingenioeren on GitHub · 2026-11-26 02:13 UTC · original
Ingenioeren:fix/217-pipeline-worker-panic → main · +28 −1 · 1 files · 1 commits · open

What

Catch Rust panics during host pipeline creation. Log the shaders and any string panic message, record a refusal, and wake waiters so the worker can continue.

Part of #217 (the second item; the per-pipeline waited-time cap is a behaviour change left out).

The same fix is proposed upstream as Marvisak/VIctory#2980.

Why

A panic killed the worker and left the pipeline marked as being made. Later frames binding it could spend the full wait budget.

How tested

  • cargo test --locked --offline -p victory-gpu pipeline::make::tests::a_panic_refuses_the_pipeline -- --exact — failed without the guard with pipeline creation panicked (1 failed, exit 101). With the guard, 1 passed.
  • cargo test --locked --offline -p victory-gpu — 114 passed, 0 failed, 4 ignored. Fresh origin/main had 113 passed, 0 failed, 4 ignored.
  • cargo test --locked --offline -p victory-gpu --features diagnostics pipeline::make::tests::a_panic_refuses_the_pipeline -- --exact — 1 passed.
  • cargo clippy --locked --offline -p victory-gpu --all-targets — passed with warnings outside the changed file.
  • cargo fmt --check -p victory-gpu — exit 1 for existing formatting differences. No differences in the changed hunks.
  • cargo run --locked --offline -p xtask -- policy --staged — passed for the one staged file.

Not tested

No hardware run of a real panicking pipeline. No game run.

AI assistance: prepared with OpenAI Codex under Claude Code's direction, reviewed by Ingenioeren.

**@⁠Ingenioeren** on GitHub · 2026-11-26 02:13 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/219) `Ingenioeren:fix/217-pipeline-worker-panic` → `main` · +28 −1 · 1 files · 1 commits · open ## What Catch Rust panics during host pipeline creation. Log the shaders and any string panic message, record a refusal, and wake waiters so the worker can continue. Part of #217 (the second item; the per-pipeline waited-time cap is a behaviour change left out). The same fix is proposed upstream as Marvisak/VIctory#2980. ## Why A panic killed the worker and left the pipeline marked as being made. Later frames binding it could spend the full wait budget. ## How tested - `cargo test --locked --offline -p victory-gpu pipeline::make::tests::a_panic_refuses_the_pipeline -- --exact` — failed without the guard with `pipeline creation panicked` (1 failed, exit 101). With the guard, 1 passed. - `cargo test --locked --offline -p victory-gpu` — 114 passed, 0 failed, 4 ignored. Fresh `origin/main` had 113 passed, 0 failed, 4 ignored. - `cargo test --locked --offline -p victory-gpu --features diagnostics pipeline::make::tests::a_panic_refuses_the_pipeline -- --exact` — 1 passed. - `cargo clippy --locked --offline -p victory-gpu --all-targets` — passed with warnings outside the changed file. - `cargo fmt --check -p victory-gpu` — exit 1 for existing formatting differences. No differences in the changed hunks. - `cargo run --locked --offline -p xtask -- policy --staged` — passed for the one staged file. ## Not tested No hardware run of a real panicking pipeline. No game run. AI assistance: prepared with OpenAI Codex under Claude Code's direction, reviewed by Ingenioeren.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:38:08 +00:00
Author
Owner

@⁠ySKELLETONX on GitHub · 2026-11-26 11:26 UTC · original

Tested on RX 7600 XT, merged together with #229 on main 4f62c2a: all victory-gpu lib tests pass, including a_panic_refuses_the_pipeline. [profile.release] doesn't set panic = "abort", so the catch_unwind takes effect in release builds too. LGTM.

**@⁠ySKELLETONX** on GitHub · 2026-11-26 11:26 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/219#issuecomment-7190724755) Tested on RX 7600 XT, merged together with #229 on `main` 4f62c2a: all `victory-gpu` lib tests pass, including `a_panic_refuses_the_pipeline`. `[profile.release]` doesn't set `panic = "abort"`, so the `catch_unwind` takes effect in release builds too. LGTM.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/219/head:github-bot/gh-219'
git switch 'github-bot/gh-219'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-219'
git switch 'github-bot/gh-219'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-219'
git switch 'github-bot/gh-219'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-219'
git switch 'main'
git merge --squash 'github-bot/gh-219'
git switch 'main'
git merge --ff-only 'github-bot/gh-219'
git switch 'main'
git merge 'github-bot/gh-219'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.