-
Notifications
You must be signed in to change notification settings - Fork 45
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 label for skipif
and onlyif
conditions
#179
Conversation
/// | ||
/// The engine name is a label by default. | ||
#[clap(long = "label")] | ||
labels: Vec<String>, |
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.
Why it's Vec<String>
?
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.
Multiple labels are supported so that combinations are possible. e.g. risingwave
+ in-mem
for this use case. And I'd like to use labels java
/python
in UDF tests.
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.
Why not e.g., risingwave-in-mem? 🤪
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 think multi labels are more flexible. 🤪
validator: default_validator, | ||
column_type_validator: default_column_validator, | ||
testdir: None, | ||
sort_mode: None, | ||
hash_threshold: 0, | ||
labels: [db.engine_name().to_string()].into_iter().collect(), |
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.
Oh, I get it. So the labels are the trait method + others?
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'm not sure whether multiple labels are really needed, but OK to me.
Co-authored-by: xxchan <xxchan22f@gmail.com> Signed-off-by: Runji Wang <wangrunji0408@163.com>
@skyzh Could you publish the sqllogictest-engines and sqllogictest crate? Thanks! |
Published and added |
Users can now add
--label
options to skip commands. resolve #177For example:
This PR also bumps version to v0.14.0.