fix(GPP-burgerportaal): honour 0 for sitemapCacheDurationHours and downloadTimeoutMinutes - #71
Open
xiduzo wants to merge 3 commits into
Open
fix(GPP-burgerportaal): honour 0 for sitemapCacheDurationHours and downloadTimeoutMinutes#71xiduzo wants to merge 3 commits into
xiduzo wants to merge 3 commits into
Conversation
…imeout
`{{- if .Values.settings.sitemapCacheDurationHours }}` renders on truthiness, and
0 is falsy in Go templates — so the one value a testomgeving most wants to set,
`sitemapCacheDurationHours: 0` to disable the sitemap output cache, was silently
dropped from the ConfigMap. The app then fell back to its own 23h default.
Effect in the e2e pipeline: the burgerportaal built the sitemap once, early in the
run while the stack was still empty, and served that empty XML from its output
cache for the rest of the suite — 45 sitemap requests, 45 "Serving response from
cache", exactly one outgoing ODRC call. Every seed-then-look-up scenario then
failed against a sitemap holding 0 entries while ODRC reported 20-40 documents as
gepubliceerd + isGereedVoorPublicatie, which read like a propagation bug and is
not one.
Render on "is it set?" instead. Same fix for downloadTimeoutMinutes, which has the
identical flaw. Verified with `helm template ... -f dev/values/odbp.yaml`:
SITEMAP_CACHE_DURATION_HOURS is absent before and "0" after.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The release workflow publishes a chart only when its version changes, so the ConfigMap fix above needs a patch bump to reach anyone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wat is er aan de hand
charts/GPP-burgerportaal/templates/configmap.yamlrendert deze twee settings op truthiness:In Go templates is
0falsy. Dus juist de waarde die je op een testomgeving wilt zetten —sitemapCacheDurationHours: 0om de sitemap-outputcache uit te zetten — verdwijnt stilletjes uit de ConfigMap. De app valt dan terug op zijn eigen default van 23 uur.Hetzelfde geldt voor
downloadTimeoutMinutes.Hoe dit zich uitte
In de e2e-pipeline (kind + deze charts) bouwde de burgerportaal de sitemap één keer, vroeg in de run terwijl de stack nog leeg was, en serveerde die lege XML de rest van de suite uit de cache:
Gevolg: elk scenario dat een document seedt en daarna in de sitemap opzoekt viel om tegen een sitemap met 0 entries, terwijl ODRC 20-40 documenten als
gepubliceerd+isGereedVoorPublicatierapporteerde. Dat leest als een propagatie- of timingbug in de tests, en dat is het niet.De fix
Renderen op "is de waarde gezet?" in plaats van op truthiness:
Geverifieerd met
helm template:sitemapCacheDurationHours: 0SITEMAP_CACHE_DURATION_HOURS: "0"23)"23""23"nullhelm lint charts/GPP-burgerportaalis schoon.Chart version
gpp-burgerportaalgaat naar 2.0.1 — de release-workflow publiceert een chart alleen als de versie wijzigt, dus zonder bump bereikt de fix niemand.Follow-up (bewust niet in deze PR)
charts/GPP-stack/Chart.yamlpintgpp-burgerportaal: 2.0.0, dus consumers van de umbrella krijgen deze fix nog niet. Ik heb die bump er niet in gelaten: chart-releaser resolvet de dependencies vangpp-stackuit de gepubliceerde index, en2.0.1bestaat daar pas nadat deze merge zelf gepubliceerd is — een bump in dezelfde PR kan de release-run dus laten falen. Beter een losse bump nadat 2.0.1 er staat.🤖 Generated with Claude Code