diff options
| author | TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> | 2026-12-02 04:57:39 +0100 |
|---|---|---|
| committer | TheGeogeo <57634077+TheGeogeo@users.noreply.github.com> | 2026-12-02 05:19:44 +0100 |
| commit | fc0ce37ac47d4e0c57308bf24ced4a090ecbe1ea (patch) | |
| tree | df69844db97b36c526650c68fbb61cd515b6ae62 /docs/testing.md | |
| parent | 4a0aa701d04616e4b2024f90390f67b2ba576bac (diff) | |
scripts: red_green.py reports a cargo run stopped before any test ran as timed out building, not caught (review)
A mutated cargo run that times out before its first Running line was still a build: it says nothing about the tests, so it is no longer counted as caught by timeout. A stub cargo that hangs in its build or in a test binary now covers the cargo timeout path, which no test reached before.
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/testing.md b/docs/testing.md index 339283e1b..becb61310 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -173,9 +173,10 @@ python -I scripts/red_green.py <pull request number> | |||
| 173 | Rust or Python code outside its tests (a test-only one, whose `no red` then says nothing against its test), or | 173 | Rust or Python code outside its tests (a test-only one, whose `no red` then says nothing against its test), or |
| 174 | `not run` when no test went red then green. `--json` has these in `mutations_not_run` and `added_not_mutated`. | 174 | `not run` when no test went red then green. `--json` has these in `mutations_not_run` and `added_not_mutated`. |
| 175 | - Each command of a mutated run (`cargo test`, one Python test file) is stopped with the processes it started after | 175 | - Each command of a mutated run (`cargo test`, one Python test file) is stopped with the processes it started after |
| 176 | `--mutate-timeout` seconds (600), and the hunk is `caught by timeout`: the undone code made a test hang, or the | 176 | `--mutate-timeout` seconds (600). The hunk is then `caught by timeout` when a test was running (the undone code |
| 177 | build took longer than that (raise the option for a crate that builds slowly). When the command ends, the | 177 | made it hang), or `timed out building` when cargo had not started a test yet, which says nothing about the tests |
| 178 | processes it left behind are stopped too (a Windows job object, the process group elsewhere). | 178 | (raise the option for a crate that builds slowly). When the command ends, the processes it left behind are |
| 179 | stopped too (a Windows job object, the process group elsewhere). | ||
| 179 | - `--crate <name>` adds a crate, `--no-cargo` or `--no-python` leaves one kind out, `--base <ref>` tests on another | 180 | - `--crate <name>` adds a crate, `--no-cargo` or `--no-python` leaves one kind out, `--base <ref>` tests on another |
| 180 | base, and `--no-fetch` uses the refs as they are. | 181 | base, and `--no-fetch` uses the refs as they are. |
| 181 | 182 | ||