Skip to content

feat: tool@cycle make targets (make uninstall-node@24)#112

Merged
CybotTM merged 1 commit into
mainfrom
feat/make-cycle-targets
Jul 17, 2026
Merged

feat: tool@cycle make targets (make uninstall-node@24)#112
CybotTM merged 1 commit into
mainfrom
feat/make-cycle-targets

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 17, 2026

Copy link
Copy Markdown
Member

Summary

NODE_VERSION=24 make uninstall-node works but requires knowing each tool's env var name (NODE_VERSION vs RUBY_VERSION vs UV_PYTHON_SPEC). The audit output speaks in cycles (node@24, ruby@3.3) — the make targets now do too:

  • make uninstall-node@24, make uninstall-ruby@3.3, make upgrade-go@1.26, make install-python@3.13
  • install-%/upgrade-%/uninstall-% branch to a new scripts/cycle_action.sh when the stem contains @; it maps tool → version env var and execs the dedicated installer (node, ruby, go, python — the four multi-version runtimes with dedicated scripts)
  • unsupported tools (php@8.4) and malformed specs get clear errors
  • plain targets (make uninstall-ripgrep) unchanged (pinned by test)

Tests

  • tests/test_cycle_targets.py (10 tests): dispatcher env mapping for all four runtimes, unsupported-tool and malformed-spec errors, make -n integration for all three verbs, plain-target regression guard
  • Full suite: 708 passed, 1 skipped; shellcheck clean; smoke tests pass
  • E2E: make uninstall-ruby@3.1 → per-cycle path, clean "not found" no-op

make install-/upgrade-/uninstall-<tool>@<cycle> now dispatches through
scripts/cycle_action.sh, which maps the cycle to the dedicated
installer's version env var (NODE_VERSION, RUBY_VERSION, GO_VERSION,
UV_PYTHON_SPEC) — no more remembering per-tool env var names.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
Copilot AI review requested due to automatic review settings July 17, 2026 06:08
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.59%. Comparing base (4e581e8) to head (cde10f9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #112   +/-   ##
=======================================
  Coverage   72.59%   72.59%           
=======================================
  Files          22       22           
  Lines        3416     3416           
=======================================
  Hits         2480     2480           
  Misses        936      936           
Flag Coverage Δ
unittests 72.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CybotTM
CybotTM merged commit 213034c into main Jul 17, 2026
21 of 22 checks passed
@CybotTM
CybotTM deleted the feat/make-cycle-targets branch July 17, 2026 06:21
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