unity-cli@v1.9.0#63
Closed
StephenHodgson wants to merge 82 commits into
Closed
Conversation
Member
StephenHodgson
commented
Dec 20, 2025
- add additional unity utp log handling
- add additional unity utp log handling
There was a problem hiding this comment.
Pull request overview
This PR adds enhanced Unity Test Platform (UTP) log handling capabilities to unity-cli version 1.8.2. The changes introduce test scenario files that intentionally generate various types of failures and warnings to validate the CLI's error handling and logging infrastructure.
- Adds six Unity test scenario files covering compiler errors/warnings, build errors/warnings, and playmode/editmode test failures
- Implements UTP log artifact upload in the CI workflow to capture test execution logs
- Updates package version from 1.8.1 to 1.8.2 with related dependency bumps
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| unity-tests/PlaymodeTestsErrors.cs | Playmode test that intentionally fails to validate test failure reporting |
| unity-tests/EditmodeTestsErrors.cs | Editmode test that intentionally fails to validate test failure reporting |
| unity-tests/CompilerWarnings.cs | Generates obsolete API warnings for compiler warning scenario testing |
| unity-tests/CompilerErrors.cs | Uses #error directive to force compilation errors for error scenario testing |
| unity-tests/BuildWarnings.cs | Build preprocessor that emits warnings during Unity build pipeline |
| unity-tests/BuildErrors.cs | Build preprocessor that throws exceptions to simulate build failures |
| package.json | Version bump to 1.8.2 |
| package-lock.json | Version update and automatic dependency updates for baseline-browser-mapping, caniuse-lite, dedent, and update-browserslist-db |
| .github/workflows/build-options.json | Adds tests array listing all new test scenario files |
| .github/workflows/unity-build.yml | Adds UTP log artifact upload step and removes trailing whitespace |
Comments suppressed due to low confidence (1)
unity-tests/CompilerWarnings.cs:12
- Call to obsolete method ObsoleteApi.
ObsoleteApi(); // CS0618: call to obsolete member
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
# Conflicts: # .github/workflows/build-options.json # .gitignore # package-lock.json # package.json
Separate intentional failure fixtures into a dedicated negative-scenarios CI path and keep default matrix rows on a normal profile so release-signal jobs no longer fail on expected CS1029 cases.
Limit the negative UTP profile to deterministic BuildErrors/CompilerErrors scenarios and make UTP artifact scanning skip missing directories so macOS jobs no longer fail with exit code 2 when no artifacts are produced.
Restrict the normal CI UTP profile to deterministic warning scenarios only so platform rows do not fail on edit/play NUnit-result heuristics while still exercising telemetry in stable paths.
Cap the Uninstall Editor cleanup step with a timeout and make it non-blocking so long-running uninstall operations on Windows do not stall matrix completion.
Use ripgrep when available but fall back to recursive grep in the hidden-failure guardrail so CI runners without rg do not fail with command-not-found.
Retry create-project up to three times with short backoff so intermittent macOS iOS project bootstrap failures do not fail the entire matrix job immediately.
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.