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

feat: add iceberg cdc test #12956

Merged
merged 4 commits into from
Oct 25, 2023
Merged

feat: add iceberg cdc test #12956

merged 4 commits into from
Oct 25, 2023

Conversation

ZENOTME
Copy link
Contributor

@ZENOTME ZENOTME commented Oct 19, 2023

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

What's changed and what's your intention?

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • 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.

@ZENOTME ZENOTME marked this pull request as ready for review October 19, 2023 05:09
@ZENOTME ZENOTME force-pushed the zj/cdc branch 4 times, most recently from 3d6df13 to 440a2d6 Compare October 19, 2023 07:53
@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Merging #12956 (288a836) into main (495ab39) will increase coverage by 0.00%.
Report is 38 commits behind head on main.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #12956   +/-   ##
=======================================
  Coverage   68.62%   68.63%           
=======================================
  Files        1496     1496           
  Lines      249967   249967           
=======================================
+ Hits       171540   171562   +22     
+ Misses      78427    78405   -22     
Flag Coverage Δ
rust 68.63% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@gitguardian
Copy link

gitguardian bot commented Oct 21, 2023

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id Secret Commit Filename
7648795 Generic CLI Secret 7431f34 integration_tests/iceberg-cdc/run_test.sh View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

@ZENOTME ZENOTME requested review from liurenjie1024 and wenym1 and removed request for liurenjie1024 October 23, 2023 01:20
Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

Generally LGTM, thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

docker/doceker-compose.yml use risingwave v1.2 and we haven't support iceberg upsert in that version. How about update it to v1.3?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should upgrade it to 1.3.

rw_config = args['risingwave']
cmd = f"sqllogictest -p {rw_config['port']} -d {rw_config['db']} {slt}"
print(f"Command line is [{cmd}]")
subprocess.run(cmd,
shell=True,
check=True)
time.sleep(10)
time.sleep(30)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need 30 seconds? How about modifying it to 15 secs?

set -ex

# Start test environment.
docker-compose up -d
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
docker-compose up -d
docker-compose up -d --wait

Wait for services to be ready.

docker-compose up -d

# Wait for the environment to be ready.
sleep 20;
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this

depends_on:
- minio-0
- rest
build: ./spark
Copy link
Contributor

Choose a reason for hiding this comment

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

How about using images from icelake repo directly?

Copy link
Contributor

@liurenjie1024 liurenjie1024 left a comment

Choose a reason for hiding this comment

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

LGTM, please add it to ci.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should upgrade it to 1.3.

integration_tests/iceberg-cdc/run_test.sh Show resolved Hide resolved
@ZENOTME ZENOTME force-pushed the zj/cdc branch 2 times, most recently from 98ddea4 to 2ae7b59 Compare October 24, 2023 14:08
@liurenjie1024 liurenjie1024 added this pull request to the merge queue Oct 25, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 25, 2023
@ZENOTME ZENOTME added this pull request to the merge queue Oct 25, 2023
Merged via the queue into main with commit 3e89c83 Oct 25, 2023
5 of 7 checks passed
@ZENOTME ZENOTME deleted the zj/cdc branch October 25, 2023 05:27
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.

2 participants