dongjoon-hyun opened a new pull request, #846: URL: https://github.com/apache/spark-kubernetes-operator/pull/846
### What changes were proposed in this pull request? This PR makes `AppDriverStartObserver` observe the driver start only. The driver termination is observed by `AppDriverReadyObserver`, which always runs with it in the same step. The unused `driverReady` parameter of `BaseAppDriverObserver.observeDriverTermination` is removed. ### Why are the changes needed? When the operator first sees a driver pod that has already completed in the `DriverRequested` state, both observers report a terminal state. As a result, a succeeded application records a spurious `Failed` state before `Succeeded`. This happens with a short application that is rate-limited, such as a Kueue-queued one, or when the operator restarts. ### Does this PR introduce _any_ user-facing change? Yes. The final state is unchanged. Only the state transition history is fixed. - Before: `DriverRequested -> Failed -> Succeeded` - After: `DriverRequested -> Succeeded` ### How was this patch tested? Pass the CIs with the newly added test cases in `AppResourceObserveStepTest`. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
