Skip to content

The hotfix claim defaults to 10Gi, from one constant - #237

Merged
gilesknap merged 1 commit into
mainfrom
claim/default-10gi
Aug 24, 2026
Merged

gilesknap merged 1 commit into
mainfrom
claim/default-10gi

Conversation

@gilesknap

@gilesknap gilesknap commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Phase 1 of .claude/plans/the-claim-holds-the-seat.md. Independent of the rest
of the plan, no cluster needed, so it goes first and gets out of the way.

What changed

2Gi was sized for "a python-copier-template checkout plus a venv with room to
grow". Real targets are not all that small, and by the end of this plan the claim
also holds a uv cache and the seat's home. The default is now 10Gi.

Six live copies of the number, nothing holding them together:

copy now
hotfix.values_snippet(size=...) derives from CLAIM_DEFAULT_SIZE
hotfix values --size derives from CLAIM_DEFAULT_SIZE
Charts/podbench-hotfix-claim/values.yaml 10Gi, pinned by a test
Charts/podbench-hotfix-claim/templates/pvc.yaml fallback 10Gi, pinned by a test
Charts/podbench/templates/pvc-hotfix-project.yaml fallback 10Gi, pinned by the existing two-routes test
Charts/podbench/values.yaml + example.values.yaml 10Gi

Helm cannot import python, so the charts still spell the number themselves. What
is new is that nothing can drift: test_the_subchart_and_the_central_route_produce_the_same_claim
already asserted the two charts render an identical spec, and
test_the_chart_default_size_is_the_launcher_default_size now pins the chart to
CLAIM_DEFAULT_SIZE. It renders both spellings — the ordinary install, where
values.yaml supplies size, and --set size=null, which is the only way to
reach the template's own fallback. Without the second, that literal could rot
untested behind the first.

k8s/hotfix-harness/podbench-test-fastcs.yaml and docs/reference/cli.md are
hand-written with no generator behind them, so they move here too.

What deliberately did not change

SEAT_HOME_SIZE stays at 2Gi. It is the same number for the opposite
reason: it bounds the seat home emptyDir against the node's ephemeral
storage, where an overrun evicts the pod, application included. The plan names
this as a falsification criterion.

No migration path, per the plan: existing claims are deleted, not resized.

Verification

No cluster, as the plan specifies.

  • just check green — 1918 passed, 40 skipped; ruff, pyright and the -EW
    docs build all clean.
  • helm template on both charts renders storage: "10Gi" — the subchart route
    and the central hotfixProject.claims[] route.
  • Both values.schema.json files survive a second pre-commit run unchanged; the
    generator records no default for size, so neither needed regenerating.

Falsification criteria from the plan, checked: the emptyDir sizeLimit did not
move, the schemas are not rewritten by the hook, and no claim-size copy still
says 2Gi — the three remaining 2Gi strings outside evidence files are prose
about the old size or about a memory resize.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Increased the default storage allocation for hotfix projects from 2 GiB to 10 GiB.
    • Updated the hotfix values command to use 10 GiB by default, while preserving explicitly configured sizes.
  • Documentation

    • Updated CLI reference material, examples, and configuration guidance to reflect the new default storage size.
  • Tests

    • Added coverage to ensure chart and launcher defaults remain consistent.

2Gi was sized for "a python-copier-template checkout plus a venv with room
to grow". Real targets are not all that small, and by the end of this plan the
claim also holds a uv cache and the seat's home. Storage is the cheap resource
beside a hotfix that ran out of room part-way through installing itself, so the
default becomes 10Gi.

Six live copies of the number and nothing held them together. Python now spells
it once, as CLAIM_DEFAULT_SIZE, and both `values_snippet` and `--size` derive
from it. Helm cannot import python, so each chart still spells it in its own
values.yaml and template fallback — but the existing "subchart and central route
produce the same claim" test already pins those two to each other, and a new
test pins the chart to the launcher. Drift there is a claim sized by whichever
of the two routes a site happened to adopt.

SEAT_HOME_SIZE is deliberately left at 2Gi. It is the same number for the
opposite reason: it bounds the seat home emptyDir against the *node's*
ephemeral storage, where an overrun evicts the pod, application included.

The template fallbacks are only reachable from a values file that sets `size`
to null, so the new test renders that case explicitly as well as the ordinary
one — otherwise the literal in the template could rot untested behind the
literal in values.yaml.

k8s/hotfix-harness/podbench-test-fastcs.yaml is hand-written with no generator
behind it, so it moves here too.

Co-Authored-By: Claude Opus 5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 559cea7e-25c3-4af1-932b-2c7cbd796432

📥 Commits

Reviewing files that changed from the base of the PR and between 97cec97 and 19bfea5.

📒 Files selected for processing (10)
  • Charts/podbench-hotfix-claim/templates/pvc.yaml
  • Charts/podbench-hotfix-claim/values.yaml
  • Charts/podbench/example.values.yaml
  • Charts/podbench/templates/pvc-hotfix-project.yaml
  • Charts/podbench/values.yaml
  • docs/reference/cli.md
  • k8s/hotfix-harness/podbench-test-fastcs.yaml
  • src/podbench/hotfix.py
  • tests/test_hotfix.py
  • tests/test_hotfix_claim_chart.py

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The hotfix claim default increases from 2Gi to 10Gi. The launcher defines the shared default, and charts, manifests, documentation, examples, and tests align with it.

Changes

Hotfix claim size

Layer / File(s) Summary
Launcher default constant and CLI wiring
src/podbench/hotfix.py
Defines CLAIM_DEFAULT_SIZE as 10Gi and uses it for generated values and the --size CLI default.
Chart and deployment default alignment
Charts/podbench-hotfix-claim/..., Charts/podbench/..., k8s/hotfix-harness/..., docs/reference/cli.md
Updates chart fallbacks, example values, the harness claim, and CLI documentation to 10Gi.
Default size consistency tests
tests/test_hotfix.py, tests/test_hotfix_claim_chart.py
Checks generated and rendered claim sizes against CLAIM_DEFAULT_SIZE, including the chart fallback path.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 19bfe

The PR updates the hotfix claim default to 10Gi and keeps the launcher, charts, documentation, and harness values aligned with tests covering both chart fallback paths. No actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 3 files. (7 skipped: 7 unsupported.) Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: the hotfix claim default is now 10Gi and uses one constant.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claim/default-10gi

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.

@gilesknap

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@gilesknap

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@gilesknap
gilesknap merged commit 92752a5 into main Aug 24, 2026
30 checks passed
@gilesknap
gilesknap deleted the claim/default-10gi branch August 24, 2026 23:17
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.

1 participant