Skip to content

Contributor and release docs: merge train, release recovery steps, GUI dev-server gotchas #381

Open

Description

@CameronBrooks11

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/main and a force-push for your own) and pass CI again before it can merge. Merge one green PR at a time.
  • A .venv that predates the latest lock can carry an older ruff. uv run ruff format --check then passes locally while CI, which installs from the lock, fails (a ruff minor bump reflows Python code blocks in the docs). Run uv sync --all-extras after pulling before trusting a local format check. Syncing with only some extras removes the tools of the others, because uv sync is 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 ci in fiberpath_gui before the GUI checks. After a merged dependency bump, npm install can leave node_modules out of step with package-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, and cmp the 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 dev can desync the module-level runes singletons (projectSession and the other src/state/*.svelte.ts stores) 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 $derived reading the same store. This is a dev-server artifact. Before suspecting the code, stop Vite, restart npm run dev and 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's beforeunload handler blocks the reload; open a fresh tab or set data-theme="light" on <html> directly.
  • To screenshot the native window under X11, use scrot and crop to the window geometry (xdotool search --pid <pid> for the 1280x800 window, skipping the small helper window). import -window segfaults on the GL-composited webview.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions