Remember render pipeline compiler failures reported on macOS 15 #211

Manually merged
github merged 49 commits from github-bot/gh-211 into main 2026-11-27 02:45:02 +00:00 AGit
Owner

@⁠Sheffy007 on GitHub · 2026-11-27 01:24 UTC · original
Sheffy007:fix/prologue-followup → main · +18 −3 · 3 files · 2 commits · merged 2026-11-27 02:32 UTC

Addresses the repeat-run stall reported in #181. On macOS 15, affected render pipelines return Compiler encountered an internal error alongside MTLCompilerService crash reports. The existing failure cache only recognized the XPC interruption reported on newer systems.

Recognize the macOS 15 message when recording the existing per-pipeline, per-OS-build cache marker. Other pipeline errors retain their existing retry behavior. The first compile can still stall, so #181 should stay open.

The new regression failed on the original classifier and passed after the change. Local validation on arm64 macOS 27.2.1 included the four-package test suite (430 passed, two ignored), Windows-target Clippy with warnings denied, the asset-policy check, and the x86-64 macOS release build. Confirmation of the cold-to-warm behavior on macOS 15 still needs an affected Mac.

**@⁠Sheffy007** on GitHub · 2026-11-27 01:24 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/211) `Sheffy007:fix/prologue-followup` → `main` · +18 −3 · 3 files · 2 commits · merged 2026-11-27 02:32 UTC Addresses the repeat-run stall reported in #181. On macOS 15, affected render pipelines return `Compiler encountered an internal error` alongside MTLCompilerService crash reports. The existing failure cache only recognized the XPC interruption reported on newer systems. Recognize the macOS 15 message when recording the existing per-pipeline, per-OS-build cache marker. Other pipeline errors retain their existing retry behavior. The first compile can still stall, so #181 should stay open. The new regression failed on the original classifier and passed after the change. Local validation on arm64 macOS 27.2.1 included the four-package test suite (430 passed, two ignored), Windows-target Clippy with warnings denied, the asset-policy check, and the x86-64 macOS release build. Confirmation of the cold-to-warm behavior on macOS 15 still needs an affected Mac.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:32:16 +00:00
github-bot force-pushed github-bot/gh-211 from 35bbe213a5 to 4251b96da0 2026-11-27 02:14:48 +00:00 Compare
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 01:54 UTC · original · requested changes

Thanks, recognizing the macOS 15 message is the right idea, but main has changed under this PR. Since c3d328b4, render pipelines compile on their own thread with a 10 s deadline, and crashes are recorded in victory-metal (archive::remember_crash, crates/victory-metal/src/archive.rs:162), keyed by both stages' DXIL. shaders.rs no longer records them, so compiler_crashed / remember_compiler_crash there would duplicate it.

Could you rebase on main and:

  1. Drop the shaders.rs changes.
  2. In archive::remember_crash, also accept the macOS 15 error: e.contains("XPC_ERROR_CONNECTION_INTERRUPTED") || e.trim_end_matches('.') == "Compiler encountered an internal error" (or a contains if the message can carry a prefix), with your regression test moved next to it.
  3. Fold the macOS 15 sentence and the #181 link into main's existing Compiler crashes bullet in docs/native-host.md, not in place of it.

The README change can stay if it still applies.

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 01:54 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/211#pullrequestreview-6082470631) · **requested changes** Thanks, recognizing the macOS 15 message is the right idea, but main has changed under this PR. Since c3d328b4, render pipelines compile on their own thread with a 10 s deadline, and crashes are recorded in `victory-metal` (`archive::remember_crash`, crates/victory-metal/src/archive.rs:162), keyed by both stages' DXIL. `shaders.rs` no longer records them, so `compiler_crashed` / `remember_compiler_crash` there would duplicate it. Could you rebase on main and: 1. Drop the `shaders.rs` changes. 2. In `archive::remember_crash`, also accept the macOS 15 error: `e.contains("XPC_ERROR_CONNECTION_INTERRUPTED") || e.trim_end_matches('.') == "Compiler encountered an internal error"` (or a `contains` if the message can carry a prefix), with your regression test moved next to it. 3. Fold the macOS 15 sentence and the #181 link into main's existing **Compiler crashes** bullet in docs/native-host.md, not in place of it. The README change can stay if it still applies.
Author
Owner

@⁠Sheffy007 on GitHub · 2026-11-27 02:01 UTC · original

Rebased onto main (c3d328b): dropped the shaders.rs changes, moved the macOS 15 Compiler encountered an internal error check and regression test into victory_metal::archive::remember_crash, and folded the macOS 15 note and #181 link into the existing Compiler crashes bullet in docs/native-host.md.

**@⁠Sheffy007** on GitHub · 2026-11-27 02:01 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/211#issuecomment-7207762862) Rebased onto `main` (`c3d328b`): dropped the `shaders.rs` changes, moved the macOS 15 `Compiler encountered an internal error` check and regression test into `victory_metal::archive::remember_crash`, and folded the macOS 15 note and #181 link into the existing **Compiler crashes** bullet in `docs/native-host.md`.
github manually merged commit 2ee25e1ec5 into main 2026-11-27 02:45:02 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 02:31 UTC · original · review (dismissed)

Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 02:31 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/211#pullrequestreview-6082717055) · **review (dismissed)** Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 02:31 UTC · original · approved these changes

I merged main into this branch and resolved the conflict with the PRs merged before it (both changes kept). Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 02:31 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/211#pullrequestreview-6082719584) · **approved these changes** I merged main into this branch and resolved the conflict with the PRs merged before it (both changes kept). Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!
This discussion has been locked. Commenting is limited to contributors.
No description provided.