-
Notifications
You must be signed in to change notification settings - Fork 1.7k
chore: Try out nextest in CI #11692
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
chore: Try out nextest in CI #11692
Conversation
✔️ Deploy Preview for vector-project canceled. 🔨 Explore the source changes: 1715fdb 🔍 Inspect the deploy log: https://app.netlify.com/sites/vector-project/deploys/62268c5a45671d0007a413d1 |
1e47b47
to
098e84c
Compare
Starting with flakey test retries. Signed-off-by: Jesse Szwedko <[email protected]>
`nextest` doesn't work with criterion benches: nextest-rs/nextest#96 Signed-off-by: Jesse Szwedko <[email protected]>
Since criterion doesn't support the flags mentioned on https://nexte.st/book/custom-test-harnesses.html Signed-off-by: Jesse Szwedko <[email protected]>
31bc075
to
d48dad8
Compare
Signed-off-by: Jesse Szwedko <[email protected]>
Signed-off-by: Jesse Szwedko <[email protected]>
Signed-off-by: Jesse Szwedko <[email protected]>
Signed-off-by: Jesse Szwedko <[email protected]>
Signed-off-by: Jesse Szwedko <[email protected]>
@@ -816,44 +816,37 @@ enrichment-tables-benches = ["enrichment-tables-file"] | |||
[[bench]] | |||
name = "default" | |||
harness = false | |||
test = true |
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 dropped these because criterion
doesn't play well with nextest
yet: bheisler/criterion.rs#562
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 am okay with this, considering that we'll pick these up with clippy.
Signed-off-by: Jesse Szwedko <[email protected]>
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'd be happy to do the junit bits as well, given my previous experiences with it 👍
I've been testing this locally and it's been great - pending some higher up opinions on the benches and such it's got my approval
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.
Very cool.
@@ -816,44 +816,37 @@ enrichment-tables-benches = ["enrichment-tables-file"] | |||
[[bench]] | |||
name = "default" | |||
harness = false | |||
test = true |
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 am okay with this, considering that we'll pick these up with clippy.
I added flakey test retrying but otherwise haven't taken advantage of any other nextest features yet. I hope to expand this to output JUnit compatible output to integrate with Datadog's CI product. Even without that integration, I think this is a worthwhile change for the flakey test behavior and improved output so I think this can safely go in first.
There are a couple of things to be aware of:
cargo-nextest
doesn't support running docs tests so these are split out intomake test-docs
cargo-nextest
andcriterion
don't play well yet so this PR drops testing of benches.make check-clippy
should still ensure they compile though.Assuming we like this, I'll expand it out to the integration tests and see if I can get the JUnit parts wired up.
Closes: #11377
Signed-off-by: Jesse Szwedko [email protected]