CI: the launcher is compiled, as the release builds it #482

Closed
github-bot wants to merge 1 commit from github-bot/gh-482 into main AGit
Owner

@⁠erdemcisse on GitHub · 2026-12-02 16:18 UTC · original
ci-build-launcher → main · +6 −0 · 1 files · 1 commits · closed without merging

launcher/Launcher.cs is not compiled by anything this repository checks. cargo clippy and cargo test cover the Rust crates; the launcher is built by scripts/build-launcher.ps1, run by hand, or inside -Package when a release is made. A C# error in that file therefore reaches main and the release zip unseen, and the first person to meet it is the one who starts Foxhound.exe.

Two open pull requests change that file right now (#465, #480), and CI can see neither of them.

What this adds

One step in .github/workflows/ci.yml, using the same script the release uses:

      - name: Launcher
        shell: powershell
        run: ./scripts/build-launcher.ps1

It sits before rustup toolchain install, so a C# error fails the run in seconds instead of after the Rust steps. It needs no toolchain: the script uses the C# compiler of the .NET Framework that Windows has, and it already throws a clear message where that compiler is missing.

Cost

303 ms measured here for a cold target\launcher (built ...\target\launcher\Foxhound.exe). The job's 60-minute timeout is untouched, and nothing beyond that one folder under target changes.

Tested here

check result
the invocation CI runs (powershell -Command ". './scripts/build-launcher.ps1'") built ...\target\launcher\Foxhound.exe, exit 0, 303 ms
the same, with int x = ; appended to launcher/Launcher.cs exit 1, launcher\Launcher.cs(2729,35): error CS1525: Invalid expression term ';' — the run fails instead of passing quietly
the workflow file parses; steps are actions/checkout@v5, Launcher, the rustup step, Swatinem/rust-cache@v2, Clippy, Clippy, diagnostics build, Tests

The pull request's own run exercises the new step, since this change is the workflow itself.

**@⁠erdemcisse** on GitHub · 2026-12-02 16:18 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/482) `ci-build-launcher` → `main` · +6 −0 · 1 files · 1 commits · closed without merging `launcher/Launcher.cs` is not compiled by anything this repository checks. `cargo clippy` and `cargo test` cover the Rust crates; the launcher is built by `scripts/build-launcher.ps1`, run by hand, or inside `-Package` when a release is made. A C# error in that file therefore reaches `main` and the release zip unseen, and the first person to meet it is the one who starts `Foxhound.exe`. Two open pull requests change that file right now (#465, #480), and CI can see neither of them. ## What this adds One step in `.github/workflows/ci.yml`, using the same script the release uses: ```yaml - name: Launcher shell: powershell run: ./scripts/build-launcher.ps1 ``` It sits before `rustup toolchain install`, so a C# error fails the run in seconds instead of after the Rust steps. It needs no toolchain: the script uses the C# compiler of the .NET Framework that Windows has, and it already throws a clear message where that compiler is missing. ## Cost **303 ms** measured here for a cold `target\launcher` (`built ...\target\launcher\Foxhound.exe`). The job's 60-minute timeout is untouched, and nothing beyond that one folder under `target` changes. ## Tested here | check | result | |---|---| | the invocation CI runs (`powershell -Command ". './scripts/build-launcher.ps1'"`) | `built ...\target\launcher\Foxhound.exe`, exit 0, 303 ms | | the same, with `int x = ;` appended to `launcher/Launcher.cs` | exit 1, `launcher\Launcher.cs(2729,35): error CS1525: Invalid expression term ';'` — the run fails instead of passing quietly | | the workflow file | parses; steps are `actions/checkout@v5`, `Launcher`, the rustup step, `Swatinem/rust-cache@v2`, `Clippy`, `Clippy, diagnostics build`, `Tests` | The pull request's own run exercises the new step, since this change is the workflow itself.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 16:42:48 +00:00
Author
Owner

@⁠erdemcisse on GitHub · 2026-12-02 19:07 UTC · original

Checked that red run: it is not the step this PR adds.

Run 46924842794 (head 9a298ba, 2m48s) — every step passed except Tests:

step result
Launcher success
Clippy success
Clippy, diagnostics build success
Tests failure

And Tests did not report a failing test — the victory-shader lib test binary died:

error: test failed, to rerun pass `-p victory-shader --lib`
process didn't exit successfully: `...\target\debug\deps\victory_shader-b5507cf09d5107c3.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)

The last line the harness printed was test emit::barycentric_tests::first_half_values_render_on_hardware_and_warp ... ok, so that test finished; the access violation happened with another test in flight, which is why no name appears.

The same content passed four minutes later. The current head 8887da1 has the identical tree (cb691483ee) and the identical parent (7dbcdcb) as the failing 9a298ba — the only difference is the commit object — and run 46926469387 on it is green in 4m20s, Launcher step included. Same tree, opposite outcome: the crash is nondeterministic inside cargo test -p victory-shader, and nothing in a .github/workflows/ci.yml step addition can reach that binary.

So there is nothing to fix here; the PR is green at 8887da1. If the shader test binary keeps dying on the runner, that is worth its own issue — I am checking whether it reproduces locally before saying anything about a cause.

**@⁠erdemcisse** on GitHub · 2026-12-02 19:07 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/482#issuecomment-7355650173) Checked that red run: it is not the step this PR adds. **Run 46924842794** (head `9a298ba`, 2m48s) — every step passed except `Tests`: | step | result | |---|---| | Launcher | success | | Clippy | success | | Clippy, diagnostics build | success | | Tests | **failure** | And `Tests` did not report a failing test — the `victory-shader` lib test binary died: ``` error: test failed, to rerun pass `-p victory-shader --lib` process didn't exit successfully: `...\target\debug\deps\victory_shader-b5507cf09d5107c3.exe` (exit code: 0xc0000005, STATUS_ACCESS_VIOLATION) ``` The last line the harness printed was `test emit::barycentric_tests::first_half_values_render_on_hardware_and_warp ... ok`, so that test finished; the access violation happened with another test in flight, which is why no name appears. **The same content passed four minutes later.** The current head `8887da1` has the identical tree (`cb691483ee`) and the identical parent (`7dbcdcb`) as the failing `9a298ba` — the only difference is the commit object — and run 46926469387 on it is green in 4m20s, Launcher step included. Same tree, opposite outcome: the crash is nondeterministic inside `cargo test -p victory-shader`, and nothing in a `.github/workflows/ci.yml` step addition can reach that binary. So there is nothing to fix here; the PR is green at `8887da1`. If the shader test binary keeps dying on the runner, that is worth its own issue — I am checking whether it reproduces locally before saying anything about a cause.
Author
Owner

@⁠erdemcisse on GitHub · 2026-12-02 19:22 UTC · original

Checked further, so nobody spends time on a phantom:

  • Across the last 25 CI runs of this repo (gh run list --workflow=ci.yml, every failed run's log grepped for STATUS_ACCESS_VIOLATION) this crash appears once — in 46924842794. The other failed run in that window (46920076425, branch launcher-profile-answer) failed in victory-gpu on the descriptor test, not here.
  • The victory-shader lib suite is green here: the test binary was run end to end twice (a full run of that suite is about 8 minutes in a debug build, so the loop stopped there), on top of the workspace cargo test --workspace --locked pass that was already run for this branch. No access violation, so it does not reproduce on a developer machine.
  • The four GPU drawing tests in that crate cannot be the culprit: emit::diff_tests::tools() (crates/victory-shader/src/emit/diff_tests.rs:654) returns early unless VICTORY_CONSOLE_DXC and a PC dxc are both set, so all four print ok without doing any work — here and on the runner.

Recorded as a single-occurrence flake with no reproduction; no change is warranted, and this PR is unrelated to it.

**@⁠erdemcisse** on GitHub · 2026-12-02 19:22 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/482#issuecomment-7356083092) Checked further, so nobody spends time on a phantom: - Across the **last 25 CI runs** of this repo (`gh run list --workflow=ci.yml`, every failed run's log grepped for `STATUS_ACCESS_VIOLATION`) this crash appears **once** — in 46924842794. The other failed run in that window (46920076425, branch `launcher-profile-answer`) failed in `victory-gpu` on the descriptor test, not here. - The `victory-shader` lib suite is green here: the test binary was run end to end **twice** (a full run of that suite is about 8 minutes in a debug build, so the loop stopped there), on top of the workspace `cargo test --workspace --locked` pass that was already run for this branch. No access violation, so it does not reproduce on a developer machine. - The four GPU drawing tests in that crate cannot be the culprit: `emit::diff_tests::tools()` (`crates/victory-shader/src/emit/diff_tests.rs:654`) returns early unless `VICTORY_CONSOLE_DXC` and a PC `dxc` are both set, so all four print `ok` without doing any work — here and on the runner. Recorded as a single-occurrence flake with no reproduction; no change is warranted, and this PR is unrelated to it.
github-bot closed this pull request 2026-12-03 18:17:10 +00:00

Pull request closed

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