test_upgrade_follows_group_order

✓ pass on PR2 (PR2 · resource-group sequencing (stacked on PR1)) · 17.8 s

Upgrade patches every Deployment; patches follow database/queue -> app, and app's patch comes after both are ready again.

Same test on other tiers: PR1 — n/aPR3 — n/aCombined ✓ pass

Requirements

R09 Upgrades apply in install order implemented

A similar process would apply for upgrades. [...] Upgrades would follow the same order as installation.HIP-0025, Specification

The test needs these tier features: ordered, groups.

What the test observed

The test asserts on these facts. Times come from the kube-apiserver audit log (UTC).

upgrade timeline

03:29:08.713  apply  Deployment/db
03:29:08.718  apply  Deployment/queue
03:29:12.611  ready  Deployment/queue
03:29:12.619  ready  Deployment/db
03:29:12.747  apply  Deployment/app
03:29:16.625  ready  Deployment/app

db patch-marker

v2

queue patch-marker

v2

app patch-marker

v2

db patched

03:29:08.713

queue patched

03:29:08.718

app patched

03:29:12.747

db ready after patch

03:29:12.619

queue ready after patch

03:29:12.611

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 directoryChartArchivesha256
charts/hip-groups-upgrade hip-groups-upgrade 0.1.0 · apiVersion v3R09 groups - upgrade patches follow group order hip-groups-upgrade-0.1.0.tgz · 818 B c85ed21623f9786b

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.

03:29:01.130 $ kubectl --context kind-hip0025-e2e delete namespace e2e-pr2-upgrade-follows-group-order --ignore-not-found --wait=true --timeout=120s
[exit 0, 0.0s]


03:29:01.167 $ kubectl --context kind-hip0025-e2e create namespace e2e-pr2-upgrade-follows-group-order
[exit 0, 0.0s]
namespace/e2e-pr2-upgrade-follows-group-order created


03:29:01.202 $ .bin/helm-pr2 install r charts/hip-groups-upgrade --namespace e2e-pr2-upgrade-follows-group-order --set patchValue=v1 --wait=ordered --timeout 3m --kube-context kind-hip0025-e2e
[exit 0, 7.4s]
NAME: r
LAST DEPLOYED: Sun Nov  1 22:29:01 2026
NAMESPACE: e2e-pr2-upgrade-follows-group-order
STATUS: deployed
REVISION: 1
DESCRIPTION: Install complete
TEST SUITE: None


03:29:08.599 $ .bin/helm-pr2 upgrade r charts/hip-groups-upgrade --namespace e2e-pr2-upgrade-follows-group-order --set patchValue=v2 --wait=ordered --timeout 3m --kube-context kind-hip0025-e2e
[exit 0, 8.1s]
Release "r" has been upgraded. Happy Helming!
NAME: r
LAST DEPLOYED: Sun Nov  1 22:29:08 2026
NAMESPACE: e2e-pr2-upgrade-follows-group-order
STATUS: deployed
REVISION: 2
DESCRIPTION: Upgrade complete
TEST SUITE: None


03:29:17.746 $ kubectl --context kind-hip0025-e2e get Deployment db -n e2e-pr2-upgrade-follows-group-order -o json
[exit 0, 0.0s]
{
    "apiVersion": "apps/v1",
    "kind": "Deployment",
    "metadata": {
        "annotations": {
            "deployment.kubernetes.io/revision": "2",
            "helm.sh/resource-group": "database",
            "meta.helm.sh/release-name": "r",
            "meta.helm.sh/release-namespace": "e2e-pr2-upgrade-follows-group-order",
            "patch-marker": "v2"
        },
        "creationTimestamp": "2026-11-02T03:29:01Z",
        "generation": 2,
        "labels": {
            "app.kubernetes.io/managed-by": "Helm"
        },
        "name": "db",
        "namespace": "e2e-pr2-upgrade-follows-group-order",
        "resourceVersion": "9678",
        "uid": "38d5e686-6a4b-41bf-8d9c-0f52b09d5f47"
    },
    "spec": {
        "progressDeadlineSeconds": 600,
        "replicas": 1,
        "revisionHistoryLimit": 10,
        "selector": {
            "matchLabels": {
                "app": "db"
            }
        },
        "strategy": {
            "rollingUpdate": {
                "maxSurge": "25%",
                "maxUnavailable": "25%"
            },
            "type": "RollingUpdate"
        },
        "template": {
            "metadata": {
                "annotations": {
                    "patch-marker": "v2"
                },
                "labels": {
                    "app": "db"
                }
            },
            "spec": {
                "containers": [
                    {
                        "env": [
                            {
                                "name": "PATCH_VALUE",
                                "value": "v2"
                            }
                        ],
                        "image": "nginx:1.27-alpine",
                        "imagePullPolicy": "IfNotPresent",
                        "name": "web",
                        "readinessProbe": {
                            "failureThreshold": 3,
                            "httpGet": {
                                "path": "/",
                                "port": 80,
                                "scheme": "HTTP"
                            },
                            "initialDelaySeconds": 3,
                            "periodSeconds": 1,
                            "successThreshold": 1,
                            "timeoutSeconds": 1
                        },
                        "resources": {},
                        "terminationMessagePath": "/dev/termination-log",
                        "terminationMessagePolicy": "File"
                    }
                ],
                "dnsPolicy": "ClusterFirst",
                "restartPolicy": "Always",
                "schedulerName": "default-scheduler",
                "securityContext": {},
                "terminationGracePeriodSeconds": 0
            }
        }
    },
    "status": {
        "availableReplicas": 1,
        "conditions": [
            {
                "lastTransitionTime": "2026-11-02T03:29:04Z",
                "lastUpdateTime": "2026-11-02T03:29:04Z",
                "message": "Deployment has minimum availability.",
                "reason": "MinimumReplicasAvailable",
                "status": "True",
                "type": "Available"
            },
            {
                "lastTransitionTime": "2026-11-02T03:29:01Z",
                "lastUpdateTime": "2026-11-02T03:29:12Z",
                "message": "ReplicaSet \"db-7d4b9df77c\" has successfully progressed.",
                "reason": "NewReplicaSetAvailable",
                "status": "True",
                "type": "Progressing"
            }
        ],
        "observedGeneration": 2,
        "readyReplicas": 1,
        "replicas": 1,
        "terminatingReplicas": 0,
        "updatedReplicas": 1
    }
}


03:29:17.787 $ kubectl --context kind-hip0025-e2e get Deployment queue -n e2e-pr2-upgrade-follows-group-order -o json
[exit 0, 0.0s]
{
    "apiVersion": "apps/v1",
    "kind": "Deployment",
    "metadata": {
        "annotations": {
            "deployment.kubernetes.io/revision": "2",
            "helm.sh/resource-group": "queue",
            "meta.helm.sh/release-name": "r",
            "meta.helm.sh/release-namespace": "e2e-pr2-upgrade-follows-group-order",
            "patch-marker": "v2"
        },
        "creationTimestamp": "2026-11-02T03:29:01Z",
        "generation": 2,
        "labels": {
            "app.kubernetes.io/managed-by": "Helm"
        },
        "name": "queue",
        "namespace": "e2e-pr2-upgrade-follows-group-order",
        "resourceVersion": "9675",
        "uid": "0425c712-efd0-4f14-9a3c-ee5fc751a426"
    },
    "spec": {
        "progressDeadlineSeconds": 600,
        "replicas": 1,
        "revisionHistoryLimit": 10,
        "selector": {
            "matchLabels": {
                "app": "queue"
            }
        },
        "strategy": {
            "rollingUpdate": {
                "maxSurge": "25%",
                "maxUnavailable": "25%"
            },
            "type": "RollingUpdate"
        },
        "template": {
            "metadata": {
                "annotations": {
                    "patch-marker": "v2"
                },
                "labels": {
                    "app": "queue"
                }
            },
            "spec": {
                "containers": [
                    {
                        "env": [
                            {
                                "name": "PATCH_VALUE",
                                "value": "v2"
                            }
                        ],
                        "image": "nginx:1.27-alpine",
                        "imagePullPolicy": "IfNotPresent",
                        "name": "web",
                        "readinessProbe": {
                            "failureThreshold": 3,
                            "httpGet": {
                                "path": "/",
                                "port": 80,
                                "scheme": "HTTP"
                            },
                            "initialDelaySeconds": 3,
                            "periodSeconds": 1,
                            "successThreshold": 1,
                            "timeoutSeconds": 1
                        },
                        "resources": {},
                        "terminationMessagePath": "/dev/termination-log",
                        "terminationMessagePolicy": "File"
                    }
                ],
                "dnsPolicy": "ClusterFirst",
                "restartPolicy": "Always",
                "schedulerName": "default-scheduler",
                "securityContext": {},
                "terminationGracePeriodSeconds": 0
            }
        }
    },
    "status": {
        "availableReplicas": 1,
        "conditions": [
            {
                "lastTransitionTime": "2026-11-02T03:29:04Z",
                "lastUpdateTime": "2026-11-02T03:29:04Z",
                "message": "Deployment has minimum availability.",
                "reason": "MinimumReplicasAvailable",
                "status": "True",
                "type": "Available"
            },
            {
                "lastTransitionTime": "2026-11-02T03:29:01Z",
                "lastUpdateTime": "2026-11-02T03:29:12Z",
                "message": "ReplicaSet \"queue-58f7d7b9db\" has successfully progressed.",
                "reason": "NewReplicaSetAvailable",
                "status": "True",
                "type": "Progressing"
            }
        ],
        "observedGeneration": 2,
        "readyReplicas": 1,
        "replicas": 1,
        "terminatingReplicas": 0,
        "updatedReplicas": 1
    }
}


03:29:17.824 $ kubectl --context kind-hip0025-e2e get Deployment app -n e2e-pr2-upgrade-follows-group-order -o json
[exit 0, 0.0s]
{
    "apiVersion": "apps/v1",
    "kind": "Deployment",
    "metadata": {
        "annotations": {
            "deployment.kubernetes.io/revision": "2",
            "helm.sh/resource-group": "app",
            "meta.helm.sh/release-name": "r",
            "meta.helm.sh/release-namespace": "e2e-pr2-upgrade-follows-group-order",
            "patch-marker": "v2"
        },
        "creationTimestamp": "2026-11-02T03:29:04Z",
        "generation": 2,
        "labels": {
            "app.kubernetes.io/managed-by": "Helm"
        },
        "name": "app",
        "namespace": "e2e-pr2-upgrade-follows-group-order",
        "resourceVersion": "9796",
        "uid": "d965ab65-10e3-4c9f-92d0-20096135756b"
    },
    "spec": {
        "progressDeadlineSeconds": 600,
        "replicas": 1,
        "revisionHistoryLimit": 10,
        "selector": {
            "matchLabels": {
                "app": "app"
            }
        },
        "strategy": {
            "rollingUpdate": {
                "maxSurge": "25%",
                "maxUnavailable": "25%"
            },
            "type": "RollingUpdate"
        },
        "template": {
            "metadata": {
                "annotations": {
                    "patch-marker": "v2"
                },
                "labels": {
                    "app": "app"
                }
            },
            "spec": {
                "containers": [
                    {
                        "env": [
                            {
                                "name": "PATCH_VALUE",
                                "value": "v2"
                            }
                        ],
                        "image": "nginx:1.27-alpine",
                        "imagePullPolicy": "IfNotPresent",
                        "name": "web",
                        "readinessProbe": {
                            "failureThreshold": 3,
                            "httpGet": {
                                "path": "/",
                                "port": 80,
                                "scheme": "HTTP"
                            },
                            "initialDelaySeconds": 3,
                            "periodSeconds": 1,
                            "successThreshold": 1,
                            "timeoutSeconds": 1
                        },
                        "resources": {},
                        "terminationMessagePath": "/dev/termination-log",
                        "terminationMessagePolicy": "File"
                    }
                ],
                "dnsPolicy": "ClusterFirst",
                "restartPolicy": "Always",
                "schedulerName": "default-scheduler",
                "securityContext": {},
                "terminationGracePeriodSeconds": 0
            }
        }
    },
    "status": {
        "availableReplicas": 1,
        "conditions": [
            {
                "lastTransitionTime": "2026-11-02T03:29:08Z",
                "lastUpdateTime": "2026-11-02T03:29:08Z",
                "message": "Deployment has minimum availability.",
                "reason": "MinimumReplicasAvailable",
                "status": "True",
                "type": "Available"
            },
            {
                "lastTransitionTime": "2026-11-02T03:29:04Z",
                "lastUpdateTime": "2026-11-02T03:29:16Z",
                "message": "ReplicaSet \"app-6b6c9d6f6b\" has successfully progressed.",
                "reason": "NewReplicaSetAvailable",
                "status": "True",
                "type": "Progressing"
            }
        ],
        "observedGeneration": 2,
        "readyReplicas": 1,
        "replicas": 1,
        "terminatingReplicas": 0,
        "updatedReplicas": 1
    }
}


03:29:18.882 $ kubectl --context kind-hip0025-e2e delete namespace e2e-pr2-upgrade-follows-group-order --wait=false
[exit 0, 0.1s]
namespace "e2e-pr2-upgrade-follows-group-order" deleted


Files

FileSizeContent
audit.jsonl 466.8 KB 87 kube-apiserver audit records for the namespace of the test
commands.log 12.7 KB the commands above
observations.json 864 B the observations above, as JSON