Repository navigation
fix(ci): make the engine and desktop-shell checks pass - #3
Merged
Merged
Conversation
The Kim et al. blackbody spline keeps its coefficients as published, with clippy's excessive_precision allowed on planckian_xy only; each literal rounds to the same f32, so no colour changes. Run: cargo clippy over the workspace with -D warnings passes this crate; render sample is byte-identical to the engine before the change.
Bsdf::sample and Bsdf::prepare keep their negated comparisons, which are also true for NaN and so reject broken samples; clippy's neg_cmp_op_on_partial_ord is allowed on those two functions instead of the rewrite it suggests, which would let NaN through. fill_diel names its worker groups with a DielGroup alias. Run: clippy -D warnings passes the crate; render sample byte-identical before and after.
compute_normals walks the index list with as_chunks::<3>() instead of chunks_exact(3), as the clippy of the pinned 1.99.1 asks; the same triangles in the same order. Run: clippy -D warnings passes the crate.
The clean-up pass, the glTF position and UV readers and the PNG palette and tRNS readers use as_chunks::<N>() instead of chunks_exact(N), as the clippy of the pinned 1.99.1 asks; same values in the same order. Run: clippy -D warnings passes the workspace; the sample written as GLB, imported and rendered is byte-identical to the engine before the change, and info agrees.
Records why each lint was fixed or allowed (the NaN checks above all) and what ran: engine check clean, 118 s from an empty target folder on 2 cores, renders byte-identical before and after, bench still 0.00001 from the CPU on both software GPU adapters.
KEY_HEADER is used only by the Windows-only ask_to_close, so it now carries the same cfg; on Linux and macOS it was dead code, an error under clippy -D warnings. Run: cargo clippy --locked -- -D warnings on Linux passes. Not run: a Windows build.
ExitRequested moves its if into a match guard, as clippy's collapsible_match asks; when the page does not want to quit the event falls to the existing empty arm, so behaviour is unchanged and the page is asked once. Run: cargo check and clippy -D warnings with --locked pass on Linux. Not run: the app itself.
The CI desktop-shell job runs cargo check --locked, which failed with no Cargo.lock; this is the lockfile written by the first cargo check of the shell. Run: cargo check --locked and cargo clippy --locked -- -D warnings pass on Ubuntu 24.04 with the job's packages.
Records the lockfile, the two lint fixes and the first compile of the desktop shell: check 1 min 58 s from empty, clippy clean, nothing bundled or opened.
Adds workflow_dispatch beside the family's push and pull_request triggers, as FormSurface has it, so a run can be started with gh workflow run when GitHub shows a pull request with no checks. Run: the YAML parses. Not run: on GitHub.
Records the manual trigger, the pull request that showed no checks, and the two real causes of the red main (engine clippy and the missing desktop-shell lockfile), with the five jobs run by hand.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(ci): make the engine and desktop-shell checks pass
Summary
-D warnings, and three float literals in fsh-core stopped it. Once those pass, the same clippy finds five more errors in fsh-materials, fsh-scene and fsh-io; all eight are fixed here.excessive_precisionon that one function; each literal rounds to the same f32, so no colour changes.!(pdf > 0.0), which are also true for NaN and are how a broken sample is rejected; the rewrite clippy suggests would let NaN through, so the lint is allowed on those two functions. A type alias names the worker groups.as_chunks::<N>()instead ofchunks_exact(N)(a lint new in the pinned 1.99 toolchain).src-tauri/Cargo.lockwas never committed and the job runscargo check --locked. The lockfile is committed now, and two clippy errors behind it are fixed: the window key header constant is compiled only on Windows, where its one user is, and the quit request moves into a match guard with unchanged behaviour.workflow_dispatch, so a run can be started by hand (gh workflow run ci.yml -R nodemode-dev/formshot --ref <branch>) if GitHub ever shows a pull request with no checks again. The family's push and pull_request triggers are unchanged.Commits
The short hashes change when the commits are signed.
Version
No version change: these are fixes to checks and lint with no change a person using the app can see, so
formai-buildhas nothing new to offer.Checks
Every step of the five CI jobs, run by hand on Ubuntu 24.04 from a fresh clone of this branch, as the workflow writes them:
npm audit --audit-level=low(0 vulnerabilities), typecheck, build: pass.cargo check --workspace --all-targetsandcargo clippy --workspace --all-targets -- -D warningson Rust 1.99.1: pass (118 s from an empty build folder on 2 cores).pip install -r requirements.txt, compileall,import app.main: pass.cargo check --locked,cargo clippy --locked -- -D warnings: pass. This was the desktop shell's first compile anywhere.bash -n,py_compile, the em dash and emoji scan: pass.No behaviour changed: the engine built from these commits and the one built before them render the sample scene to byte-identical PNGs (1 and 2 threads), import and render a GLB byte-identically, and
benchstill shows 0.00001 mean absolute difference between the GPU (software Vulkan and OpenGL) and the CPU picture.Not run: the workflow on GitHub itself, a Windows build (the Windows-only code is compiled out on Linux),
tauri build, macOS.Merging
Merge with a merge commit so each commit and its signature stays. Do not squash.