Skip to content

Add envd version feature gate#2207

Merged
djeebus merged 15 commits into
mainfrom
add-envd-version-volume-feature-gate
Mar 24, 2026
Merged

Add envd version feature gate#2207
djeebus merged 15 commits into
mainfrom
add-envd-version-volume-feature-gate

Conversation

@djeebus
Copy link
Copy Markdown
Contributor

@djeebus djeebus commented Mar 23, 2026

Note

Medium Risk
Sandbox creation now enforces an envd minimum version for volume mounts, which can start rejecting requests for older or missing template build metadata. This touches request validation/error handling in a core API path and could impact existing templates until rebuilt.

Overview
Adds an envd-version feature gate for persistent volume mounts during sandbox creation: volume mounts are now rejected unless the template build reports an envd version >= 0.5.8, with clearer client-facing errors when unsupported or unset. Also centralizes the envd version constant into packages/envd/pkg and reuses it in integration seeding, plus minor tooling tweaks (adds make lint and removes the envd GoReleaser config).

Written by Cursor Bugbot for commit dbe8aec. This will update automatically on new commits. Configure here.

Comment thread packages/api/internal/handlers/sandbox_create.go Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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: 57cff41976

ℹ️ 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/api/internal/handlers/sandbox_create.go Outdated
Comment thread packages/api/internal/handlers/sandbox_create.go Outdated
Comment thread packages/api/internal/handlers/sandbox_create.go
Comment thread packages/api/internal/handlers/sandbox_create.go Outdated
Comment thread packages/api/internal/handlers/sandbox_create.go
Comment thread packages/api/internal/handlers/sandbox_create_test.go Outdated
Comment thread packages/envd/pkg/version.go
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread packages/api/internal/handlers/sandbox_create.go
Comment thread packages/api/internal/handlers/sandbox_create.go Outdated
Copy link
Copy Markdown
Contributor

@matthewlouisbrockman matthewlouisbrockman left a comment

Choose a reason for hiding this comment

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

works for me

Comment thread packages/api/internal/handlers/sandbox_create.go Outdated
@sitole sitole requested review from sitole and removed request for sitole March 24, 2026 08:32
return nil, fmt.Errorf("%w: %w", ErrVolumesNotSupported, err)
// does your envd version support volumes?
if envdVersion := sharedUtils.DerefOrDefault(env.EnvdVersion, ""); envdVersion == "" {
logger.L().Warn(ctx, "envd version is unset")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

how can this be unset?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Literally no idea. the fields could be empty though, so an error is worth displaying in that case. I've been bit by fields that look like they should be set but weren't here though. Even in this PR, I was using env.EnvdVersion which ended up being never set.

@djeebus djeebus merged commit 47056ad into main Mar 24, 2026
35 checks passed
@djeebus djeebus deleted the add-envd-version-volume-feature-gate branch March 24, 2026 17:00
ValentaTomas pushed a commit that referenced this pull request May 4, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

4 participants