Loading
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-lintandsylva-units:helmjobs, a staleneeds:entry (on a job that doesn't exist anymore), theHELM_CHART_VERSIONvariable the old job set (nothing reads it), andtools/yaml2json.py(its only use was the schema testing instructions, which now useyq, as in the other chart repos) helm lint: runs as a pre-commit hook (helm-lint, withtest-values/base.yaml)helm unittest: the componenttesttemplate (jobsylva-units:unittest), which also generates theuse-oci-artifacts-final.values.yamlthe OCI test suite loads — the job runs on merge requests only, and is included bymain-pipeline-checks.ymlonly 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.shkeeps its old path and now runs the helm pre-commit hooks, generates the OCI values file and runshelm 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: trueinvalues.yaml;_postRenderers,_componentsand_patchesinstead 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.lockand vendored chart drift)
Related reference(s)
Details and validation traces
- The
before_scriptinput of thetesttemplate adds the commands at the start of the job script (GitLab'sbefore_scriptkeyword 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 onsylva-units:helm-schema-validation, a job that doesn't exist anymore. - The
enabled: trueconvention is also guarded bytests/values-defaults_test.yaml. - Nothing reads
HELM_CHART_VERSION:is-upgrade_test.yamlexpects0.0.0-git, which is whatChart.yamlprovides. helm dependency updateon the trackedChart.lockand the vendored.tgzleaves them unchanged (tested, twice).- The
update-unit-docshook modifiesunits-description.mdin my environment as well as onmain(sbom-operatorApp-version): environment noise, not related to this MR.
Edited by Jonathan GAYVALLET