fix(mobile-infra): render push grant lifetimes as decimal in chart 0.3.2 (#7820)

A valid 30-day push gateway grant lifetime could render in scientific
notation (e.g. `2.592e+06`) in the chart, which the gateway binary does
not accept.

Always ormat the integer as decimal text, preserving the strict gateway
parser.

### Testing

Added regression coverage that feeds actual Helm-rendered environment
values into the production config parser. Covers defaults, values files,
command-line overrides, exact lifetime boundaries, and invalid input
rejection. The default case failed before the fix and passes afterward.

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-09-23 08:47:21 -07:00
committed by GitHub
parent 0cc63fe3e6
commit 0ef7a2222e
7 changed files with 84 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ on:
pull_request:
paths:
- "deploy/charts/buzz-push-gateway/**"
- "crates/buzz-push-gateway/src/config.rs"
- ".github/workflows/push-gateway-helm-chart.yml"
permissions: {}
env:
@@ -27,6 +28,7 @@ jobs:
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || '' }}
fetch-depth: 0
- uses: cashapp/activate-hermit@cea9af7913204a965fd488637a8d1811bba2e616 # v1
- uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4
with: { version: v3.16.4 }
- run: deploy/charts/buzz-push-gateway/tests/render.sh