mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
testops: collect failure snapshot in support bundle gate
This commit is contained in:
1 parent
5fe469c3a4
commit
eb8e80d177
2 files changed
+54
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
# Current Plan: Phase 33 - TestOps Failure Hardening
|
||||
|
||||
Status: active, 30% complete. Started on 2026-05-27.
|
||||
Status: active, 35% complete. Started on 2026-05-27.
|
||||
|
||||
Branch: `phase33-testops-failure-hardening`
|
||||
|
||||
@@ -182,5 +182,7 @@ release claims updated or explicitly unchanged
|
||||
- 10%: Phase 33 scope, D1-D5 gates, and roadmap pointers drafted.
|
||||
- 20%: D1 failure matrix drafted.
|
||||
- 30%: D2 failure snapshot helper and contract test added.
|
||||
- 35%: F1 support-bundle diagnostics gate wired to collect the failure
|
||||
snapshot contract.
|
||||
|
||||
Next step: D2 runner/helper hardening for the P0 gates.
|
||||
@@ -194,6 +194,57 @@ phases:
|
||||
actual: "{{ blocked_image_pull_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: failure_snapshot
|
||||
actions:
|
||||
- action: exec
|
||||
node: m02
|
||||
timeout: 3m
|
||||
cmd: "cd {{ product_root }} && bash scripts/collect-k8s-failure-snapshot.sh {{ product_root }}"
|
||||
env.KUBECONFIG: "/etc/rancher/k3s/k3s.yaml"
|
||||
env.SW_BLOCK_FAILURE_SNAPSHOT_OUT: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot"
|
||||
env.SW_BLOCK_HELM_RELEASE: "{{ helm_release }}"
|
||||
env.SW_BLOCK_HELM_NAMESPACE: "{{ helm_namespace }}"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/failure-snapshot-summary.txt"
|
||||
pattern: "^read_only=true$"
|
||||
save_as: failure_snapshot_readonly_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_readonly_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/k8s/events-all.txt"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_events_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_events_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/logs/csi-node.current.log"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_csi_log_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_csi_log_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/host/iscsi-nodes.txt"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_iscsi_nodes_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_iscsi_nodes_count }}"
|
||||
threshold: "0"
|
||||
- action: grep_log
|
||||
node: m02
|
||||
path: "/mnt/smb/work/share/g15d-k8s/{{ run_id }}-helm-support-bundle/failure-snapshot/host/processes.txt"
|
||||
pattern: "."
|
||||
save_as: failure_snapshot_process_count
|
||||
- action: assert_greater
|
||||
actual: "{{ failure_snapshot_process_count }}"
|
||||
threshold: "0"
|
||||
|
||||
- name: helm_uninstall_cleanup
|
||||
always: true
|
||||
actions:
|
||||
|
||||
Reference in new issue
Block a user