darner rig: the per-start list follows the switch, and an unreadable settings file is an error #610
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!610
Loading…
Reference in a new issue
No description provided.
Delete branch "qnjk/Darner:rig-report-truth"
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?
Contributor role (optional)
What it changes
The problem on main:
darner rig's report said two things that were not true (apps/darner/src/rig.rs):rig::per_start's picks, e.g.DARNER_PIPELINE_WORKERS) unconditionally, with the hint "DARNER_AUTO_SWITCHES=0turns them off" — backwards: the auto switches are off unlessDARNER_AUTO_SWITCHES=1, anddarner playdoes not set them at all in that state, so the report showed choices the launcher would not make.darner-settings.txt), every row was printed as "not set" — a claim about the machine, where the truth was "could not read the settings".This change splits the report into two helpers:
settings_linespropagates a settings-read error naming the file (asbase_oncealready does for the same file elsewhere), andper_start_linesprints the per-start picks only when the settings file hasDARNER_AUTO_SWITCHES=1, otherwise says they are off and how to turn them on — and keeps the "none for this PC" answer for the on-but-no-pick case. The backwards hint is gone with it.How it was tested
3102776(one commit onc8258f9).cargo test --locked -p darner— 210 passed, 1 ignored, plus the crate's 2 + 2 + 8 integration tests.rig::tests::per_start_is_off_unless_the_switch_is_oneandrig::tests::a_settings_file_that_cannot_be_read_is_an_error.DARNER_AUTO_SWITCHES=1printsDARNER_PIPELINE_WORKERS=4; a directory atdarner-settings.txtexits 1 withError: reading ….cargo clippy --locked -p darner --all-targets -- -D warningspasses.cargo clippy --workspace --all-targets --locked -- -D warnings: passes.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passes.cargo test --workspace --locked: not run to completion here; the pre-existingdarner-gputest deadlock (#224) anddarner-shaderwaterfall fixture failure (#227) make the whole-workspace run non-green on this machine.darner's suite is green.rigreport.Checklist
darner rigis an offline report, and the change cannot alter what a run does.main.docs/asset-policy.md(cargo xtask policy: 576 files ok).Checked for overlap
apps/darner/src/rig.rs(checked against the file list of all 189 open pull requests), and no open or closed issue mentions the rig report.[pr-fix] darner rig: the per-start list follows the switch, and an unreadable settings file is an errorto darner rig: the per-start list follows the switch, and an unreadable settings file is an errorView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.