Add CI smoke tests and optional Klipper host sandbox - #438
Open
danoli3 wants to merge 1 commit into
Open
Conversation
Catch installer and generate_conf.py regressions in GitHub Actions without printer hardware. Also add optional Ubuntu/Pi provision scripts for Fluidd, Moonraker, HTTPS, and generated model configs so host-side work can be tested in a VM.
Author
Author
Author
|
Action is working on my fork so just a contributor restriction on this PR currently for green tick |
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.



Summary
Adds host-side tests that do not need a printer, plus optional scripts to stand up a Klipper/Moonraker/Fluidd sandbox on Ubuntu or a Pi 4/5.
This is ready as a dev-tools PR. It does not change
printer-confs/motion configs or MCU firmware.Why
generate_conf.pyand the installer scripts are easy to break without noticing. A VM can exercise Fluidd/Moonraker/config generation, but not homing, mesh, PID, or STM32 flashes.What landed
smoke.ymlrunstests/smoke.shon push/PRbash -n+shellcheck --severity=erroron all shell scriptsgenerate_conf.pycoverage for N4 0.8/1.2, N4 Pro 0.8/1.2, Plus, and Max (including Max mesh/probe/current bounds)tests/setup.shprovisions Klipper, Moonraker, Fluidd, KAMP, generated configstests/enable-https.shterminates TLS at nginx with a self-signed cert (Let's Encrypt cannot sign Parallels10.211.55.x)tests/sandbox-moonraker.confomits Mainsail, Mobileraker, and display_connector so a sandbox does not warn about missing printer-image pathstests/README.mddocuments Parallels/Ubuntu Server vs Pi, and what still requires the MaxTest plan
bash tests/smoke.shon macOS (GNU getopt/shellcheck skipped, unittests passed)setup.shon a Parallels Ubuntu 24.04 ARM64 VM (Fluidd + Moonraker up; Linux MCU GPIO not present, as documented)enable-https.sh→https://10.211.55.11/returns 200Notes for reviewers
setup.shrefuses to run on a real OpenNept4une image unless--forceis passed.tests/sandbox-moonraker.confonto a printer; the imagemoonraker.confstill owns display/Mobileraker.GPIO chip device not found). That is expected.