#41 - Every pull request runs the app's checks, the Python comparison and the firmware build #44
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RollNote/rollscan!44
Loading…
Reference in a new issue
No description provided.
Delete branch "test/41-ci-workflows"
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?
Every pull request into
mainis now checked on Forgejo before it is merged. Nothing changes for someone using the scanner: this is about catching a broken build, a failing test or a detection that drifted from the Python before it reaches a release.Closes #41
How it works
app.yml, when the app's code, page, icons or Cargo files change:cargo fmt --check,cargo clippy --all-targets -D warningsandcargo teston Linux,node --check ui/app.js(the page's script is never run by the tests), and Clippy forx86_64-pc-windows-gnu, so thecfg(windows)code (console, settings and scans folders, hidden folders, gphoto2 without a window) is compiled too. The GNU target builds on Linux with MinGW; the installer's MSVC target still needs Windows.parity.yml, whensrc/detect.rs,src/centering.rs,src/image.rs,examples/parity.rs,reference/ortools/parity.pychange: runstools/parity.py, which fails when the Rust and the Python stop agreeing.firmware.yml, whenfirmware/changes:arduino-cli compile --fqbn arduino:avr:unowith the Stepper and Servo libraries..forgejo/actions/rustis shared by the two Rust workflows: it installs the web view's libraries, Rust 1.100.0 (pinned, so a new Rust release and its new lints can't fail an unrelated pull request), and restores the cargo cache keyed onCargo.lock.node:24-trixie) instead of relying on the runner's default image, becauselibwebkit2gtk-4.1-devcomes from Debian.cargo fmton two files, four Clippy warnings fixed (an unusedPREVIEW_SIDEremoved, an index loop turned intoarray::from_fn, a needless..Default::default()).src/image.rs: the reduced-size JPEG decode picks 1/2, 1/4 or 1/8 so both sides stay long enough, andload_shotscales to the analysis width, keeps the levels and never widens a picture.Tested
cargo test: 308 passed.cargo fmt --checkandcargo clippy --all-targets -- -D warningsclean on Rust 1.99.1.node:24-trixiecontainer with Rust 1.100.0: fmt, Clippy, 306 tests (before the two new ones),node --check, Windows Clippy, parity (SAME) and the firmware compile all passed.pnpm buildinsite/passes with the new CONTRIBUTING.md.Not tested
container:image and has a cache server foractions/cachewill show there; without a cache server the jobs still run, without the cache.packaging/windows/build.ps1): still made by hand on Windows.