rain 🌦️ :verified_trans: · @rain
802 followers · 346 posts · Server hachyderm.io

Looks like Chromium's crosvm (chromium.googlesource.com/chro) just added support for running tests via ! Using nextest's build reuse functionality, they were able to achieve 5-10x performance improvements in their test runs.

chromium-review.googlesource.c

#nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
665 followers · 216 posts · Server hachyderm.io

In the post I show how async solves practical select problems in , and does so in a deeply principled, composable manner. I'm really proud of it because I've taken a view that has been talked about in 1:1 messages and discussions in the past, but hasn't really been written down like this before to the best of my knowledge.

#rustlang #nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
666 followers · 215 posts · Server hachyderm.io

Reupping a post I wrote a few months ago: How and why uses .

This post delves right into the heart of why async Rust exists: to perform *heterogenous selects*. Previous explanations have always been a bit unsatisfying for me. It's more efficient than OS threads, but is that really it? In reality, async Rust satisfies a fundamental need that no other paradigm does, which is to use tokio::select! across arbitrary async sources and platforms.

sunshowers.io/posts/nextest-an

#nextest #rustlang #tokio

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
592 followers · 145 posts · Server hachyderm.io

Would you find setup and teardown scripts useful for test runs? Please upvote and comment in this issue with your use cases! Contributions and design suggestions would be welcome as well, especially if you've had practical experience with setup and teardown scripts for (e.g.) integration tests.

Please boost for reach!

github.com/nextest-rs/nextest/

#rustlang #nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
592 followers · 144 posts · Server hachyderm.io

One of the ways I disagree with many of my esteemed fellow Rust people is that I think is great. Switching over to Rust has yielded incredible dividends, including but not limited to what I described in sunshowers.io/posts/nextest-an.

The ability to write cross-platform heterogenous selects provides an extraordinary amount of power.

BTW, now that I'm at @oxidecomputer, I've been trying out nextest on and it works with zero (0) code changes!

#async #rustlang #nextest #asynchronous #illumos

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
515 followers · 111 posts · Server hachyderm.io

Hi friends, if you're managing an or project please tag every release you make. It's really helpful for inspecting source code and finding regressions.

has its automated release flow be triggered by tag pushes, which means that creating and pushing tags (managed by cargo-release) is an essential part of the process. Feel free to adapt nextest's release flow to your liking!

github.com/nextest-rs/nextest/

github.com/nextest-rs/nextest/

#opensource #foss #nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
467 followers · 94 posts · Server hachyderm.io

If you're using in a corporate or controlled open-source CI environment, you could try a staged rollout. Roll this out to a percentage of users or CI jobs, then see if anything breaks. Thanks!

#nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
472 followers · 94 posts · Server hachyderm.io

cargo-nextest 0.9.44 is out! A call for testing:

This version of my next-gen supports pausing and resuming test runs on Unix ().

To make this work reliably, needs to use a "double-spawn" approach. This is currently off by default but can be turned on with an env var, `NEXTEST_EXPERIMENTAL_DOUBLE_SPAWN=1`.

Call for testing: If you're on Unix, please help test this! Update to 0.9.44, then set this environment variable. Thanks!

nexte.st/CHANGELOG.html#0944--

#rustlang #testrunner #NextestCtrlZ #nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
433 followers · 67 posts · Server hachyderm.io

How good is these days? The occasional times I have to use for are so frustrating. cmd sucks, git bash is too basic for me.

#MSYS #windows #nextest

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
434 followers · 77 posts · Server hachyderm.io

Part 4 of my post is out! This one covers some really fun issues with hung processes that I ran into.

The post also introduces strace as a debugging tool on Linux.

cohost.org/sunshowers/post/390

#rustlang #nextest #unix #NextestCtrlZ

Last updated 2 years ago

rain 🌦️ :verified_trans: · @rain
379 followers · 59 posts · Server hachyderm.io

Next post in the series coming tomorrow on cohost.org/sunshowers! Some quotes from the current draft:

"And strace just hangs as well.

*Oh no. It's spreading.*"

"So that would explain why SIGTSTP didn't work: it's a signal, which is an *interrupt*.

An immovable object meets an unstoppable force. Except the object won, and the force was stoppable after all."

#rustlang #unix #nextest #NextestCtrlZ

Last updated 2 years ago

Michael Alyn Miller · @malyn
7 followers · 3 posts · Server hachyderm.io

@rain Thanks so much for ! Just today I was benefitting from the fact that it runs every test in a separate process; such a key feature when you have to do messy things like test code in the presence of environment variables...

#nextest

Last updated 2 years ago

rain 🌦️ · @rain
20 followers · 3 posts · Server hachyderm.io

Over at Cohost, I've been making a series of posts about making nextest handle ctrl-z. Today's post is about *process groups*: why they exist and how nextest interacts with them.

cohost.org/sunshowers/post/303

You can find the full series of posts under Cohost's -ctrl-z tag.

#nextest #rust #unix

Last updated 2 years ago