✓ pass on PR1 (PR1 · subchart sequencing) · 46.5 s
--rollback-on-failure: the install fails, then Helm deletes what it applied and leaves no release.
Same test on other tiers: PR2 ✓ passPR3 — n/aCombined ✓ pass
Requirements
R11 A readiness failure or timeout fails the install; --rollback-on-failure rolls back implemented
Installs: [...] If any of the readiness checks fail or timeout, the entire install would fail and the release marked as failed. If --atomic, or its SDK equivalent is used, a rollback to the last successful install would take place.HIP-0025, Sequencing order
Note: Helm v4 renamed --atomic to --rollback-on-failure.
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 1: context deadline exceeded
apiserver timeline
01:01:17.731 apply Deployment/broken 01:02:02.766 delete Deployment/broken
releases left in namespace
(none)
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-lifecycle-failure | hip-lifecycle-failure 0.1.0 · apiVersion v3Chart with a never-ready subchart to test failure handling |
hip-lifecycle-failure-0.1.0.tgz · 721 B | 81e8152aaa1933a7 |
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:01:17.579 $ kubectl --context kind-hip0025-e2e delete namespace e2e-pr1-rollback-on-failure-cleans-up --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]
01:01:17.616 $ kubectl --context kind-hip0025-e2e create namespace e2e-pr1-rollback-on-failure-cleans-up
[exit 0, 0.0s]
namespace/e2e-pr1-rollback-on-failure-cleans-up created
01:01:17.650 $ .bin/helm-pr1 install r charts/hip-lifecycle-failure --namespace e2e-pr1-rollback-on-failure-cleans-up --wait=ordered --timeout 45s --rollback-on-failure --kube-context kind-hip0025-e2e
[exit 1, 45.2s]
Error: INSTALLATION FAILED: release r failed, and has been uninstalled due to rollback-on-failure being set: resource Deployment/e2e-pr1-rollback-on-failure-cleans-up/broken not ready. status: InProgress, message: Available: 0/1
context deadline exceeded
01:02:03.896 $ .bin/helm-pr1 list --deployed --failed --pending --superseded --uninstalled --short --namespace e2e-pr1-rollback-on-failure-cleans-up --kube-context kind-hip0025-e2e
[exit 0, 0.1s]
01:02:03.957 $ kubectl --context kind-hip0025-e2e get Deployment broken -n e2e-pr1-rollback-on-failure-cleans-up
[exit 1, 0.0s]
Error from server (NotFound): deployments.apps "broken" not found
01:02:03.998 $ kubectl --context kind-hip0025-e2e get Deployment dependent -n e2e-pr1-rollback-on-failure-cleans-up
[exit 1, 0.0s]
Error from server (NotFound): deployments.apps "dependent" not found
01:02:04.037 $ kubectl --context kind-hip0025-e2e get secret -n e2e-pr1-rollback-on-failure-cleans-up -l owner=helm,name=r -o json
[exit 0, 0.0s]
{
"apiVersion": "v1",
"items": [],
"kind": "List",
"metadata": {
"resourceVersion": ""
}
}
01:02:04.074 $ kubectl --context kind-hip0025-e2e delete namespace e2e-pr1-rollback-on-failure-cleans-up --wait=false
[exit 0, 0.0s]
namespace "e2e-pr1-rollback-on-failure-cleans-up" deleted
Files
| File | Size | Content |
|---|---|---|
| audit.jsonl | 63.3 KB | 18 kube-apiserver audit records for the namespace of the test |
| commands.log | 1.8 KB | the commands above |
| observations.json | 312 B | the observations above, as JSON |