✓ pass on PR2 (PR2 · resource-group sequencing (stacked on PR1)) · 1.2 s
Cycle (a→b, b→a) fails helm install and helm lint; no objects applied.
Same test on other tiers: PR1 ✓ passPR3 — n/aCombined ✓ pass
Requirements
R06 Circular dependencies are detected and reported implemented
This approach of building a directed acyclic graph (DAG) is prone to circular dependencies. During the templating phase, Helm will have logic to detect, and report any circular dependencies found in the chart templates.HIP-0025, Chart dependencies example
The test needs these tier features: ordered, subcharts.
What the test observed
The test asserts on these facts. Times come from the kube-apiserver audit log (UTC).
install exit code
1
install stderr
Error: INSTALLATION FAILED: subchart circular dependency detected in hip-subcharts-cycle: cycle detected among nodes: a, b
helm apply count
0
lint exit code
1
lint output
==> Linting charts/hip-subcharts-cycle [INFO] Chart.yaml: icon is recommended [INFO] values.yaml: file does not exist [ERROR] /Users/rohit/Documents/helm-hip-0025-e2e/charts/hip-subcharts-cycle: subchart circular dependency detected in hip-subcharts-cycle: cycle detected among nodes: a, b Error: 1 chart(s) linted, 1 chart(s) failed
Charts
The charts that the helm commands below read. The run keeps
each chart as an archive. Click a chart to see its files and the commands that inspect or install it.
| Chart directory | Chart | Archive | sha256 |
|---|---|---|---|
| charts/hip-subcharts-cycle | hip-subcharts-cycle 0.1.0 · apiVersion v3Subchart dependency cycle (a depends-on b, b depends-on a) |
hip-subcharts-cycle-0.1.0.tgz · 406 B | 3bb3813a3d5898e1 |
Commands
Every command that the test ran, in order, with the start time, the exit code and the output. The paths are relative to the root of the repository.
01:54:38.811 $ kubectl --context kind-hip0025-e2e delete namespace e2e-pr2-subchart-cycle-detected --ignore-not-found --wait=true --timeout=120s [exit 0, 0.0s] 01:54:38.847 $ kubectl --context kind-hip0025-e2e create namespace e2e-pr2-subchart-cycle-detected [exit 0, 0.0s] namespace/e2e-pr2-subchart-cycle-detected created 01:54:38.884 $ .bin/helm-pr2 install cycle-test charts/hip-subcharts-cycle --wait=ordered --timeout 2m --kube-context kind-hip0025-e2e [exit 1, 0.1s] Error: INSTALLATION FAILED: subchart circular dependency detected in hip-subcharts-cycle: cycle detected among nodes: a, b 01:54:39.995 $ .bin/helm-pr2 lint charts/hip-subcharts-cycle --kube-context kind-hip0025-e2e [exit 1, 0.0s] ==> Linting charts/hip-subcharts-cycle [INFO] Chart.yaml: icon is recommended [INFO] values.yaml: file does not exist [ERROR] /Users/rohit/Documents/helm-hip-0025-e2e/charts/hip-subcharts-cycle: subchart circular dependency detected in hip-subcharts-cycle: cycle detected among nodes: a, b Error: 1 chart(s) linted, 1 chart(s) failed 01:54:40.029 $ kubectl --context kind-hip0025-e2e delete namespace e2e-pr2-subchart-cycle-detected --wait=false [exit 0, 0.0s] namespace "e2e-pr2-subchart-cycle-detected" deleted
Files
| File | Size | Content |
|---|---|---|
| audit.jsonl | 0 B | 0 kube-apiserver audit records for the namespace of the test |
| commands.log | 1.2 KB | the commands above |
| observations.json | 746 B | the observations above, as JSON |