scripts/bench.ps1: build with --locked, as the repo requires #621

Open
qnjk wants to merge 1 commit from qnjk/Darner:agent/bench-locked-20261205-2150 into Main
Contributor

Contributor role (optional)

  • Fluxer ID: none

What it changes

scripts/bench.ps1 builds the diagnostics binary without --locked:

  • line 64 (the header's "Needs the diagnostics build" command),
  • line 856 (the -Build path),
  • line 861 (the error text that repeats the same command).

AGENTS.md says --locked everywhere and warns that a Cargo.lock change invalidates every user's shader cache; scripts/build-darner.ps1:477-479 already passes --locked for all three profiles. This makes the benchmark's build match. Nothing else changed — the CRLF endings and the 1329 lines are untouched.

How it was tested

  • Tested revision: c8258f95569c10fe75b5bfb785d3865b5deeefd9 plus this patch.
  • Commands and results:
    • git grep -n 'cargo build' -- scripts *.cmd → these two lines were the only cargo build invocations in scripts without --locked; scripts/build-darner.ps1:477-479 and the launchers all pass it.
    • PowerShell AST parse of the edited file (Parser::ParseFile): 0 errors.
    • Asset policy (xtask/src/policy.rs rules reimplemented for this host): 1 file staged, no violations. cargo xtask policy --staged itself was not run here.
    • git diff --stat: scripts/bench.ps1 | 6 +++---, 3 insertions, 3 deletions, line endings preserved (1329 CRLF, 1329 LF both before and after).
  • Changes a default: no.
  • A/B result: not applicable; no behaviour change.
  • Gates run: none — the diff only edits command text in a PowerShell script. cargo clippy/cargo test were not run.
  • Gameplay: not tested; this does not touch the runtime.
  • Shader wave sizes tested: not applicable.
  • Hardware dependence: none.
  • Coverage gaps: the benchmark itself was not run (it needs the diagnostics build and a rig); only the script text and its parse were checked.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only).
    • Not a game change: it only makes the benchmark build with the repo's --locked convention. Not run end to end here.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: #550 ([pr-fix][frame-generation] Report FSR activation in benchmark summaries) also edits scripts/bench.ps1, but for FSR reporting; it does not touch the build command, so this is not a duplicate and does not depend on it.
  • Replaces or overlaps: none found
<!-- Prepared by an automated assistant working from qnjk's account; every command below was run against c8258f9. --> ## Contributor role (optional) - Fluxer ID: none ## What it changes `scripts/bench.ps1` builds the diagnostics binary without `--locked`: - line 64 (the header's "Needs the diagnostics build" command), - line 856 (the `-Build` path), - line 861 (the error text that repeats the same command). `AGENTS.md` says `--locked` everywhere and warns that a `Cargo.lock` change invalidates every user's shader cache; `scripts/build-darner.ps1:477-479` already passes `--locked` for all three profiles. This makes the benchmark's build match. Nothing else changed — the CRLF endings and the 1329 lines are untouched. ## How it was tested - Tested revision: `c8258f95569c10fe75b5bfb785d3865b5deeefd9` plus this patch. - Commands and results: - `git grep -n 'cargo build' -- scripts *.cmd` → these two lines were the only `cargo build` invocations in scripts without `--locked`; `scripts/build-darner.ps1:477-479` and the launchers all pass it. - PowerShell AST parse of the edited file (`Parser::ParseFile`): **0 errors**. - Asset policy (`xtask/src/policy.rs` rules reimplemented for this host): 1 file staged, no violations. `cargo xtask policy --staged` itself was not run here. - `git diff --stat`: `scripts/bench.ps1 | 6 +++---`, 3 insertions, 3 deletions, line endings preserved (1329 CRLF, 1329 LF both before and after). - Changes a default: no. - A/B result: not applicable; no behaviour change. - Gates run: none — the diff only edits command text in a PowerShell script. `cargo clippy`/`cargo test` were not run. - Gameplay: not tested; this does not touch the runtime. - Shader wave sizes tested: not applicable. - Hardware dependence: none. - Coverage gaps: the benchmark itself was not run (it needs the diagnostics build and a rig); only the script text and its parse were checked. ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). - Not a game change: it only makes the benchmark build with the repo's `--locked` convention. Not run end to end here. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: #550 (`[pr-fix][frame-generation] Report FSR activation in benchmark summaries`) also edits `scripts/bench.ps1`, but for FSR reporting; it does not touch the build command, so this is not a duplicate and does not depend on it. - Replaces or overlaps: none found
Without it a benchmark build may rewrite Cargo.lock, and AGENTS.md says
--locked everywhere: scripts/build-darner.ps1 already passes it. The two
commands and the error message that repeats one now match. No other change.
TrustNo1 changed title from [pr-fix] scripts/bench.ps1: build with --locked, as the repo requires to scripts/bench.ps1: build with --locked, as the repo requires 2026-12-06 03:26:02 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'agent/bench-locked-20261205-2150:qnjk-agent/bench-locked-20261205-2150'
git switch 'qnjk-agent/bench-locked-20261205-2150'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'qnjk-agent/bench-locked-20261205-2150'
git switch 'qnjk-agent/bench-locked-20261205-2150'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'qnjk-agent/bench-locked-20261205-2150'
git switch 'qnjk-agent/bench-locked-20261205-2150'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'qnjk-agent/bench-locked-20261205-2150'
git switch 'Main'
git merge --squash 'qnjk-agent/bench-locked-20261205-2150'
git switch 'Main'
git merge --ff-only 'qnjk-agent/bench-locked-20261205-2150'
git switch 'Main'
git merge 'qnjk-agent/bench-locked-20261205-2150'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!621
No description provided.