-
Notifications
You must be signed in to change notification settings - Fork 330
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
Conversation
run: | | ||
cd ext/crr/rs/core | ||
cargo test --features=loadable_extension | ||
|
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.
hey, this should not be removed
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.
I reverted this! Thanks
cargo test --features extensions |
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 part targets all tests, including the one in extensions module.
What we want is, just run the extensions module tests, but nothing else.
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.
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!
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.
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
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.
Thanks, I will check it to find the appropriate command for this case.
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.
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
Hi @avinassh please help review again! Thanks
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.
@tungbq looks great! can you squash all the commits into a single one?
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.
It's done @avinassh
30dca7f
to
272d1a4
Compare
Closes: #1077
ci: fix duplicated rust suites test
Only the
extensions
tests