Repository navigation
Description
These are working rules that are true today but not written down anywhere in the repo. Each item names where it should go.
docs/development/contributing.md
- Branch protection on main requires branches to be up to date before merging (strict), and "CI Check" is the only required check. Merging one PR puts every other open PR behind, so each one has to be brought up to date (the Renovate PR's rebase checkbox for bot PRs,
git rebase origin/mainand a force-push for your own) and pass CI again before it can merge. Merge one green PR at a time. - A
.venvthat predates the latest lock can carry an older ruff.uv run ruff format --checkthen passes locally while CI, which installs from the lock, fails (a ruff minor bump reflows Python code blocks in the docs). Runuv sync --all-extrasafter pulling before trusting a local format check. Syncing with only some extras removes the tools of the others, becauseuv syncis exact. - Docs for one specific machine (its firmware config, wiring, build notes) belong in that machine's own repo, not here. FiberPath stays machine-agnostic software. What it documents on the hardware side is a machine-agnostic compatibility spec (what a machine must provide to be driven by FiberPath, seeded by
MachineProfile) and generic setup guidance such as configuring Marlin for your own machine.
docs/development/release-process.md
- Under Pre-Release, run
npm ciinfiberpath_guibefore the GUI checks. After a merged dependency bump,npm installcan leavenode_modulesout of step withpackage-lock.json, and the local build then tests the wrong tree. - Under Release Workflow: if the macOS Build Installers job fails inside Tauri's
bundle_dmg.sh(the Finder/AppleScript DMG layout step), re-run that job alone. PyPI publish is a separate job and is not affected. - Under Post-Release Verification, add a check of the published artifact itself: install the released wheel into a throwaway
uv venv, plan an example, andcmpthe G-code against the output of a local build of the same tag. Byte-identical output confirms the artifact, not just the upload.
Docs bug: fiberpath --version is not an option (No such option: --version, exit 2), but it appears in docs/getting-started.md:38, docs/troubleshooting.md:244, fiberpath_gui/README.md:63 and fiberpath_gui/docs/development.md:62,76,377,397. Either add a --version option to the CLI or change these to python -c "import importlib.metadata as m; print(m.version('fiberpath'))".
Workflow wording: the pyproject version check in .github/workflows/release.yml prints "Warning: Input version ... doesn't match pyproject.toml" and then exits 1. It is a hard failure; the message should say "Error:".
fiberpath_gui/docs/development.md
- Under Run Frontend Only: a long-running
npm run devcan desync the module-level runes singletons (projectSessionand the othersrc/state/*.svelte.tsstores) after many HMR updates. Components then hold a different instance from their dependents, so for example adding a layer updates the layer list but not a sibling$derivedreading the same store. This is a dev-server artifact. Before suspecting the code, stop Vite, restartnpm run devand do a full page reload; restart before each visual QA pass as well. - To preview the light theme in the browser, set
localStorage['fiberpath-theme'] = 'light'and reload. With unsaved changes, the dirty guard'sbeforeunloadhandler blocks the reload; open a fresh tab or setdata-theme="light"on<html>directly. - To screenshot the native window under X11, use
scrotand crop to the window geometry (xdotool search --pid <pid>for the 1280x800 window, skipping the small helper window).import -windowsegfaults on the GL-composited webview.
Activity