ci: the renderer's build check runs on pull requests that touch it, not in every release #2586
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2586
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:ci/renderer-build-check-in-pr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Every release (nightly or stable) compiled the Vulkan back end alone (
longshot-builder compile --only renderer) as build checks that ship nothing:longshot_vk.sowithout and with AMD FSR 4 in the Linux job,longshot_vk.dllin the Windows job. That took about 11 minutes of the ~55-minute nightly on the 2-core release runner, and only caught a broken renderer after it had merged.This moves the check to pull requests.
ci.ymlgets arendererjob, a matrix of two: Renderer build check (Linux, compile --only renderer, without and with FSR 4) and Renderer build check (Windows, compile --only renderer, without and with FSR 4). It runs on the pull request runners (ubuntu-24.04, in thelongshot-ci-checksimage, with theci_setup.shfallback like the other jobs), never onreleaseordeploy. The Windows leg now also builds with AMD FSR 4, which the release never did (vulkan-dlss.yml, the manual DLSS link check, is unchanged).scripts/ci_changes.pygets arenderer=output next tocode=, from a newRENDERERlist of what that compile reads:gpu/, the host and game headers it includes,host/posix/,host/pgo_rt.c, the MinGW shims, the third-party parts its plan names, the logo and the renderer profile,builder/, the Rust pins,tools.lock, the CI image's tools, and the job's own files. It also runs on every push tomain. A base whoseci_changes.pyhas norenderer=yet (this PR's own run, since the script comes from the base) falls back tocode=, so the job runs here.cargo build -p longshot-builderover therustjob's dependency cache (read only). Therustjob uploads no builder artifact.dev tools install --only ...): linux-x64's llvm, sysroot and cpm; windows-x64's cpm plus llvm-mingw's Linux build.RX_RELEASE=1,RX_MARCH=x86-64-v3, as the release check had.main): the tools' downloads, and the compiled objects (--store, objects keyed by compiler, flags, source and headers) under a key of the renderer files' hash. Main writes an entry from an empty store when there's none for its tree, so each entry holds one tree's objects. A pull request restores the newest.build-linux.ymlandbuild-windows.yml. Everything that ships is unchanged. Theircheckedinput, andrelease.yml'sreleased-ascall that set it, only existed to skip those checks on a re-tagged commit, so they are removed too. One side effect: a tag no longer stops early when the commit's earlier release isn't signed or complete. That check guarded the skip, which no longer exists.Read first: the
rendererjob in.forgejo/workflows/ci.yml, thenscripts/ci_changes.py.Overlap: #2568 (open) also edits
build-linux.ymlandbuild-windows.yml(step names, waits, uploads). This PR is based onmainand only removes the trailing build-check steps and thecheckedinput, so whichever merges second has a small rebase.Testing
Tested: A workflow and CI-script change only, so a game run means nothing here. Locally I ran
actionlinton every workflow (it passes, ShellCheck included). This PR's own CI runs the new job: the PR touchesci.yml, sochangesmarks it as needed.tests/test_windows_on_linux.pyandtests/test_release_workflow.pyare updated for the removed steps, and a check of the new job andRENDERERis added. Those run in CI's game-free checks, not on my PC.Still to test:
longshot_vk.* (build check)steps (by hand, from the Actions tab).Measurements
Nothing to measure in the game: this changes CI only. The nightly loses the ~11 minutes the build checks took. This PR's run shows the new job's time on the PR runners.
Risks
RENDERERmisses a path the renderer reads, a PR touching only that path skips the check, and the next push tomaincatches it (the job always runs there).mainpushes; the object-store cache makes repeat runs incremental.rendererlegs, since a skipped job counts as passed. Branch protection is not changed here.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (Not run on this PC; CI's game-free checks run the samerun_all.py --strict. Ticked once they pass.)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e1RP1VgcWpgA7Kq6ec
1f3868b40ad80c19e7add80c19e7ad21086e6c6cWIP: ci: the renderer's build check runs on pull requests that touch it, not in every releaseto ci: the renderer's build check runs on pull requests that touch it, not in every release