feat: a tester can turn on NVIDIA DLSS, AMD FSR 4 and Intel XeSS, and a plan can build with one (schema 11) #144

Merged
HumanBean merged 1 commit from HumanBean/Beanstalk:feat/upscaler-builds into main 2026-11-23 20:18:21 +00:00
Owner

Summary

The farm never built Longshot with a vendor upscaler SDK, so PRs about DLSS or FSR 4 came back "can't be tested as asked" (Longshot #2400, #2369). This adds what Longshot's Launcher has: a tester turns an upscaler on, accepting its vendor's license themselves, and plans can then build with it on their PC.

  • Tester app. Settings has an "Upscalers" section with one switch for each upscaler the PC can run:

    • NVIDIA DLSS: an NVIDIA RTX card, on Linux or Windows.
    • AMD FSR 4: Windows with a Radeon RX 9000. AMD's runtime is Windows-only.
    • Intel XeSS: Windows.

    Turning one on shows the vendor's license, linked at the commit Longshot's scripts/fetch.py pins. Only "Accept and turn on" saves it. Headless agents use beanstalk-agent upscalers on <name> --accept-license and upscalers off <name>. A PC with one on carries its tag: dlss, fsr4 or xess.

  • Plans, schema 11. [build] upscaler = "dlss" | "fsr4" | "xess" builds main and the PR, every variant, with that SDK. It adds no extra build. Every target must list the upscaler's tag. Such a plan goes only to agents of plan schema 11, so older agents never build it without the SDK.

  • Builds.

    • The agent fetches the SDK with main's scripts/fetch.py, never the PR's, outside the sandbox, into <data>/sdk/. It runs only for a job that asks for it.
    • The builds get the SDK folder read-only with LONGSHOT_NGX_SDK (DLSS), LONGSHOT_FSR=1 + LONGSHOT_FFX_SDK (FSR 4) or LONGSHOT_XESS_SDK (XeSS).
    • A base built with an SDK lives apart from bases/main.
    • FSR 4 and XeSS need Longshot #2402, which makes the packs tool pass these on. Until main has it, such a job reports an error saying so. DLSS works already.
  • Refusals. A ticket for an upscaler this PC hasn't turned on, or can't run, is refused before anything starts.

  • Planner. It knows the upscaler option, which hardware each needs, and that frame generation also needs a window scenario, which only Windows testers can run.

Read first: agent/Core/Upscalers.cs, plan.py's _build and the target rule in check_plan (mirrored in Plan.cs), and Workspace.PrefetchUpscalerAsync and BuildEnv.

Screenshots

None yet. The app's new section and dialog compile but haven't been run: Beanstalk isn't run on this PC. They'll come from a tester's build of the next nightly.

Tests

On Unraid:

  • Agent core: 2534 checks passed (--strict). This includes the new upscalers group and the fixture parity with plan.py (6 new fixtures).
  • Coordinator: 636 passed, 1 skipped (test_build_upscaler and its refusals).

Not yet run on real hardware: a DLSS build on an NVIDIA tester, and FSR 4 or XeSS once #2402 is in.

🤖 Generated with Claude Code

## Summary The farm never built Longshot with a vendor upscaler SDK, so PRs about DLSS or FSR 4 came back "can't be tested as asked" (Longshot #2400, #2369). This adds what Longshot's Launcher has: a tester turns an upscaler on, accepting its vendor's license themselves, and plans can then build with it on their PC. - **Tester app.** Settings has an "Upscalers" section with one switch for each upscaler the PC can run: - NVIDIA DLSS: an NVIDIA RTX card, on Linux or Windows. - AMD FSR 4: Windows with a Radeon RX 9000. AMD's runtime is Windows-only. - Intel XeSS: Windows. Turning one on shows the vendor's license, linked at the commit Longshot's `scripts/fetch.py` pins. Only "Accept and turn on" saves it. Headless agents use `beanstalk-agent upscalers on <name> --accept-license` and `upscalers off <name>`. A PC with one on carries its tag: `dlss`, `fsr4` or `xess`. - **Plans, schema 11.** `[build] upscaler = "dlss" | "fsr4" | "xess"` builds main and the PR, every variant, with that SDK. It adds no extra build. Every target must list the upscaler's tag. Such a plan goes only to agents of plan schema 11, so older agents never build it without the SDK. - **Builds.** - The agent fetches the SDK with main's `scripts/fetch.py`, never the PR's, outside the sandbox, into `<data>/sdk/`. It runs only for a job that asks for it. - The builds get the SDK folder read-only with `LONGSHOT_NGX_SDK` (DLSS), `LONGSHOT_FSR=1` + `LONGSHOT_FFX_SDK` (FSR 4) or `LONGSHOT_XESS_SDK` (XeSS). - A base built with an SDK lives apart from `bases/main`. - FSR 4 and XeSS need Longshot #2402, which makes the packs tool pass these on. Until main has it, such a job reports an error saying so. DLSS works already. - **Refusals.** A ticket for an upscaler this PC hasn't turned on, or can't run, is refused before anything starts. - **Planner.** It knows the upscaler option, which hardware each needs, and that frame generation also needs a window scenario, which only Windows testers can run. Read first: `agent/Core/Upscalers.cs`, `plan.py`'s `_build` and the target rule in `check_plan` (mirrored in `Plan.cs`), and `Workspace.PrefetchUpscalerAsync` and `BuildEnv`. ## Screenshots None yet. The app's new section and dialog compile but haven't been run: Beanstalk isn't run on this PC. They'll come from a tester's build of the next nightly. ## Tests On Unraid: - Agent core: 2534 checks passed (`--strict`). This includes the new `upscalers` group and the fixture parity with `plan.py` (6 new fixtures). - Coordinator: 636 passed, 1 skipped (`test_build_upscaler` and its refusals). Not yet run on real hardware: a DLSS build on an NVIDIA tester, and FSR 4 or XeSS once #2402 is in. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: a tester can turn on NVIDIA DLSS, AMD FSR 4 and Intel XeSS, and a plan can build with one (schema 11)
Some checks failed
CI / Conventional Commit title (pull_request) Successful in 16s
CI / Workflow lint (actionlint) (pull_request) Successful in 17s
CI / Agent build and checks (pull_request) Successful in 48s
CI / Coordinator image (pull_request) Successful in 1m1s
CI / Coordinator tests (pull_request) Failing after 1m32s
6242ba4788
As Longshot's Launcher does: the app offers each upscaler the PC can run (DLSS on an NVIDIA RTX
card, FSR 4 on Windows with an RX 9000, XeSS on Windows), shows the vendor's license, and turns it on
only once the tester accepts. The PC then carries the dlss, fsr4 or xess tag.

A plan's [build] upscaler = "dlss" | "fsr4" | "xess" (schema 11) builds main and the PR, every
variant, with that vendor's SDK, on targets that all list its tag. The agent fetches it with main's
scripts/fetch.py outside the sandbox, keeps it in its data folder, and gives the builds
LONGSHOT_NGX_SDK, LONGSHOT_FSR and LONGSHOT_FFX_SDK, or LONGSHOT_XESS_SDK, read-only; FSR 4 and
XeSS need Longshot #2402's packs pass-through. A base built with one is kept apart from the plain one.
The planner learns when to ask for one.

Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean changed title from WIP: feat: a tester can turn on NVIDIA DLSS, AMD FSR 4 and Intel XeSS, and a plan can build with one (schema 11) to feat: a tester can turn on NVIDIA DLSS, AMD FSR 4 and Intel XeSS, and a plan can build with one (schema 11) 2026-11-23 20:18:15 +00:00
HumanBean deleted branch feat/upscaler-builds 2026-11-23 20:18:21 +00:00
Member

Possibly related, for context:

  • PR #143 WIP: feat(agent): build Longshot commits of both builders, make_game.py's and longshot-builder's (Longshot #2286) — Overlapping agent build and workspace pipeline changes
Possibly related, for context: - PR #143 WIP: feat(agent): build Longshot commits of both builders, make_game.py's and longshot-builder's (Longshot #2286) — Overlapping agent build and workspace pipeline changes
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Beanstalk!144
No description provided.