Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Serverless Spark integration tests in 'tests/serverlessspark/serverless_spark_integration_test.go'. It filters the batch list RPC to retrieve only batches with a 'SUCCEEDED' state. Additionally, it refactors 'runGetBatchTest' to fetch the expected batch details inside the test case execution loop rather than beforehand. I have no further feedback to provide as there are no review comments to evaluate.
Closed
3 of 7 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes a flake in
TestServerlessSparkToolEndpoints/parallel-tool-tests/get-batchintests/serverlessspark/serverless_spark_integration_test.go.Previously,
get-batchselected a target batch usinglistBatchesRpc(..., "", 1, true)with no state filter, which picks the most recently created batch in the shared test project. When concurrent CI runs create new batches, the newest batch is often in-flight (PENDING,RUNNING, orCANCELLING) and mutates (State,StateTime,StateHistory,RuntimeInfo) between the test's directclient.GetBatchcall and theget-batchtool invocation.Filtering
listBatchesRpcby"state = SUCCEEDED"and moving the baselineclient.GetBatchlookup into the subtest ensures the test compares against a batch in a terminal state.PR Checklist
CONTRIBUTING.md
bug/issue
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
review
!if this involve a breaking change🛠️ Fixes #<issue_number_goes_here>