Repository navigation
The hotfix claim defaults to 10Gi, from one constant - #237
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe hotfix claim default increases from ChangesHotfix claim size
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
|
@coderabbitai review |
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
Phase 1 of
.claude/plans/the-claim-holds-the-seat.md. Independent of the restof the plan, no cluster needed, so it goes first and gets out of the way.
What changed
2Giwas sized for "a python-copier-template checkout plus a venv with room togrow". 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:
hotfix.values_snippet(size=...)CLAIM_DEFAULT_SIZEhotfix values --sizeCLAIM_DEFAULT_SIZECharts/podbench-hotfix-claim/values.yaml10Gi, pinned by a testCharts/podbench-hotfix-claim/templates/pvc.yamlfallback10Gi, pinned by a testCharts/podbench/templates/pvc-hotfix-project.yamlfallback10Gi, pinned by the existing two-routes testCharts/podbench/values.yaml+example.values.yaml10GiHelm 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_claimalready asserted the two charts render an identical
spec, andtest_the_chart_default_size_is_the_launcher_default_sizenow pins the chart toCLAIM_DEFAULT_SIZE. It renders both spellings — the ordinary install, wherevalues.yamlsuppliessize, and--set size=null, which is the only way toreach the template's own fallback. Without the second, that literal could rot
untested behind the first.
k8s/hotfix-harness/podbench-test-fastcs.yamlanddocs/reference/cli.mdarehand-written with no generator behind them, so they move here too.
What deliberately did not change
SEAT_HOME_SIZEstays at 2Gi. It is the same number for the oppositereason: it bounds the seat home
emptyDiragainst the node's ephemeralstorage, 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 checkgreen — 1918 passed, 40 skipped; ruff, pyright and the-EWdocs build all clean.
helm templateon both charts rendersstorage: "10Gi"— the subchart routeand the central
hotfixProject.claims[]route.values.schema.jsonfiles survive a second pre-commit run unchanged; thegenerator records no
defaultforsize, so neither needed regenerating.Falsification criteria from the plan, checked: the
emptyDirsizeLimitdid notmove, the schemas are not rewritten by the hook, and no claim-size copy still
says 2Gi — the three remaining
2Gistrings outside evidence files are proseabout the old size or about a memory resize.
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation
Tests