Skip to content

feat: set Firecracker default memory to 4 GB - #938

Merged
cdalar merged 2 commits into
mainfrom
worktree-fix-fc-defaults
Jun 27, 2026
Merged

cdalar merged 2 commits into
mainfrom
worktree-fix-fc-defaults

Conversation

@cdalar

@cdalar cdalar commented Jun 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Raises the Firecracker --memory flag default from 512 MiB to 4096 MiB (4 GB)
  • vCPU default was already 1; no change needed
  • Updated in all four places that carry the value: the cobra flag, GetConfig() fallback, the shipped onctl.yaml init template, and tests

Test plan

  • go test ./internal/providerfc/... passes (TestGetConfig_Defaults now asserts 4096)
  • go test ./cmd/... -run TestCreateFlagsBindToViper passes (flag default updated to 4096)
  • onctl create --provider fc picks up 4 GB without needing an explicit --memory flag

Default vcpu was already 1; raise memSizeMib default from 512 to 4096
in the flag, GetConfig fallback, and the shipped onctl.yaml template.

@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: 142420e7e8

ℹ️ 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 internal/files/init/onctl.yaml Resolved
@codecov

codecov Bot commented Jun 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 23.96%. Comparing base (57a69e3) to head (6d0b46d).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #938      +/-   ##
==========================================
- Coverage   24.03%   23.96%   -0.07%     
==========================================
  Files          44       44              
  Lines        4402     4414      +12     
==========================================
  Hits         1058     1058              
- Misses       3213     3225      +12     
  Partials      131      131              

☔ 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.

The 4096 MiB guest default introduced in 142420e exceeds the RAM of the
n1-standard-1 GCP host (3.75 GB) that README.md documents creating for
the no-bare-metal Firecracker flow, leaving no room for host OS/Firecracker
overhead. 2048 MiB fits comfortably while still improving on the original
512 MiB default. Flagged by Codex review on PR #938.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CEBC7inDoMfnhtjdG1M2Uy
@cdalar
cdalar merged commit ac64fb6 into main Jun 27, 2026
17 checks passed
@cdalar
cdalar deleted the worktree-fix-fc-defaults branch August 19, 2026 13:54
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

⌂ 换网址