Skip to content

Bump helm-unittest to v1.1.0, fix errorPattern regexes#885

Merged
bschwedler merged 2 commits into
fork-safe-install-cifrom
update-helm-unittest
Jun 5, 2026
Merged

Bump helm-unittest to v1.1.0, fix errorPattern regexes#885
bschwedler merged 2 commits into
fork-safe-install-cifrom
update-helm-unittest

Conversation

@bschwedler
Copy link
Copy Markdown
Contributor

Follow-up to #884.

Helm 3.18.5 changed its JSON schema parser, producing a different error string for schema validation failures. The helm-unittest v1.0.1 release notes documented this as a known breaking change that could cause test failures.

The posit-chronicle configmap_fail_test.yaml tests had errorPattern values that matched the old format but not the new one. This caused silent failure: tests passed in CI (pinned to v1.0.0) while failing locally with helm-unittest >= v1.0.1 — a latent break waiting for the version bump.

  • Bump helm-unittest in CI from v1.0.0 to v1.1.0
  • Relax both errorPattern regexes to match both old and new error formats: .*ServiceLogLevel.*does not match pattern.*

All 68 posit-chronicle tests pass locally with v1.0.3 (the version that exposed the break).

Helm 3.18.5 changed its JSON schema parser, producing a different
error string format for schema validation failures. helm-unittest
v1.0.1 documented this as a known breaking change.

The posit-chronicle configmap_fail_test.yaml tests used errorPattern
values that matched the old format ("ServiceLogLevel: Does not match
pattern") but not the new one ("'/config/Logging/ServiceLogLevel':
'INVALID' does not match pattern"). This caused the tests to fail
locally with helm-unittest >= v1.0.1 while CI (pinned to v1.0.0)
continued to pass — a latent break waiting for the version bump.

Relax both patterns to ".*ServiceLogLevel.*does not match pattern.*"
and ".*ServiceLogFormat.*does not match pattern.*", which match both
the old and new error formats.
Go regex is case-sensitive by default. The old Helm schema error format
uses uppercase 'Does not match pattern'; the new format uses lowercase.
Add (?i) to both patterns so they match either wording.
@bschwedler bschwedler merged commit ea2bc9e into fork-safe-install-ci Jun 5, 2026
9 checks passed
@bschwedler bschwedler deleted the update-helm-unittest branch June 5, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants