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

chore: Try out nextest in CI #11692

Merged
merged 9 commits into from
Mar 8, 2022
Merged

chore: Try out nextest in CI #11692

merged 9 commits into from
Mar 8, 2022

Conversation

jszwedko
Copy link
Member

@jszwedko jszwedko commented Mar 4, 2022

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:

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]

@netlify
Copy link

netlify bot commented Mar 4, 2022

✔️ Deploy Preview for vector-project canceled.

🔨 Explore the source changes: 1715fdb

🔍 Inspect the deploy log: https://app.netlify.com/sites/vector-project/deploys/62268c5a45671d0007a413d1

@github-actions github-actions bot added the domain: ci Anything related to Vector's CI environment label Mar 4, 2022
@github-actions github-actions bot added the domain: vrl Anything related to the Vector Remap Language label Mar 4, 2022
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]>
@jszwedko jszwedko marked this pull request as ready for review March 7, 2022 22:43
@@ -816,44 +816,37 @@ enrichment-tables-benches = ["enrichment-tables-file"]
[[bench]]
name = "default"
harness = false
test = true
Copy link
Member Author

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

Copy link
Contributor

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]>
Copy link
Contributor

@spencergilbert spencergilbert left a 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

Copy link
Contributor

@blt blt left a 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
Copy link
Contributor

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.

@jszwedko jszwedko merged commit 752fc47 into master Mar 8, 2022
@jszwedko jszwedko deleted the try-out-nextest branch March 8, 2022 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: ci Anything related to Vector's CI environment domain: vrl Anything related to the Vector Remap Language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try out nextest as a test runner
3 participants