Skip to content

feat(scadm): dynamic OpenSCAD version resolution#311

Draft
Copilot wants to merge 4 commits intocopilot/vscode-mndmjeww-pyvzfrom
copilot/dynamic-openscad-version-resolution
Draft

feat(scadm): dynamic OpenSCAD version resolution#311
Copilot wants to merge 4 commits intocopilot/vscode-mndmjeww-pyvzfrom
copilot/dynamic-openscad-version-resolution

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

📦 What

Replace hardcoded nightly version constants with dynamic "latest" resolution. Unify the two separate Windows/Linux nightly constants (identical since ~2026.01.03) into a single config-driven approach.

  • New resolver.py module: scrapes OpenSCAD snapshots page (nightly) or GitHub releases API (stable), with local caching in bin/openscad/.resolved-version
  • New openscad config section in scadm.json with type (nightly/stable) and version (latest/pinned)
  • New --info flag on scadm install to show configured, resolved, and installed versions
  • Removed --stable CLI flag (breaking) — type now comes from config
  • Removed OPENSCAD_NIGHTLY_VERSION_WINDOWS, OPENSCAD_NIGHTLY_VERSION_LINUX, OPENSCAD_STABLE_VERSION from constants.py
  • Updated Renovate: replaced 3 constants.py custom managers with 1 scadm.json version manager
  • 26 new tests (18 resolver + 8 installer config)

💡 Why

Renovate was creating separate PRs for Windows and Linux nightly versions that have been identical since 2026.01. The constants-in-code approach required a code change + release for every version bump. With "version": "latest", scadm resolves dynamically — no code changes needed. Pinned versions still work for reproducibility and Renovate tracking.

🔧 How

Backward compatible — missing openscad section defaults to {"type": "nightly", "version": "latest"}.

{
  "openscad": {
    "type": "nightly",
    "version": "latest"
  },
  "dependencies": [...]
}

Pin a specific version to opt out of dynamic resolution:

{
  "openscad": {
    "type": "nightly",
    "version": "2026.03.28"
  }
}
scadm install           # resolves + installs latest nightly
scadm install --force   # bypasses resolved-version cache
scadm install --info    # shows configured/resolved/installed versions

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • files.openscad.org
    • Triggering command: .venv/bin/scadm .venv/bin/scadm install (dns block)
    • Triggering command: /home/REDACTED/.local/bin/scadm scadm install --info (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI and others added 3 commits March 30, 2026 20:31
- Add resolver.py module for scraping snapshots page and GitHub API
- Update installer.py to read openscad config from scadm.json
- Replace --stable CLI flag with config-driven approach
- Add --info flag for version info display
- Remove hardcoded version constants from constants.py
- Add openscad config section to scadm.json
- Add tests for resolver and installer config

Agent-Logs-Url: https://github.com/kellerlabs/homeracker/sessions/5be46701-041e-42c5-9701-71c2bdbe9002

Co-authored-by: kellervater <33324812+kellervater@users.noreply.github.com>
- Replace constants.py custom managers with scadm.json openscad version manager
- Update test-renovate-local.sh assertions
- Update README with new config schema and --info flag docs

Agent-Logs-Url: https://github.com/kellerlabs/homeracker/sessions/5be46701-041e-42c5-9701-71c2bdbe9002

Co-authored-by: kellervater <33324812+kellervater@users.noreply.github.com>
- Use str.removeprefix() instead of manual slicing
- Make Renovate regex order-independent for JSON fields

Agent-Logs-Url: https://github.com/kellerlabs/homeracker/sessions/5be46701-041e-42c5-9701-71c2bdbe9002

Co-authored-by: kellervater <33324812+kellervater@users.noreply.github.com>
Copilot AI changed the title [WIP] Replace hardcoded OpenSCAD nightly version constants with dynamic resolution feat(scadm): dynamic OpenSCAD version resolution Mar 30, 2026
Copilot AI requested a review from kellervater March 30, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants