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

ci: fix duplicated rust suites test #1078

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

tungbq
Copy link
Contributor

@tungbq tungbq commented Feb 23, 2024

Closes: #1077
ci: fix duplicated rust suites test
Only the extensions tests

run: |
cd ext/crr/rs/core
cargo test --features=loadable_extension

Copy link
Member

Choose a reason for hiding this comment

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

hey, this should not be removed

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 reverted this! Thanks

cargo test --features extensions
Copy link
Member

Choose a reason for hiding this comment

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

this part targets all tests, including the one in extensions module.

What we want is, just run the extensions module tests, but nothing else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, I do not familiar with the Rust and Rust test command, just trying to work on the CI side but it seems complicated than I thought. So was not able to figure out the right cargo test command to run the extensions module tests only so far. If you have any hint or document related to this, please let me know. Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

docs: https://doc.rust-lang.org/cargo/commands/cargo-test.html#target-selection

something like this would work:

cargo test --features extensions --test tests extensions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I will check it to find the appropriate command for this case.

Copy link
Contributor Author

@tungbq tungbq Feb 24, 2024

Choose a reason for hiding this comment

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

I've found the command to run only extension test, it works on my forked repo:
cargo test --features=extensions extensions
https://github.com/tungbq/libsql/actions/runs/8028972291/job/21934748847#step:6:474
image
Hi @avinassh please help review again! Thanks

Copy link
Member

Choose a reason for hiding this comment

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

@tungbq looks great! can you squash all the commits into a single one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's done @avinassh

@tungbq tungbq requested a review from avinassh February 24, 2024 07:16
@tungbq tungbq force-pushed the fix-duplicated-test branch from 30dca7f to 272d1a4 Compare February 27, 2024 12:05
@avinassh avinassh added this pull request to the merge queue Feb 27, 2024
Merged via the queue into tursodatabase:main with commit 29749f2 Feb 27, 2024
16 checks passed
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.

Rust suite tests are running twice
2 participants