Skip to content

Commit 79403c7

Browse files
committed
fix
1 parent 8a725d4 commit 79403c7

File tree

3 files changed

+170
-176
lines changed

3 files changed

+170
-176
lines changed

ci/nightly/pipeline.template.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,18 +2320,6 @@ steps:
23202320
agents:
23212321
queue: hetzner-aarch64-16cpu-32gb
23222322

2323-
- id: orchestratord-upgrade-defaults
2324-
label: "Orchestratord test (upgrade, defaults)"
2325-
depends_on: build-aarch64
2326-
timeout_in_minutes: 180
2327-
plugins:
2328-
- ./ci/plugins/mzcompose:
2329-
composition: orchestratord
2330-
args: [--action=upgrade, --properties=defaults, --runtime=7200, --recreate-cluster]
2331-
ci-builder: stable
2332-
agents:
2333-
queue: hetzner-aarch64-8cpu-16gb
2334-
23352323
- id: orchestratord-upgrade-individual
23362324
label: "Orchestratord test (upgrade, individual props)"
23372325
depends_on: build-aarch64
@@ -2356,18 +2344,6 @@ steps:
23562344
agents:
23572345
queue: hetzner-aarch64-8cpu-16gb
23582346

2359-
- id: orchestratord-upgrade-chain-defaults
2360-
label: "Orchestratord test (upgrade chain, defaults)"
2361-
depends_on: build-aarch64
2362-
timeout_in_minutes: 180
2363-
plugins:
2364-
- ./ci/plugins/mzcompose:
2365-
composition: orchestratord
2366-
args: [--action=upgrade-chain, --properties=defaults, --runtime=7200, --recreate-cluster]
2367-
ci-builder: stable
2368-
agents:
2369-
queue: hetzner-aarch64-8cpu-16gb
2370-
23712347
- id: orchestratord-upgrade-chain-individual
23722348
label: "Orchestratord test (upgrade chain, individual props)"
23732349
depends_on: build-aarch64

ci/plugins/mzcompose/hooks/command

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,13 @@ cleanup() {
134134
ci_unimportant_heading "orchestratord test: Uploading logs..."
135135
K8S_CLUSTER_NAME=kind
136136
K8S_CONTEXT="kind-$K8S_CLUSTER_NAME"
137-
for pod in $(kubectl get pods -o name | grep -v -E 'kubernetes|minio|cockroach|redpanda'); do
138-
kubectl logs --prefix=true "$pod" &>> kubectl-get-logs.log || true
139-
kubectl logs --previous --prefix=true "$pod" &>> kubectl-get-logs-previous.log || true
137+
for pod in $(kubectl get pods -o name -n materialize | grep -v -E 'kubernetes|minio|cockroach|redpanda'); do
138+
kubectl logs --prefix=true "$pod" -n materialize &>> kubectl-get-logs.log || true
139+
kubectl logs --previous --prefix=true "$pod" -n materialize &>> kubectl-get-logs-previous.log || true
140140
done
141-
kubectl get events > kubectl-get-events.log || true
142-
kubectl get all > kubectl-get-all.log || true
143-
kubectl get events > kubectl-get-events.log || true
144-
kubectl get all > kubectl-get-all.log || true
145-
kubectl describe all | awk '
141+
kubectl get events -n materialize > kubectl-get-events.log || true
142+
kubectl get all -n materialize > kubectl-get-all.log || true
143+
kubectl describe all -n materialize | awk '
146144
BEGIN { redact=0 }
147145
/^[[:space:]]*Environment:/ {
148146
indent = match($0, /[^ ]/) - 1
@@ -160,13 +158,35 @@ cleanup() {
160158
}
161159
{ print }
162160
' > kubectl-describe-all.log || true
163-
kubectl get pods -o wide > kubectl-pods-with-nodes.log || true
161+
kubectl get pods -o wide -n materialize > kubectl-pods-with-nodes.log || true
164162

165-
kubectl -n kube-system get events > kubectl-get-events-kube-system.log || true
166-
kubectl -n kube-system get all > kubectl-get-all-kube-system.log || true
167-
kubectl -n kube-system describe all > kubectl-describe-all-kube-system.log || true
163+
for pod in $(kubectl get pods -o name -n materialize-environment | grep -v -E 'kubernetes|minio|cockroach|redpanda'); do
164+
kubectl logs --prefix=true "$pod" -n materialize-environment &>> kubectl-get-logs-environment.log || true
165+
kubectl logs --previous --prefix=true "$pod" -n materialize-environment &>> kubectl-get-logs-previous-environment.log || true
166+
done
167+
kubectl get events -n materialize-environment > kubectl-get-events-environment.log || true
168+
kubectl get all -n materialize-environment > kubectl-get-all-environment.log || true
169+
kubectl describe all -n materialize-environment | awk '
170+
BEGIN { redact=0 }
171+
/^[[:space:]]*Environment:/ {
172+
indent = match($0, /[^ ]/) - 1
173+
print substr($0, 1, indent) "Environment: [REDACTED]"
174+
redact = 1
175+
next
176+
}
177+
redact {
178+
current_indent = match($0, /[^ ]/) - 1
179+
if (current_indent <= indent || NF == 0) {
180+
redact = 0
181+
} else {
182+
next
183+
}
184+
}
185+
{ print }
186+
' > kubectl-describe-all-environment.log || true
187+
kubectl get pods -o wide -n materialize-environment > kubectl-pods-with-nodes-environment.log || true
168188

169-
mapfile -t artifacts < <(printf "kubectl-get-logs.log\nkubectl-get-logs-previous.log\nkubectl-get-events.log\nkubectl-get-all.log\nkubectl-describe-all.log\nkubectl-pods-with-nodes.log\nkubectl-get-events-kube-system.log\nkubectl-get-all-kube-system.log\nkubectl-describe-all-kube-system.log\nkail-output.log\n")
189+
mapfile -t artifacts < <(printf "kubectl-get-logs.log\nkubectl-get-logs-previous.log\nkubectl-get-events.log\nkubectl-get-all.log\nkubectl-describe-all.log\nkubectl-pods-with-nodes.log\nkubectl-get-logs-environment.log\nkubectl-get-logs-previous-environment.log\nkubectl-get-events-environment.log\nkubectl-get-all-environment.log\nkubectl-describe-all-environment.log\nkubectl-pods-with-nodes-environment.log\n")
170190
artifacts_str=$(IFS=";"; echo "${artifacts[*]}")
171191
buildkite-agent artifact upload "$artifacts_str"
172192
unset artifacts

0 commit comments

Comments
 (0)