-
Notifications
You must be signed in to change notification settings - Fork 333
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
test(integration): add pg kvbackend #5331
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -703,6 +703,25 @@ jobs: | |
GT_KAFKA_ENDPOINTS: 127.0.0.1:9092 | ||
GT_KAFKA_SASL_ENDPOINTS: 127.0.0.1:9093 | ||
UNITTEST_LOG_DIR: "__unittest_logs" | ||
- name: Run integration test with pg kvbackend | ||
run: cargo test integration | ||
env: | ||
CARGO_BUILD_RUSTFLAGS: "-C link-arg=-fuse-ld=mold" | ||
RUST_BACKTRACE: 1 | ||
CARGO_INCREMENTAL: 0 | ||
GT_S3_BUCKET: ${{ vars.AWS_CI_TEST_BUCKET }} | ||
GT_S3_ACCESS_KEY_ID: ${{ secrets.AWS_CI_TEST_ACCESS_KEY_ID }} | ||
GT_S3_ACCESS_KEY: ${{ secrets.AWS_CI_TEST_SECRET_ACCESS_KEY }} | ||
GT_S3_REGION: ${{ vars.AWS_CI_TEST_BUCKET_REGION }} | ||
GT_MINIO_BUCKET: greptime | ||
GT_MINIO_ACCESS_KEY_ID: superpower_ci_user | ||
GT_MINIO_ACCESS_KEY: superpower_password | ||
GT_MINIO_REGION: us-west-2 | ||
GT_MINIO_ENDPOINT_URL: http://127.0.0.1:9000 | ||
GT_POSTGRES_ENDPOINTS: postgres://greptimedb:[email protected]:5432/postgres | ||
GT_KAFKA_ENDPOINTS: 127.0.0.1:9092 | ||
GT_KAFKA_SASL_ENDPOINTS: 127.0.0.1:9093 | ||
UNITTEST_LOG_DIR: "__unittest_logs" | ||
- name: Codecov upload | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will double our runner time and CI cost. We need figure out a way to run this effectively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not double actually, but still quite slow
Besides, I doubt if the pg kvbackend is actually running, I didn't see the info logs that tells me which backend it's using...
If we'd like to run integration test over pg kvbackend, the cost seems unevitable. I wonder if there's a method that we can run it when something related to pg_kvbackend features have been changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this to a separated task that uses free runner (
ubuntu-latest
) to see if it's capable to run this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite reasonable for me. I'll have a try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also remember to change the command from
cargo test integration
tocd tests-integration && cargo nextest run
. This will reduce test binaries required to compile and link.