Skip to content

feat(sites): add --tier to sites create - #196

Merged
jamie-at-bunny merged 6 commits into
mainfrom
feat/sites-storage-tier
Aug 30, 2026
Merged

feat(sites): add --tier to sites create#196
jamie-at-bunny merged 6 commits into
mainfrom
feat/sites-storage-tier

Conversation

@jamie-at-bunny

Copy link
Copy Markdown
Member

No description provided.

@bunnynet-devops

Copy link
Copy Markdown

@codex review

@changeset-bot

changeset-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 73f67a7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@bunny.net/cli Patch
@bunny.net/cli-linux-x64 Patch
@bunny.net/cli-linux-arm64 Patch
@bunny.net/cli-darwin-x64 Patch
@bunny.net/cli-darwin-arm64 Patch
@bunny.net/cli-windows-x64 Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@greptile-apps

greptile-apps Bot commented Aug 28, 2026

Copy link
Copy Markdown

Greptile Summary

The PR adds storage-tier selection to sites create and makes retries validate immutable tier and explicitly requested region choices.

  • Adds --tier hdd|ssd, including the SSD-only DE-region constraint.
  • Rejects resumed zones whose tier or explicitly requested region conflicts with the command.
  • Preserves flagless retries by applying the DE default only when creating a fresh zone.
  • Reports the resulting storage tier in command output and updates tests and user guidance.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
packages/cli/src/commands/sites/api.ts Creates storage zones with the requested tier and rejects incompatible tier or explicit-region choices when resuming.
packages/cli/src/commands/sites/create.ts Adds the tier option, preserves omitted-region semantics, and includes the resolved tier in output.
packages/cli/src/commands/sites/provision.ts Normalizes explicit regions while enforcing that SSD storage uses DE.
packages/cli/src/commands/sites/api.test.ts Covers tier mismatch, explicit-region mismatch, matching-tier resume, and flagless cross-region resume behavior.

Reviews (5): Last reviewed commit: "fix(sites): drop the --region parser def..." | Re-trigger Greptile

Comment thread packages/cli/src/commands/sites/api.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e4d034f98

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/cli/src/commands/sites/api.ts
Comment thread packages/cli/src/commands/sites/api.ts
Comment thread packages/cli/src/commands/sites/create.ts Outdated
@jamie-at-bunny
jamie-at-bunny merged commit 7e93515 into main Aug 30, 2026
6 checks passed
@jamie-at-bunny
jamie-at-bunny deleted the feat/sites-storage-tier branch August 30, 2026 10:22
@github-actions github-actions Bot mentioned this pull request Aug 30, 2026
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.

3 participants