diff options
| author | Claude <noreply@anthropic.com> | 2026-11-25 09:48:57 +0000 |
|---|---|---|
| committer | potatoe0100 <11406278+potatoe0100@users.noreply.github.com> | 2026-11-25 21:31:41 +1030 |
| commit | ca6101c50fd356d5c2bddbcd861a6d974d182030 (patch) | |
| tree | 5af3508a27095283ac143ed392089264146df142 /docs/testing.md | |
| parent | 5669184f15e6be5ca1fe676f27ca76f2598d163f (diff) | |
docs/testing: how to test someone else's pull request on Windows
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/testing.md b/docs/testing.md index 1cdd24923..344f36514 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -62,6 +62,22 @@ problems testers have hit; the steps below link to them. | |||
| 62 | A `FAIL` is worth reporting, not a reason to stop: check [Known problems](#known-problems) first, and say in the | 62 | A `FAIL` is worth reporting, not a reason to stop: check [Known problems](#known-problems) first, and say in the |
| 63 | record whether it matched a row there. | 63 | record whether it matched a row there. |
| 64 | 64 | ||
| 65 | ### Testing someone else's pull request | ||
| 66 | |||
| 67 | Once your GPU has a record, testing open pull requests on it helps more than a second record: review and testing | ||
| 68 | are what most pull requests wait for. Pick one that changes the translator, the runtime or a GPU test, then: | ||
| 69 | |||
| 70 | ```powershell | ||
| 71 | git fetch origin pull/<N>/head:pr-<N> | ||
| 72 | git checkout pr-<N> | ||
| 73 | powershell -ExecutionPolicy Bypass -File scripts\build_runtime.ps1 # always rebuild after switching | ||
| 74 | python -I scripts\run_gpu_tests.py # add --filter <name> for the tests it touches | ||
| 75 | ``` | ||
| 76 | |||
| 77 | Run `main` the same way for comparison (`git checkout main`, rebuild, run). Then comment on the pull request with | ||
| 78 | one line per mode, in the form `<GPU>, <driver>, Windows <build>: X of Y passed, K skipped, F failed (native); | ||
| 79 | main at <commit>: ...`, plus any `FAIL` lines that differ from `main`. | ||
| 80 | |||
| 65 | ## What you need | 81 | ## What you need |
| 66 | 82 | ||
| 67 | - **Python 3.11+.** `scripts/run_gpu_tests.py` needs at least 3.10. | 83 | - **Python 3.11+.** `scripts/run_gpu_tests.py` needs at least 3.10. |