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

more prep work #1918

Merged
merged 4 commits into from
Nov 29, 2024
Merged

more prep work #1918

merged 4 commits into from
Nov 29, 2024

Conversation

sunshowers
Copy link
Member

@sunshowers sunshowers commented Nov 29, 2024

Been splitting and landing chunks of work out of #1911 as atomic commits.

Switch to it mostly for the `io::Write` impl, which some upcoming work needs.
Going to reuse this code for interactive info queries soon.

Also do a small output change, going from

```
--- STDOUT:        name of test ---
```

to

```
---- STDOUT:       name of test
```

The trailing `---` doesn't look great, and the extra hyphen in the beginning
aligns `STDOUT:` properly.
* Add a `ChildAccumulator` struct that tracks the fds, output and errors
  externally. Tracking all this data externally means that interactive
  queries about the output can be satisfied.
* Continue collecting output while the process is being terminated --
  again to ensure that interactive queries are up-to-date.
* Make `ChildError` cloneable by wrapping all the errors in `Arc`.

child error handling 2
If we receive a stop or continue signal during terminate_child, it's important
to account for that within the stopwatch.
@sunshowers
Copy link
Member Author

The test coverage issue is taiki-e/cargo-llvm-cov#400.

@sunshowers sunshowers merged commit 425aefd into nextest-rs:main Nov 29, 2024
14 of 15 checks passed
@sunshowers sunshowers deleted the terminate-child branch November 29, 2024 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant