test(serverless-spark): run tests sequentially for CI#2603
test(serverless-spark): run tests sequentially for CI#2603duwenxin99 merged 2 commits intogoogleapis:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request optimizes the continuous integration process for Serverless Spark integration tests by enforcing sequential execution. This change aims to reduce Google Cloud Engine (GCE) CPU quota consumption and mitigate intermittent test failures (flakes) that were occurring due to parallel test runs exceeding resource limits. The modification ensures more stable and resource-efficient CI builds without impacting interactive development speed. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to run the serverless-spark integration tests sequentially in CI to avoid GCE CPU quota issues. The change introduces an EXTRA_TEST_ARGS environment variable in the Cloud Build configuration and uses it in the test script. The approach is sound, but the implementation in the shell script could be made more robust. I've provided a suggestion to improve the handling of extra test arguments to prevent potential issues with arguments containing spaces in the future.
Running tests in parallel consumes more GCE CPU quota, and we're occasionally getting flakes due to exceeding the default. This still may be the right tradeoff for speed of interactive development, but these aren't (yet) the slowest integration tests, so running sequentially will preserve quota without increasing CI walltime.
f287ad7 to
c782cc1
Compare
|
/gcbrun |
1 similar comment
|
/gcbrun |
|
FYI the serverless-spark tests now take 6 minutes to run sequentially, comparable to BQ (6-7m) and faster than Spanner (10m) |
…apis#2603) Running tests in parallel consumes more GCE CPU quota, and we're occasionally getting flakes due to exceeding the default. This still may be the right tradeoff for speed of interactive development, but these aren't (yet) the slowest integration tests, so running sequentially will preserve quota without increasing CI walltime. ## Description > Should include a concise description of the changes (bug or feature), it's > impact, along with a summary of the solution ## PR Checklist > Thank you for opening a Pull Request! Before submitting your PR, there are a > few things you can do to make sure it goes smoothly: - [ ] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md) - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Make sure to add `!` if this involve a breaking change 🛠️ Fixes #<issue_number_goes_here> a8edb79
Running tests in parallel consumes more GCE CPU quota, and we're occasionally getting flakes due to exceeding the default. This still may be the right tradeoff for speed of interactive development, but these aren't (yet) the slowest integration tests, so running sequentially will preserve quota without increasing CI walltime. ## Description > Should include a concise description of the changes (bug or feature), it's > impact, along with a summary of the solution ## PR Checklist > Thank you for opening a Pull Request! Before submitting your PR, there are a > few things you can do to make sure it goes smoothly: - [ ] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md) - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Make sure to add `!` if this involve a breaking change 🛠️ Fixes #<issue_number_goes_here>
Running tests in parallel consumes more GCE CPU quota, and we're occasionally getting flakes due to exceeding the default. This still may be the right tradeoff for speed of interactive development, but these aren't (yet) the slowest integration tests, so running sequentially will preserve quota without increasing CI walltime. ## Description > Should include a concise description of the changes (bug or feature), it's > impact, along with a summary of the solution ## PR Checklist > Thank you for opening a Pull Request! Before submitting your PR, there are a > few things you can do to make sure it goes smoothly: - [ ] Make sure you reviewed [CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md) - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) - [ ] Make sure to add `!` if this involve a breaking change 🛠️ Fixes #<issue_number_goes_here>
Running tests in parallel consumes more GCE CPU quota, and we're occasionally getting flakes due to exceeding the default. This still may be the right tradeoff for speed of interactive development, but these aren't (yet) the slowest integration tests, so running sequentially will preserve quota without increasing CI walltime.
Description
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
!if this involve a breaking change🛠️ Fixes #<issue_number_goes_here>