Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(test): refactor scaling tests for arrangement backfill #14577

Merged
merged 10 commits into from
Jan 16, 2024

Conversation

kwannoel
Copy link
Contributor

@kwannoel kwannoel commented Jan 15, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Only tests on no_shuffle opt-in to use no_shuffle_backfill. For the other tests, we can let them remain as-is.

We also add in a new test to test compatibility of arrangement backfill with auto parallelism and low-level scaling interface.

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@kwannoel kwannoel marked this pull request as ready for review January 16, 2024 01:16
@kwannoel
Copy link
Contributor Author

Tested with arrangement backfill here 03ba6bf

src/tests/simulation/src/cluster.rs Show resolved Hide resolved
@@ -32,6 +32,7 @@ const MV5: &str = "create materialized view m5 as select * from m4;";
async fn test_simple_cascade_materialized_view() -> Result<()> {
let mut cluster = Cluster::start(Configuration::for_scale()).await?;
let mut session = cluster.start_session();
let arrangement_backfill_is_enabled = session.is_arrangement_backfill_enabled().await?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why could this vary during runtime? Didn't quite get it. 😕

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume it's for the tests to pass when the default value for enable_arrangment_backfill is set to true manually.

Can we integrate the tests with arrangement backfill into CI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume it's for the tests to pass when the default value for enable_arrangment_backfill is set to true manually.

Can we integrate the tests with arrangement backfill into CI?

Yeah that's correct. Will do in separate PR, requires more refactor.

@kwannoel kwannoel added this pull request to the merge queue Jan 16, 2024
@kwannoel kwannoel removed this pull request from the merge queue due to a manual request Jan 16, 2024
@kwannoel kwannoel force-pushed the kwannoel/arrangement-backfill-scale branch from c900f45 to 9e8400d Compare January 16, 2024 07:32
Copy link
Contributor

@shanicky shanicky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kwannoel kwannoel added this pull request to the merge queue Jan 16, 2024
Merged via the queue into main with commit 08a08b4 Jan 16, 2024
26 of 27 checks passed
@kwannoel kwannoel deleted the kwannoel/arrangement-backfill-scale branch January 16, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants