Commit eb5b90d
committed
[SPARK-56142] Add worker StatefulSet replica validation to
### What changes were proposed in this pull request?
This PR adds a worker StatefulSet replica validation to the SparkCluster e2e test. A new assertion file (`spark-cluster-worker-statefulset.yaml`) verifies that the worker StatefulSet's `spec.replicas` and `status.readyReplicas` match the `initWorkers` configuration.
### Why are the changes needed?
The existing SparkCluster e2e test only validates the state transition history (`Submitted` → `RunningHealthy`). It does not verify that the worker StatefulSet is actually created with the correct number of replicas. This gap means the test could pass even if the worker scaling is broken.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Pass the CIs with the newly added validation.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 4.6)
Closes #577 from dongjoon-hyun/SPARK-56142.
Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>SparkCluster e2e test1 parent 56e75a8 commit eb5b90d
2 files changed
Lines changed: 32 additions & 0 deletions
File tree
- tests/e2e
- assertions/spark-cluster
- state-transition
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
0 commit comments