Skip to content

chore(orch): move firecracker version feature flag#2030

Draft
jakubno wants to merge 1 commit intomainfrom
chore/move-firecracker-feature-flags-to-orchestrator
Draft

chore(orch): move firecracker version feature flag#2030
jakubno wants to merge 1 commit intomainfrom
chore/move-firecracker-feature-flags-to-orchestrator

Conversation

@jakubno
Copy link
Member

@jakubno jakubno commented Mar 1, 2026

This allows to change the firecracker version only for some commits and to do rolling update based on orchestrator nodes


Note

Medium Risk
Changes how the Firecracker binary version is selected during sandbox create/resume, which can impact runtime compatibility if the feature-flag mapping or version parsing is wrong. Risk is mitigated by falling back to the build-provided version when resolution fails.

Overview
This PR centralizes Firecracker version resolution behind feature_flags.ResolveFirecrackerVersion and wires it into both API sandbox creation and orchestrator-side sandbox resume, enabling LaunchDarkly overrides based on a new orchestrator context that includes the node ID and source commit for rolling updates.

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

network.Egress.DeniedCidrs = []string{sandbox_network.AllInternetTrafficCIDR}
}

resolvedFCVersion := featureflags.ResolveFirecrackerVersion(ctx, s.featureFlags, req.GetSandbox().GetFirecrackerVersion())
Copy link

Choose a reason for hiding this comment

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

resolvedFCVersion may differ from req.GetSandbox().GetFirecrackerVersion() when node-specific overrides are active. However, SandboxFirecrackerVersionAttribute in the LD multi-context was already set to the incoming (API-resolved) version at line 74, before this resolution. Any other feature flags in this request that target on the sandbox's firecracker-version attribute will evaluate against the pre-orchestrator-resolved value rather than the version that will actually be used.

Copy link

@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 1 potential issue.

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

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