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

Closed
leonida/mandy
bhimio1 wants to merge 0 commits from feat/linux-ci into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

bhimio1 commented 2026-11-24 11:47:55 +00:00

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.
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 reviewed 2026-11-24 13:20:15 +00:00
KernelSmoker left a comment
No description provided.
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

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).

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

I made this PR before that existed

I made this PR before that existed
zmasi commented 2026-11-28 23:06:19 +00:00

#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.

#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

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).

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 reviewed 2026-12-01 10:41:56 +00:00
aslan2142 left a comment
No description provided.
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

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).

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).
Sign in to join this conversation.
No description provided.