Repository navigation
ci: bring beta's Unity test gate and uv.lock staging to main before 10.2.1 - #1424
Conversation
…0.2.1 release.yml runs from main and calls main's copy of unity-tests.yml against beta. Main still uses the floating game-ci/unity-test-runner@v4, which moved to v4.4.0 on 2026-09-09. v4.4.0 defaults githubToken to github.token, so the runner calls the Checks API with a read-only token, gets a 403, and fails every leg. That broke beta from 2026-09-20 until #1410; on main it would fail the 10.2.1 release gate the same way. release.yml also runs beta's tools/update_versions.py after it merges beta, and that script now updates Server/uv.lock (#1376). Main's release.yml does not stage uv.lock, so the release commit would leave it at the old version and `uv sync --locked` would fail afterwards. Copy these files from beta (5fb7703, df0cba7 and #1410), byte for byte: - .github/workflows/unity-tests.yml: pinned runner SHA + cliVersion, githubToken "", separate domain-reload/regular result gates and artifacts - tools/check_unity_test_results.py: the result gate script that workflow calls - .github/workflows/release.yml: stage Server/uv.lock with the version bump The files are identical to beta, so the release's "merge beta into main" step merges them without conflict.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new release-blocking result validator lacks hermetic unit coverage for its critical success and failure paths.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Updates main’s release CI to match beta’s Unity test gating and version-lock staging.
Changes:
- Pins GameCI and validates NUnit results locally.
- Adds the Unity result-validation script.
- Stages
Server/uv.lockduring version bumps.
| File | Description |
|---|---|
.github/workflows/unity-tests.yml |
Pins test tooling and adds separate result gates/artifacts. |
tools/check_unity_test_results.py |
Validates runner outcomes and NUnit XML. |
.github/workflows/release.yml |
Stages the updated lockfile. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| return escape_data(value).replace(":", "%3A").replace(",", "%2C") | ||
|
|
||
|
|
||
| def check_results(path: Path, runner_outcome: str) -> int: |

Description
release.ymlruns frommain. It callsmain's copy ofunity-tests.ymlagainstbeta. Today the 10.2.1 release gate would fail for the same reason beta failed from 09-20 until #1410:mainstill uses the floatinggame-ci/unity-test-runner@v4. That tag moved to v4.4.0 on 2026-09-09. v4.4.0 calls the Checks API with the read-only token, gets a 403, and fails every leg.There is a second release problem. After the release merges
beta, it runsbeta'stools/update_versions.py, which now updatesServer/uv.lock(#1376).main'srelease.ymldoes not stage that file, so the release commit would leaveuv.lockat the old version, anduv sync --lockedwould then fail.This PR copies the 3 files from
beta, byte for byte.Type of Change
Changes Made
.github/workflows/unity-tests.yml: the runner pinned by SHA, pluscliVersion: v0.1.69andgithubToken: "". Separate result gates and artifacts for the domain-reload suite and the regular suite.tools/check_unity_test_results.py(new on main): the result gate script that the workflow calls. It uses only the standard library..github/workflows/release.yml: stageServer/uv.lockwith the version bump.Sources on beta: 17a270f, 6d0fe54, a1ae80a and 5fb7703 (#1410), and df0cba7 (#1376).
Compatibility / Package Source
Testing/Screenshots/Recordings
git merge-tree --write-tree HEAD upstream/betaexits 0, and the merged tree equalsbetaexactly. So the release step "merge beta into main" stays conflict-free.main's code.Documentation Updates
Related Issues
Relates to #1410 and #1376. Needed before the 10.2.1 release. Pairs with #1423 on beta.