Run sylva-units helm checks with the helm component

⚠️🤖 This MR has been automatically generated

  • It has been reviewed by the assignee

What does this MR do and why?

Replaces the sylva-units helm checks with the helm component, so that sylva-core doesn't carry its own helm validation logic anymore.

Changes

  • removed: the sylva-units:helm-lint and sylva-units:helm jobs, a stale needs: entry (on a job that doesn't exist anymore), the HELM_CHART_VERSION variable the old job set (nothing reads it), and tools/yaml2json.py (its only use was the schema testing instructions, which now use yq, as in the other chart repos)
  • helm lint: runs as a pre-commit hook (helm-lint, with test-values/base.yaml)
  • helm unittest: the component test template (job sylva-units:unittest), which also generates the use-oci-artifacts-final.values.yaml the OCI test suite loads — the job runs on merge requests only, and is included by main-pipeline-checks.yml only when the chart, the tools it uses, or its own definition is impacted (a kustomize-only or other CI change does not run it)
  • local runner: tools/validation/helm-test-sylva-units.sh keeps its old path and now runs the helm pre-commit hooks, generates the OCI values file and runs helm unittest — the same checks as before, in one command
  • conventions on the sylva-units values files that the shell script was checking (no units.xxx.enabled: true in values.yaml; _postRenderers, _components and _patches instead of the same fields without _): moved to a pre-commit hook, tools/validation/check-units-values.py, with the same messages

Kept as is

  • the schema generator hook (it merges the schemas of other charts, so it can't use the component's generic conversion) and check-metaschema
  • check-sylva-unit-dependencies (Chart.lock and vendored chart drift)
Details and validation traces
  • The before_script input of the test template adds the commands at the start of the job script (GitLab's before_script keyword is not used).
  • Test suites now run in parallel (--parallel): 46 suites / 93 tests take about 1.5 minutes instead of about 6 when run one after the other (measured locally).
  • The stale needs: entry was on sylva-units:helm-schema-validation, a job that doesn't exist anymore.
  • The enabled: true convention is also guarded by tests/values-defaults_test.yaml.
  • Nothing reads HELM_CHART_VERSION: is-upgrade_test.yaml expects 0.0.0-git, which is what Chart.yaml provides.
  • helm dependency update on the tracked Chart.lock and the vendored .tgz leaves them unchanged (tested, twice).
  • The update-unit-docs hook modifies units-description.md in my environment as well as on main (sbom-operator App-version): environment noise, not related to this MR.
Edited by Jonathan GAYVALLET

Merge request reports

Loading
Loading