Skip to content

ci: bring beta's Unity test gate and uv.lock staging to main before 10.2.1 - #1424

Merged
Scriptwonder merged 1 commit into
mainfrom
ci/pin-unity-test-runner-main
Oct 4, 2026
Merged

Scriptwonder merged 1 commit into
mainfrom
ci/pin-unity-test-runner-main

Conversation

@Scriptwonder

Copy link
Copy Markdown
Collaborator

Description

release.yml runs from main. It calls main's copy of unity-tests.yml against beta. Today the 10.2.1 release gate would fail for the same reason beta failed from 09-20 until #1410: main still uses the floating game-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 runs beta's tools/update_versions.py, which now updates Server/uv.lock (#1376). main's release.yml does not stage that file, so the release commit would leave uv.lock at the old version, and uv sync --locked would then fail.

This PR copies the 3 files from beta, byte for byte.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Changes Made

  • .github/workflows/unity-tests.yml: the runner pinned by SHA, plus cliVersion: v0.1.69 and githubToken: "". 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: stage Server/uv.lock with the version bump.

Sources on beta: 17a270f, 6d0fe54, a1ae80a and 5fb7703 (#1410), and df0cba7 (#1376).

Compatibility / Package Source

Testing/Screenshots/Recordings

  • Not applicable: workflow and CI script only
  • git merge-tree --write-tree HEAD upstream/beta exits 0, and the merged tree equals beta exactly. So the release step "merge beta into main" stays conflict-free.
  • Both workflow files parse as YAML. The Unity Tests run on this PR runs the new gate against main's code.

Documentation Updates

  • I have added/removed/modified tools or resources

Related Issues

Relates to #1410 and #1376. Needed before the 10.2.1 release. Pairs with #1423 on beta.

…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.
Copilot AI balanced review requested due to automatic review settings October 4, 2026 02:05
@coderabbitai

coderabbitai Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed7c3faa-da8f-4cdb-a4d1-a9b75f7ee75e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Low severity

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.lock during 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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants