diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-12-01 15:06:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-12-01 15:06:18 +0100 |
| commit | b3910e5e3d6fdc3a77e84b8c7544cd27ed677d51 (patch) | |
| tree | e373ee7b4d114687e3050f3a6f7709fc60c8d261 /docs/testing.md | |
| parent | 3e7b34a52aed802e7d84cd9333cdfd0d194a723d (diff) | |
| parent | f442c3dfba5dca9dcf144ef71f1c52b6b3bd1cf1 (diff) | |
Merge pull request #2814 from TheGeogeo/test-red-green-compiler-crash
scripts: red_green.py tells a crashed compiler from a build error (TEST-RED-GREEN-COMPILER-CRASH)
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/testing.md b/docs/testing.md index ec629ccb3..abfd277cd 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -150,8 +150,11 @@ python -I scripts/red_green.py <pull request number> | |||
| 150 | target dir takes several GB; delete the folder (and run `git worktree prune`) when done. | 150 | target dir takes several GB; delete the folder (and run `git worktree prune`) when done. |
| 151 | - It prints the tests that go from red to green, those that pass on red and fail on green, those that fail on both | 151 | - It prints the tests that go from red to green, those that pass on red and fail on green, those that fail on both |
| 152 | (failing on `main` too), and those found on one side only. The verdict is one of: `red then green` (exit 0), | 152 | (failing on `main` too), and those found on one side only. The verdict is one of: `red then green` (exit 0), |
| 153 | `no red`, `red does not build`, `green fails`, `red not constructible`, `green not constructible`, `no tests ran` | 153 | `no red`, `red does not build`, `green fails`, `red not constructible`, `green not constructible`, `no tests ran`, |
| 154 | (exit 1). `--json` prints all of it. | 154 | `compiler crashed` (exit 1). `--json` prints all of it. |
| 155 | - A crashed compiler is not a build error: rustc or a build script ending with a Windows crash status (such as | ||
| 156 | 0xC0000005, an access violation), an internal compiler error, or a failed allocation. That side builds again once, | ||
| 157 | and the report says so; a second crash gives `compiler crashed`. Run it again later, or on another machine. | ||
| 155 | - `red does not build` is the case the fork-CI steps above call "does not build without the pull request's new | 158 | - `red does not build` is the case the fork-CI steps above call "does not build without the pull request's new |
| 156 | file": the test needs the new code, which does not show that it catches the bug. | 159 | file": the test needs the new code, which does not show that it catches the bug. |
| 157 | - `--crate <name>` adds a crate, `--no-cargo` or `--no-python` leaves one kind out, `--base <ref>` tests on another | 160 | - `--crate <name>` adds a crate, `--no-cargo` or `--no-python` leaves one kind out, `--base <ref>` tests on another |