diff options
| author | OreoFR <tony37160@hotmail.fr> | 2026-11-30 15:56:55 +0100 |
|---|---|---|
| committer | OreoFR <tony37160@hotmail.fr> | 2026-11-30 15:56:55 +0100 |
| commit | 9f2ca5899287a8dd5fa78b963181fc7bb52898a1 (patch) | |
| tree | 5475d4922c2c08f10a2901f5c19fb67a730691e1 /docs/testing.md | |
| parent | 0703aebb4e6125aa87a6397e2ea3d8f97829328a (diff) | |
docs/testing: commit the red side's test before pushing (review on #2747)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
| -rw-r--r-- | docs/testing.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/testing.md b/docs/testing.md index bda8a36f0..248adb3ed 100644 --- a/docs/testing.md +++ b/docs/testing.md | |||
| @@ -99,7 +99,11 @@ request's own CI here, nor someone else's verification: it is one more data poin | |||
| 99 | test's registration in `runtime/CMakeLists.txt` (`add_executable` / `add_test`). Apply that part of the pull | 99 | test's registration in `runtime/CMakeLists.txt` (`add_executable` / `add_test`). Apply that part of the pull |
| 100 | request's diff (`git diff <merge-base> pr-<N> -- runtime/CMakeLists.txt | git apply --3way`) rather than checking | 100 | request's diff (`git diff <merge-base> pr-<N> -- runtime/CMakeLists.txt | git apply --3way`) rather than checking |
| 101 | out the pull request's whole `CMakeLists.txt`, which would also undo what `main` has added since. | 101 | out the pull request's whole `CMakeLists.txt`, which would also undo what `main` has added since. |
| 102 | 3. **Push both branches to the fork and start the runs**: | 102 | 3. **Commit the red side's test before pushing.** `git apply --3way` only stages the CMake lines: stage the test |
| 103 | file(s) as well, check with `git diff --cached` that the staged change is just the test and its registration, | ||
| 104 | and commit it on `ci-red/<N>`. Without that commit the pushed branch is still the plain `main` commit, and the | ||
| 105 | red run has no such test. | ||
| 106 | 4. **Push both branches to the fork and start the runs**: | ||
| 103 | `gh workflow run runtime.yml --repo <you>/<fork> --ref ci-green/<N>`, the same with `ci-red/<N>`, then | 107 | `gh workflow run runtime.yml --repo <you>/<fork> --ref ci-green/<N>`, the same with `ci-red/<N>`, then |
| 104 | `gh run list --repo <you>/<fork>` for their ids. A pull request that only adds tests has nothing to remove for | 108 | `gh run list --repo <you>/<fork>` for their ids. A pull request that only adds tests has nothing to remove for |
| 105 | red: run `main` itself as the red side. | 109 | red: run `main` itself as the red side. |