CI: build the Linux runtime with Clang, build rpf9dump on Linux, run Build.sh (follow-up to #227) #679

Closed
bhimio1 wants to merge 1 commit from upstream-pr/679 into main
bhimio1 commented 2026-11-24 11:47:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by bhimio1 on 2026-11-24T11:47:55Z.


Follow-up to #227. That PR's CI changes could not be pushed with it (workflow files need a token scope), so they come here on their own.

What this adds

  • runtime.yml / linux-clang: the native Linux runtime build with Clang instead of the runner's default GCC, running ctest (CPU and llvmpipe tests). It checks that CMake really picked Clang. linux-gpu-tools keeps the GPU shader tests on GCC.
  • ci.yml / rpf9dump-linux: builds the asset exporter on Linux (the check job builds it on Windows only) and runs the synthetic TTPF export-retry test and the diagnostics project. tests/test_rpf9dump_exit_codes.py stays in check: two of its cases fail on Linux, because the directory they put at <file>.partial no longer blocks Util.WriteAtomic's unique temp name. That is an existing test/implementation mismatch, not changed here.
  • ci.yml / stdlib-tests-linux: a ./Build.sh --help step, matching make_game.py --help on Windows.
  • docs/linux.md: the "how it is checked" column now names these jobs.

Action versions are pinned to the same commits the existing jobs use. Rebased on current main; no Windows or macOS job is touched.

What is and isn't verified

  • Both workflow files parse as valid YAML and contain the new jobs.
  • The steps are the commands that were run by hand on Ubuntu (Clang build + ctest 72/72, rpf9dump build, Build.sh help). They have not run on GitHub-hosted runners yet. The first CI run on this PR is the real test; I'll fix anything it shows.
  • The linux-clang job's sccache / Vulkan-header cache steps are copied from the existing linux-gpu-tools job.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5471535752 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679). Originally posted by [bhimio1](https://github.com/bhimio1) on 2026-11-24T11:47:55Z. --- Follow-up to #227. That PR's CI changes could not be pushed with it (workflow files need a token scope), so they come here on their own. ## What this adds - **`runtime.yml` / `linux-clang`**: the native Linux runtime build with Clang instead of the runner's default GCC, running `ctest` (CPU and llvmpipe tests). It checks that CMake really picked Clang. `linux-gpu-tools` keeps the GPU shader tests on GCC. - **`ci.yml` / `rpf9dump-linux`**: builds the asset exporter on Linux (the `check` job builds it on Windows only) and runs the synthetic TTPF export-retry test and the diagnostics project. `tests/test_rpf9dump_exit_codes.py` stays in `check`: two of its cases fail on Linux, because the directory they put at `<file>.partial` no longer blocks `Util.WriteAtomic`'s unique temp name. That is an existing test/implementation mismatch, not changed here. - **`ci.yml` / `stdlib-tests-linux`**: a `./Build.sh --help` step, matching `make_game.py --help` on Windows. - `docs/linux.md`: the "how it is checked" column now names these jobs. Action versions are pinned to the same commits the existing jobs use. Rebased on current `main`; no Windows or macOS job is touched. ## What is and isn't verified - Both workflow files parse as valid YAML and contain the new jobs. - The steps are the commands that were run by hand on Ubuntu (Clang build + `ctest` 72/72, `rpf9dump` build, Build.sh help). They have **not** run on GitHub-hosted runners yet. The first CI run on this PR is the real test; I'll fix anything it shows. - The `linux-clang` job's sccache / Vulkan-header cache steps are copied from the existing `linux-gpu-tools` job.
KernelSmoker commented 2026-11-24 13:20:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KernelSmoker on 2026-11-24T13:20:15Z.

Review: COMMENTED


Independent Bazzite/Linux verification of PR head 68e43c552de2604d7ee36f6159ce2a8c1f1a62d3 (base 21625bca8c675c62f9dbffc318ce6a59d57faf31): ./Build.sh --help passed; Clang 23.1.5 configured with LEONIDA_REQUIRE_VULKAN=ON and built 161/161 targets; CTest completed with 70 passed, 2 skipped (shader_library_corpus requires a corpus; vk_sync_validation requires validation support), and 0 failed. The Linux rpf9dump checks also passed locally: .NET 8.0.428 build (0 warnings/errors), TTPF export-resume 4/4, and all diagnostics smoke checks. No game data used; Clang and .NET ran in temporary Fedora 45/Debian 12 containers on a Bazzite host.

At the latest hosted-check inspection, linux-clang, jactionlint, no-game-data, windows, and change-scope checks passed; linux-gpu-tools failed, but its job log was unavailable (cause unknown); several other checks remained queued. This local verification does not replace hosted CI. AI-assisted independent verification.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6039907948 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#pullrequestreview-6039907948). Originally posted by [KernelSmoker](https://github.com/KernelSmoker) on 2026-11-24T13:20:15Z. **Review:** COMMENTED --- Independent Bazzite/Linux verification of PR head `68e43c552de2604d7ee36f6159ce2a8c1f1a62d3` (base `21625bca8c675c62f9dbffc318ce6a59d57faf31`): `./Build.sh --help` passed; Clang 23.1.5 configured with `LEONIDA_REQUIRE_VULKAN=ON` and built 161/161 targets; CTest completed with 70 passed, 2 skipped (`shader_library_corpus` requires a corpus; `vk_sync_validation` requires validation support), and 0 failed. The Linux rpf9dump checks also passed locally: .NET 8.0.428 build (0 warnings/errors), TTPF export-resume 4/4, and all diagnostics smoke checks. No game data used; Clang and .NET ran in temporary Fedora 45/Debian 12 containers on a Bazzite host. At the latest hosted-check inspection, `linux-clang`, `jactionlint`, `no-game-data`, `windows`, and change-scope checks passed; `linux-gpu-tools` failed, but its job log was unavailable (cause unknown); several other checks remained queued. This local verification does not replace hosted CI. AI-assisted independent verification.
MoonEyes commented 2026-11-27 22:42:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-27T22:42:35Z.


Hi @bhimio1, thanks for this pull request.

CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post claiming: <ID> there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one.

The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time.

Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7229552656 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#issuecomment-7229552656). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-27T22:42:35Z. --- Hi @bhimio1, thanks for this pull request. CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post `claiming: <ID>` there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one. The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time. Could you post the claim in #1608 and put its ID (or a link to it) on the pull request's "Claimed in the coordination issue as:" line? If you already claimed it in another form, a link to your comment is enough. AI-assisted (Claude Code, Claude Opus 5.5).
bhimio1 commented 2026-11-27 23:01:28 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by bhimio1 on 2026-11-27T23:01:28Z.


I made this PR before that existed

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7229809408 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#issuecomment-7229809408). Originally posted by [bhimio1](https://github.com/bhimio1) on 2026-11-27T23:01:28Z. --- I made this PR before that existed
zmasi commented 2026-11-28 23:06:19 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:06:19Z.


#679 | head 68e43c552d (merged cleanly with main adfb3821a2) | bash ./Build.sh --help + python -I tests/test_ci_registration.py -v + python -I tests/test_ci_main_signal.py -v + python -I tests/test_docs_table_rows.py | red on main: rpf9dump-linux job and ./Build.sh --help step absent from .github/workflows/ci.yml, linux-clang job absent from .github/workflows/runtime.yml, and docs/linux.md table rows still reported Clang and Linux rpf9dump had no CI jobs | green on PR+main: bash ./Build.sh --help exited 0, 18 ran, OK (test_ci_registration.py), 6 ran, OK (test_ci_main_signal.py), 3 ran, OK (test_no_game_data_workflow.py), 21 ran, OK (test_progress_dashboard_ci.py), 2 ran, OK (test_docs_table_rows.py), 17 ran, OK (test_docs_links.py), 5 ran, OK (test_docs_repo_paths.py), and 4 ran, OK (test_docs_cli_flags.py) | Windows 11 (10.0.26200.9974), Python 3.12.10, Git for Windows Bash | AI-assisted: yes

Audited 68e43c552d (.github/workflows/ci.yml, .github/workflows/runtime.yml, and docs/linux.md) merged cleanly onto main (adfb3821a2) — first verification report on this PR. Confirmed rpf9dump-linux targets net8.0 matching tools/rpf9dump/rpf9dump.csproj, linux-clang pins KhronosGroup/Vulkan-Headers 6802bb4733b63ed5efd3adb308a6c885ef180ea1 consistently with the existing runtime.yml jobs, both workflow files preserve test_ci_main_signal.py concurrency and schedule invariants, and docs/linux.md + tests/test_docs_encoding.py + scripts/check_no_game_data.py pass cleanly.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7247202521 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#issuecomment-7247202521). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-28T23:06:19Z. --- #679 | head 68e43c552de2604d7ee36f6159ce2a8c1f1a62d3 (merged cleanly with main adfb3821a2) | `bash ./Build.sh --help` + `python -I tests/test_ci_registration.py -v` + `python -I tests/test_ci_main_signal.py -v` + `python -I tests/test_docs_table_rows.py` | red on main: `rpf9dump-linux` job and `./Build.sh --help` step absent from `.github/workflows/ci.yml`, `linux-clang` job absent from `.github/workflows/runtime.yml`, and `docs/linux.md` table rows still reported Clang and Linux `rpf9dump` had no CI jobs | green on PR+main: `bash ./Build.sh --help` exited `0`, `18 ran, OK` (`test_ci_registration.py`), `6 ran, OK` (`test_ci_main_signal.py`), `3 ran, OK` (`test_no_game_data_workflow.py`), `21 ran, OK` (`test_progress_dashboard_ci.py`), `2 ran, OK` (`test_docs_table_rows.py`), `17 ran, OK` (`test_docs_links.py`), `5 ran, OK` (`test_docs_repo_paths.py`), and `4 ran, OK` (`test_docs_cli_flags.py`) | Windows 11 (`10.0.26200.9974`), Python 3.12.10, Git for Windows Bash | AI-assisted: yes Audited `68e43c552d` (`.github/workflows/ci.yml`, `.github/workflows/runtime.yml`, and `docs/linux.md`) merged cleanly onto `main` (`adfb3821a2`) — first verification report on this PR. Confirmed `rpf9dump-linux` targets `net8.0` matching `tools/rpf9dump/rpf9dump.csproj`, `linux-clang` pins `KhronosGroup/Vulkan-Headers` `6802bb4733b63ed5efd3adb308a6c885ef180ea1` consistently with the existing `runtime.yml` jobs, both workflow files preserve `test_ci_main_signal.py` concurrency and schedule invariants, and `docs/linux.md` + `tests/test_docs_encoding.py` + `scripts/check_no_game_data.py` pass cleanly.
TheGeogeo commented 2026-11-29 01:13:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T01:13:14Z.


Checked 68e43c552 merged (no commit) with main 87a39df94: Python 3.12.4, Windows 11 10.0.26300, CPU only.

  • CI only: no local test exercises this, so there is no red/green to show.
  • .github/workflows/ci.yml (8 jobs) and runtime.yml (5 jobs) still parse. It adds the rpf9dump-linux job and a Clang build of the Linux runtime.
  • The workflow meta-tests give the same result as on main: test_runner_calls_all_tests.py, test_no_game_data_workflow.py, test_progress_dashboard_ci.py and test_runtime_paths.py all pass.
  • The new jobs themselves only run in CI, so they are not checked here.

No blocker from my side.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248640150 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#issuecomment-7248640150). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-11-29T01:13:14Z. --- Checked `68e43c552` merged (no commit) with `main` `87a39df94`: Python 3.12.4, Windows 11 10.0.26300, CPU only. - CI only: no local test exercises this, so there is no red/green to show. - `.github/workflows/ci.yml` (8 jobs) and `runtime.yml` (5 jobs) still parse. It adds the `rpf9dump-linux` job and a Clang build of the Linux runtime. - The workflow meta-tests give the same result as on `main`: `test_runner_calls_all_tests.py`, `test_no_game_data_workflow.py`, `test_progress_dashboard_ci.py` and `test_runtime_paths.py` all pass. - The new jobs themselves only run in CI, so they are not checked here. No blocker from my side. AI-assisted (Claude Code).
aslan2142 commented 2026-12-01 10:41:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T10:41:56Z.

Review: CHANGES_REQUESTED


Requesting changes before this can land:

  1. Merge conflicts & stale CI job structure: On current main, .github/workflows/ci.yml has consolidated viewer-tests, translator-tests, and stdlib-tests-linux into linux-python-and-viewer. As a result, this PR conflicts with .github/workflows/ci.yml, and the updated job names in docs/linux.md:125-131 (stdlib-tests-linux, translator-tests) are now stale.
  2. CI status: The previous run had failing/cancelled jobs (check, linux-gpu-tools, stdlib-tests-linux).

Please rebase onto main (wiring ./Build.sh --help into linux-python-and-viewer and updating the job names in docs/linux.md), and ensure all CI jobs—including the new linux-clang and rpf9dump-linux jobs—pass cleanly.

(AI-assisted review.)

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6129633362 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#pullrequestreview-6129633362). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T10:41:56Z. **Review:** CHANGES_REQUESTED --- Requesting changes before this can land: 1. **Merge conflicts & stale CI job structure:** On current `main`, `.github/workflows/ci.yml` has consolidated `viewer-tests`, `translator-tests`, and `stdlib-tests-linux` into `linux-python-and-viewer`. As a result, this PR conflicts with `.github/workflows/ci.yml`, and the updated job names in `docs/linux.md:125-131` (`stdlib-tests-linux`, `translator-tests`) are now stale. 2. **CI status:** The previous run had failing/cancelled jobs (`check`, `linux-gpu-tools`, `stdlib-tests-linux`). Please rebase onto `main` (wiring `./Build.sh --help` into `linux-python-and-viewer` and updating the job names in `docs/linux.md`), and ensure all CI jobs—including the new `linux-clang` and `rpf9dump-linux` jobs—pass cleanly. *(AI-assisted review.)*
MoonEyes commented 2026-12-02 11:39:35 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T11:39:35Z.


Closing: this pull request no longer applies to current main (merge conflict in .github/workflows/ci.yml, .github/workflows/runtime.yml and docs/linux.md), and open pull requests that have fallen out of step with main are being closed so the list stays workable. If you still want this change, rebase it on current main and reopen it (or open a new pull request); it will be looked at again.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7344227655 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/679#issuecomment-7344227655). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T11:39:35Z. --- Closing: this pull request no longer applies to current `main` (merge conflict in `.github/workflows/ci.yml`, `.github/workflows/runtime.yml` and `docs/linux.md`), and open pull requests that have fallen out of step with `main` are being closed so the list stays workable. If you still want this change, rebase it on current `main` and reopen it (or open a new pull request); it will be looked at again. AI-assisted (Claude Code).

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
ProjectLeonida/mandy!679
No description provided.