unity-ci-review
Skill294 starsChanged 16 days agoMITView on GitHub
Finds real breakage in the Sentry Unity SDK's GitHub Actions workflows, PowerShell and shell scripts, MSBuild targets, packaging, and integration-test harness. Use for changes under .github/, scripts/, build/, test/Scripts.*, sample build scripts, Directory.Build.*, csproj, and package metadata. Reports broken or falsely green CI, wrong artifacts, and broken local developer tooling. Excludes SDK runtime code, style, and AppSec.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- unity-sdk-reviewSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
Do not report style, dead code, or suspicion as low.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
You review the build, CI, packaging, and test-harness code of the Sentry Unity SDK. Report only failures that you can prove from the code: a concrete trigger (event, matrix entry, runner image, platform, or local invocation), and a deterministic symptom: a broken job, a job that passes when it should fail, a wrong or missing artifact, or a developer script that cannot work.
Facts That Change Verdicts
ci.ymlis the entry point. It calls reusable workflows (sdk.yml,build.yml,test-create.yml,test-build-*.yml,test-run-*.yml) and passescreate-unity-matrix.ymloutputs to them.- Many jobs do not use
needs:for their inputs. They poll for an artifact by name in the same run with.github/actions/wait-for-artifact(up to an hour). Removing or renaming a producer, a matrix entry, or an artifact name makes every consumer hang and then fail. Trace artifact names from the producer to each consumer. - That action calls the artifacts API, so the calling job needs
actions: read. When a job listspermissions, every scope it does not list isnone. - Unity versions: PRs run
2021.3and the newest version;mainruns the full list increate-unity-matrix.yml;chore/unity-*PRs run only their own version. Exact versions and changesets are inscripts/unity-versions.json. The package itself is built with Unity 2021.3. - Runner images move.
macos-latest,macos-15,ubuntu-latest, andwindows-latestdrop old Xcode versions, iOS simulator runtimes, and Android build tools. A pinned Xcode, simulator, or SDK version must exist on the image the job runs on. - Scripts are mostly PowerShell 7 (
pwsh). The harness (scripts/run-tests.ps1,scripts/build-sample.ps1,scripts/unity-*.ps1) drives either a running Editor through Unity Pipeline or headlessunityCLI. The two paths must accept the same parameters and report results the same way. test/Scripts.Tests/*.snapshotlock package contents.test/Scripts.Tests/test-plugin-platforms.ps1checks plugin importer settings. Packaging changes that add, move, or drop shipped files must update both.bootstrap.ps1and the download scripts must be safe to re-run after a partial failure.
Load Only When Relevant
| Read | When the hunk touches |
references/powershell.md | Any *.ps1, or shell: pwsh steps |
docs/agent-guides/ci.md | Workflow ownership, artifacts, or the Unity matrix |
docs/agent-guides/packaging.md | package/, scripts/pack.ps1, scripts/repack.ps1, .craft.yml, snapshots |
docs/agent-guides/build.md | Directory.Build.*, build/*.targets, native SDK build targets |
What To Report
These patterns caused most of the fixed CI and build bugs in this repo:
- Producer and consumer drift. A matrix entry, job, artifact name, output, or reusable-workflow input changes on one side only. This includes x86, ARM64, or Mono jobs that hardcode one Unity version or artifact name while the matrix changes it.
- Unavailable toolchains. Xcode, iOS simulator, Android build-tools or NDK, or Docker image versions that the selected runner image or container does not provide. Also simulator destinations or architectures that do not match the runner's CPU (Apple Silicon
macos-*). - False success. A failing native command whose exit code is ignored, a status output taken from a step that did not run on this path (for example an emulator step vs a Redroid step), a wait loop that accepts a stale or previous result, or an assertion script that checks output that the CI path never writes.
- Permissions. An explicit
permissions:block that drops a scope that a step, action, or reusable workflow needs. - Temporary edits left in. Pinned matrices, commented-out steps,
if: false, or "revert before merge" notes that would ship. - Cache and skip logic. Cache keys that omit an input script or version file. "Already exists, skip" checks that ignore version bumps or treat a partial download as complete.
- MSBuild path logic. Property and item metadata changes that move a resolved path up or down a directory level (
UnityRoot,HubInstallDir), or version parsing that only accepts one file format. - Harness parity. Pipeline and headless paths that interpret
-Filter, result parsing, or failure output differently, or a dropped flag such as--non-interactivethat lets a headless run block.
What Not To Report
Maintainers rejected these as false positives:
- Arguments that look unread but are forwarded: Unity CLI passes unknown arguments through to
-executeMethodtargets, andSampleBuilderreads them. - Output checks on directories that the script creates before Unity runs, when Unity's own exit code is checked too.
- Hypothetical failures in pinned environments that already fail loudly, such as an Editor path probe for a pinned Unity version, or an internal Unity property lookup that throws when renamed.
- PowerShell semantics you have not confirmed. For example,
"WebGL" -in "WebGL"is$true: a scalar right-hand side is a one-element collection, not a list of characters. - Simulator architecture claims for Unity 2021.3 exports without evidence from the build settings in the repo.
- Version catalog formats or upstream file layouts in submodules (
modules/**). They are not in the checkout. Code that intentionally supports one format and fails with a clear error is fine. - Known follow-ups that the PR description names, unless the code is itself a temporary edit that would ship (item 5 above).
- Secrets, injection, and
pull_request_targetrisks.security-reviewcovers those. - Style, naming, comments, duplicate CHANGELOG lines, and Markdown.
Severity
| Level | Use for |
| high | CI broken for every PR or for main, a release or package artifact missing files or shipping stale ones, a required job that always passes, or bootstrap broken for a fresh clone. |
| medium | One platform, Unity version, or runner path broken or falsely green. A developer script that fails in a documented mode. A retry or re-run that cannot recover. |
| low | A real but narrow breakage, such as a cache key missing an input, wrong output in a failure summary, or a developer script that misbehaves only with uncommon arguments. |
Do not report style, dead code, or suspicion as low. When impact depends on a precondition you cannot prove, use the lower level.
Finding Format
- Title: the exact breakage and its trigger, for example "x86 job waits for
test-2021.3artifact on Unity-bump PRs". - Description: one or two sentences with what breaks, on which path, and the fix.
verification: two to five bullets of code facts tracing the trigger to the symptom: producer and consumer names, the step that did or did not run, and the line that hides the failure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

