fix: surface Unity's real activation error instead of swallowing it - #253
Merged
Merged
Conversation
ubuntu/steps/activate.sh's license-file (.ulf) branch captured unity-editor's output into a variable via command substitution instead of streaming it through `tee` like every other licensing strategy in this script. On a genuine (non-transient) activation failure, that meant a user got nothing but the generic "Unclassified error occured while trying to activate license." fallback at the bottom of the script - the actual reason Unity gave was silently discarded, making every real failure indistinguishable from every other one. mac and windows already streamed this output correctly; only ubuntu's .ulf branch had the bug. Fixed by piping through `tee` and reading the success/retry patterns from the log file instead of a captured string, matching the pattern already used by the serial/personal/floating branches. Also adds a one-line pointer to the generic "Unclassified error" summary on all three platforms, so it's clear the real reason is in the output above rather than implying nothing is known. New regression test in test-licensing-steps.sh proves the fix: fails against the old code (only the "Changing to ..." pushd line is visible) and passes against the new code. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Warning Review limit reachedNext included review available in 22 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (1)
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 |
dist/ content changed (activate.sh/activate.ps1), so the embedded assets hash committed in src/generated/embedded-assets.ts was stale - CI's `generate-embedded-assets.mjs --check` catches exactly this. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prompted by a Discord report of "Unclassified error occured while trying to activate license." with zero further detail. That message is game-ci's own generic fallback, printed whenever activation's exit code is non-zero and doesn't match a known-transient signature - by itself it carries no diagnostic info, so the real question was always "what did Unity actually say before that."
Tracing it down:
ubuntu/steps/activate.sh's license-file (.ulf) branch capturedunity-editor's output into a variable via command substitution (ACTIVATION_OUTPUT=$(...)) instead of streaming it throughteelike every other licensing strategy in this script. On a genuine (non-transient) failure, that output was never printed anywhere - the user got only the generic "Unclassified error" line, with the actual reason Unity gave silently discarded. mac's and windows' equivalents already streamed correctly viatee/Out-Host; this bug was isolated to ubuntu's.ulfbranch.This is a real, generically-applicable bug independent of any one report - anyone using license-file activation on Linux and hitting a genuine (non-transient) failure got no information at all, regardless of what that failure actually was.
teeand reading success/retry patterns from the log file instead of a captured string, matching the pattern the serial/personal/floating branches already use.scripts/test-licensing-steps.sh, verified both ways: fails against the pre-fix code (only thepushd/"Changing to ..." line is visible, the stub's distinctive failure message never appears) and passes against the fix.Test plan
bash scripts/validate-platform-scripts.sh- cleanbash scripts/test-licensing-steps.sh- 32/32 passed, including the new regression testactivate.sh, re-ran, watched it fail with exactly the missing-output symptom, then restored the fix and re-ran greenbash -n/ PowerShell tokenizer syntax-checked all four modified platform scripts🤖 Generated with Claude Code