Skip to content

branch-4.0: [fix](test) solve defined global variables in cloud_p0 suites#63607

Merged
yiguolei merged 1 commit into
branch-4.0from
fix-cloud-p0-global-variables
May 25, 2026
Merged

branch-4.0: [fix](test) solve defined global variables in cloud_p0 suites#63607
yiguolei merged 1 commit into
branch-4.0from
fix-cloud-p0-global-variables

Conversation

@hello-stephen
Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #xxx

In several cloud_p0 regression test suites, resp was assigned without the def keyword, making it an implicit global variable. This could cause interference between test cases when tests run in the same Groovy script context.

Fix by:

  1. Adding def keyword to declare resp as a local variable
  2. Removing trailing semicolons for consistency

Affects 23 files under regression-test/suites/cloud_p0/.

🤖 Generated with Claude Code

@hello-stephen
Copy link
Copy Markdown
Contributor Author

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

…ites

In several cloud_p0 regression test suites, 'resp' was assigned without the
'def' keyword, making it an implicit global variable. This could cause
interference between test cases when tests run in the same Groovy script context.

Also rename 'balance_tablet_percent_per_run' to 'cloud_balance_tablet_percent_per_run'
in table_rebalance.groovy to use the correct cloud-mode config key.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hello-stephen hello-stephen force-pushed the fix-cloud-p0-global-variables branch from efab03a to 83402da Compare May 25, 2026 09:01
@hello-stephen
Copy link
Copy Markdown
Contributor Author

skip buildall

@yiguolei yiguolei merged commit cd2bca0 into branch-4.0 May 25, 2026
31 of 33 checks passed
@hello-stephen hello-stephen deleted the fix-cloud-p0-global-variables branch May 25, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants