docs/testing: red and green of a runtime pull request on your fork's CI #2747
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2747
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/fork-ci-red-green"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claim: DOCS-FORK-CI-RED-GREEN (#2570).
What
A new subsection of
docs/testing.md, after "Testing someone else's pull request": how to check a C++ pull request toruntime/red and green on the Runtime workflow of one's own fork, for people who cannot build it locally.maincommit:ci-green/<N>(the pull request merged) andci-red/<N>(only its test and the test'sruntime/CMakeLists.txtlines, applied as a diff somain's own CMake changes stay).gh workflow run runtime.ymlon the fork; starting a run on a fork is linked to the existing "Without a compiler: a CI-built runtime" lines instead of repeated.main("no red"), the test is not registered on the red side.windowsjob's "CPU runtime tests" step, theR/R passed, D disabled (out of T)form, rerunning a one-off timing failure, and comparing other jobs withmain's latest run.Why
The method was used for the Mac verifications of runtime pull requests on 29-30 Nov (fork runs of
OreoFR/leonida), and the three "red proves nothing" cases each came up there. mooneyes-agent checked that no open pull request touchingdocs/testing.mdcovers it and thatmainonly mentions fork runs for the artifact.Tests
tests/test_docs_*.py(links, encoding, list items, repeated lines and the rest): 134 passed, 1 skipped, on macOS 27.2.1, Python 3.12.16,mainb17b22d33.python -I scripts/check_no_game_data.py docs/testing.md: clean.ctestline are read from.github/workflows/runtime.ymlatb17b22d33; a later change to that workflow would need this text updated.Same owner as the Mac verifications it describes: please have someone else review it.
🤖 Generated with Claude Code
Independent check of steps 2–3. Commit the red fixture before pushing.
git apply --3waystages the CMake change. The checklist goes directly from applying the diff to pushing the branches. I tried it againstmain232f9e603with the test source and CMake hunk from #2734, using a local bare repository as the fork. I staged the test source too. The push succeeded, but the fork'sci-red/2734still pointed at the baseline commit. Its tree was missing both the test source and theadd_testregistration. After committing the staged pair and pushing again, the fork's tree contained the test source and its registration. A second agent reproduced the result independently.Please add a step before pushing. Stage the test files, verify with
git diff --cachedthat the patch contains just the intended test and registration, and commit them onci-red/<N>. That makes the ref passed togh workflow runcontain the fixture.The Runtime workflow's
workflow_dispatch,CPU runtime testsstep and CTest command match the guide. On0703aebb4merged with232f9e603(treea25ba0e3d), the documentation suite passed 57 tests and 133 subtests with Python 3.14.10 and pytest 9.2.0. AI-assisted with OpenAI Codex.Thanks @merzleckeier, right: the list went from
git apply --3waystraight to the push.9f2ca5899adds step 3: stage the test file(s), checkgit diff --cachedholds only the test and its registration, commit onci-red/<N>, and says what happens without it (the pushed branch is still plainmain, so the red run has no such test). Push and run are now step 4.tests/test_docs_*.py: 57 passed, 133 subtests passed (macOS, Python 3.12.16);check_no_game_data.py docs/testing.md: clean.AI-assisted: Claude Code
Read by MoonEyes (another owner than OreoFR) on head
9f2ca5899, the whole diff, againstmainb17b22d33: the workflow hasworkflow_dispatch, the step "CPU runtime tests" and itsctestcommand matchruntime.yml, the anchor it links to is in the page, and step 3 (merzleckeier's remark) is there. Documentation only; I did not run the procedure on a fork.AI-assisted (Claude Code).
Merging. Head
9f2ca5899merges cleanly withmain1ad7867a2and does not force a rebase of #2566. Documentation only, read in full by another owner. Merged by MoonEyes.AI-assisted (Claude Code).