Revert "fix(unity-builder): retry mac builds on transient licensing-client signature error" - #228
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesMacBuilder execution
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🔵 Low · up to This revert removes retry coverage for macOS Unity licensing failures, and the checked-in scripts do not provide the claimed replacement retry. A transient licensing-signature error can now fail a build on its first attempt, so merge requires explicit owner awareness that this reliability tradeoff is intentional. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Description checkExplanation The description clearly explains the reverted approach, the existing replacement mechanism, the reason for the change, and the completed test plan. It does not use the template headings or include the full checklist, but the required information is mostly present. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
Reverts #226. That PR added a retry wrapper around
MacBuilder.run()'s wholeentrypoint.shinvocation for Unity's transient "Code 10 while verifying Licensing Client signature" error — but there's already a pre-existing, better-designed retry mechanism for exactly this error class:dist/platforms/mac/steps/activate.shandbuild.shalready retry the specific failing sub-step (not the whole entrypoint) up toUNITY_LICENSE_RETRY_MAX_ATTEMPTS(default 4) times with exponential backoff (20s/40s/80s), documented insrc/logic/unity/environment.ts.I missed this when writing #226 and duplicated it at a coarser outer layer — my version retried the entire
entrypoint.sh(re-running successful activation from scratch) with a flat 10s delay and only 3 attempts, layered on top of the existing 4-attempt inner retry. Confirmed live on game-ci/unity-builder#844's CI: a job hit the existing inner mechanism's all 4 attempts, still failed — evidence that when the flake is persistent enough to exhaust well-tuned exponential backoff, an additional outer retry just wastes more wall-clock time rather than improving reliability.No replacement fix needed here — the existing mechanism is already the right one; this PR is pure cleanup.
Test plan
vitest runinplugins/unity— clean (mac-builder.test.ts removed along with the reverted code)tsc --noEmit— cleanSummary by CodeRabbit