feat(github-app-playground): bump chart to v0.9.0 / appVersion 1.5.0 - #26
Conversation
📝 WalkthroughWalkthroughThe pull request updates the GitHub app playground Helm chart from version 0.8.1 to 0.9.0, bumping the application version to 1.5.0. A new optional configuration parameter Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
charts/github-app-playground/templates/configmap.yaml (1)
95-99: Minor consistency nit:intcast diverges from sibling tunables.The PR notes mention reusing "the same non-empty check and int-cast pattern used for existing DEFAULT_MAXTURNS/AGENT_MAX_TURNS", but those two lines actually emit
{{ $c.X | quote }}without anintcast (lines 41 and 93). Only the*_MS/threshold values useint … | quote.The current behaviour is fine —
int … | quoteis arguably the safer form — but if you want the three "cap"-style tunables to be uniform, either drop theinthere or add it to the sibling lines in a follow-up. Silent truncation also differs: a stray"2.5"here would become"2", whereas the siblings would pass it through and let Zod reject. Either choice is defensible; just flagging the divergence.♻️ Option A — drop the int cast to match siblings
{{- if ne ($c.reviewResolveMaxIterations | toString) "" }} - REVIEW_RESOLVE_MAX_ITERATIONS: {{ int $c.reviewResolveMaxIterations | quote }} + REVIEW_RESOLVE_MAX_ITERATIONS: {{ $c.reviewResolveMaxIterations | quote }} {{- end }}🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@charts/github-app-playground/templates/configmap.yaml` around lines 95 - 99, The REVIEW_RESOLVE_MAX_ITERATIONS entry uses an int cast that diverges from the sibling cap tunables (DEFAULT_MAXTURNS and AGENT_MAX_TURNS); make them consistent by removing the int cast so REVIEW_RESOLVE_MAX_ITERATIONS is emitted as {{ $c.reviewResolveMaxIterations | quote }} under the same non-empty check, matching the other cap-style tunables and avoiding silent truncation differences between these keys.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@charts/github-app-playground/templates/configmap.yaml`:
- Around line 95-99: The REVIEW_RESOLVE_MAX_ITERATIONS entry uses an int cast
that diverges from the sibling cap tunables (DEFAULT_MAXTURNS and
AGENT_MAX_TURNS); make them consistent by removing the int cast so
REVIEW_RESOLVE_MAX_ITERATIONS is emitted as {{ $c.reviewResolveMaxIterations |
quote }} under the same non-empty check, matching the other cap-style tunables
and avoiding silent truncation differences between these keys.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: df31176d-51d9-402c-a390-5a79ee14924e
📒 Files selected for processing (3)
charts/github-app-playground/Chart.yamlcharts/github-app-playground/templates/configmap.yamlcharts/github-app-playground/values.yaml
…ITERATIONS for consistency
|
Thanks @coderabbitai — verified and applied. |
|
Tip For best results, initiate chat on the files or code changes.
✏️ Learnings added
If you found this review helpful, would you consider giving us a shout-out on X? Thank you for using CodeRabbit! |
Summary
Bumps
github-app-playgroundHelm chart to v0.9.0 with appVersion 1.5.0 (chrisleekr/github-app#63 — cascade PR retargeting + bounded review/resolve loop).Upstream v1.5.0 fixes the ship pipeline cascade:
reviewandresolvewere inheriting the parent ship's issue target and bailing immediately because they require a PR target. v1.5.0 retargets cascade children to the PR opened byimplement, and runs a bounded review→resolve loop that exits cleanly when findings reach zero (or hits the cap and emits a manual-re-review hint).This chart bump exposes the one new tunable upstream introduced —
REVIEW_RESOLVE_MAX_ITERATIONS(int, range 1–5, upstream default 2) — asconfig.reviewResolveMaxIterationsinvalues.yaml. It is gated by the samene … ""non-empty check used by the sibling cap tunables (AGENT_MAX_TURNS,DEFAULT_MAXTURNS), so leaving it empty omits the env var entirely and the upstream Zod default takes effect.Chart minor bump (
0.8.1 → 0.9.0) is appropriate because we are adding a new, optional, backward-compatible values knob — not just an appVersion bump.Before
After
flowchart LR values["values.yaml<br/>config.reviewResolveMaxIterations<br/>empty by default"]:::add gate{"value != empty?"}:::add emit["REVIEW_RESOLVE_MAX_ITERATIONS<br/>quoted"]:::add skip["env var not emitted"]:::cur pod["pod env"]:::cur zod["upstream Zod<br/>z.coerce.number.int<br/>1–5, default 2"]:::cur values --> gate gate -- "yes" --> emit --> pod --> zod gate -- "no" --> skip --> pod --> zod classDef cur fill:#1f3a5f,color:#ffffff,stroke:#ffffff classDef add fill:#196f3d,color:#ffffff,stroke:#ffffffChanges
Chart.yaml— chart0.8.1 → 0.9.0,appVersion "1.4.0" → "1.5.0". Replaced previousartifacthub.io/changesentry with two new entries: achangedentry describing the upstream behaviour change, and anaddedentry describing the new tunable.values.yaml— added Group 12 section withreviewResolveMaxIterations: ""(empty default = use upstream default of 2). Range and behaviour documented inline.templates/configmap.yaml— added Group 12 section emittingREVIEW_RESOLVE_MAX_ITERATIONSonly when the value is non-empty, matching the gate-and-quote pattern of sibling cap tunablesAGENT_MAX_TURNS(line 41) andDEFAULT_MAXTURNS(line 93). Nointcast — upstream Zod usesz.coerce.number().int()which already handles the string→int coercion.Verification
helm lint charts/github-app-playground— clean (1 INFO abouticon, pre-existing).helm template charts/github-app-playground(default values) —REVIEW_RESOLVE_MAX_ITERATIONSnot present in rendered ConfigMap (upstream Zod default of 2 takes effect).helm template charts/github-app-playground --set config.reviewResolveMaxIterations=4— rendersREVIEW_RESOLVE_MAX_ITERATIONS: "4"(quoted string, as required by ConfigMap).