Skip to content

feat(cli): add upgrade command for feature versions#290

Merged
skevetter merged 2 commits into
mainfrom
5940-sr-mgr-upgrade-cmd
May 14, 2026
Merged

feat(cli): add upgrade command for feature versions#290
skevetter merged 2 commits into
mainfrom
5940-sr-mgr-upgrade-cmd

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new upgrade command that updates devcontainer feature version references in devcontainer.json to their latest available versions
  • Reuses existing outdated command infrastructure (version checking, OCI tag listing, semver parsing) for consistency
  • Supports --dry-run flag to preview upgrades without modifying files, and optional feature targeting (e.g., devsy upgrade ghcr.io/devcontainers/features/go)
  • Uses text replacement on the raw file to preserve JSONC comments and formatting

…rades

Implements a new `upgrade` command that checks for newer versions of
devcontainer features and updates version references in devcontainer.json.
Supports --dry-run flag for previewing changes and targeting specific
features by name. Uses text replacement to preserve comments and formatting.
@netlify

netlify Bot commented May 14, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit dab9071
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a0625212e63c000088b1fc3

@coderabbitai

coderabbitai Bot commented May 14, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 55 minutes and 38 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e355aa3c-bbf3-4cc2-8604-9d550b70caf4

📥 Commits

Reviewing files that changed from the base of the PR and between 2992939 and dab9071.

📒 Files selected for processing (5)
  • cmd/root.go
  • cmd/upgrade.go
  • cmd/upgrade_test.go
  • e2e/e2e_suite_test.go
  • e2e/tests/upgrade/upgrade.go

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Adds e2e test suite for the upgrade command with five scenarios:
basic upgrade, dry-run preview, targeted feature upgrade, already
up-to-date handling, and JSONC comment preservation. Uses in-process
OCI registry following the outdated e2e test pattern.
@github-actions github-actions Bot added size/xl and removed size/l labels May 14, 2026
@skevetter
skevetter marked this pull request as ready for review May 14, 2026 21:15
@skevetter
skevetter merged commit 4e1f879 into main May 14, 2026
57 checks passed
@skevetter
skevetter deleted the 5940-sr-mgr-upgrade-cmd branch May 14, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant