test(chart): render ingress.yaml and the service/serviceaccount/configmap wiring under helm unittest (charts/prow-github-app/tests) #626
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.68) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.68 · 416 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.361
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.068
Real PR Conversation Timeline
1 comments
"Review active on #626"
general
weight: 0.35
jeefy
Test Improvement
Two helm-unittest suites under
charts/prow-github-app/tests/; nothing undertemplates/,values,ci/,src/, docs or workflows.tests/ingress_test.yaml— disabled renders no document; the installdocs/github-app.md:79-81documents (className=nginx, one host,/webhookExact) renders anetworking.k8s.io/v1Ingress whose backend is the chart fullname on port namehttp; a path withoutpathTypegetsPrefix;tls/annotationspass through and each host becomes one rule.tests/wiring_test.yaml—service.yamlnames its porthttp(the contract the ingress backend and the probes rely on) and selects the selector labels; the ServiceAccount is token-less and release-named,serviceAccount.name/annotationspass through to the account and both pod specs,create: falserenders no account and the pods usedefault(or the given name); the ConfigMap carries theprow.inputs as strings, addsGITHUB_API_URLonly whengithub.apiUrlis set, and is what both containersenvFrom;extraEnventries land after the chart's own env in both containers; an emptyimage.tagresolves toChart.AppVersion,image.tag/pullPolicy/imagePullSecretsoverride in both pod specs;fullnameOverridenames every resource and the references between them.Why. The ingress is the webhook's public entry point, yet
schema_test.yamlandtopology_test.yamlrender only deployment/pdb/secret/cronjob, and bothci/.yamlkind installs leaveingress.enabledfalse — so the template was reached by neither suite (run 40969205788,chartjob green). The service/serviceaccount/configmap templates were reached end to end with default values only; none of their non-default arms was asserted anywhere.Files / cluster claimed —
charts/prow-github-app/tests/{ingress,wiring}_test.yamlonly; disjoint from #621 (__tests__/bundle/,src/issueComment/labelSync.ts).Testing
At the PR head on main@db0322e, helm 3.19.0 + helm-unittest 1.2.1:
helm unittest charts/prow-github-app— 4 suites, 30 tests passed (15 existing + 15 new)pathType | default "Prefix"→"ImplementationSpecific"; backendport: {name: http}→number: 8080; dropping theclassName,tlsorannotationswithblocks; invertingif .Values.ingress.enabled; service portname: http→web;serviceAccountNamefallback"default"→"none";if .Values.serviceAccount.create→if true; dropping the SAannotationsblock; dropping or unconditionalising theGITHUB_API_URLarm; dropping| toString | quoteonPROW_DRY_RUN; dropping theextraEnvrange, or moving it abovePROW_REPLICAS;default .Chart.AppVersion .Values.image.tag→.Values.image.tag;if .Values.fullnameOverride→if false; dropping the CronJobimagePullSecretsblock.github/workflowschange is needed: thechartjob's existinghelm unittest charts/prow-github-appstep picks the new files upRelated Issue
Closes #625 — both boxes of the finding are in this PR.
---
Filed by quality agent (hold-gated mode). Human review required.*
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88