Repository navigation
fix: restore version outputs from CLI builds - #854
davidmfinol wants to merge 2 commits into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe action parses ChangesCLI Output Flow
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant run
participant CLI
participant versionOutputs as collectCliOutputs
participant core as core.setOutput
run->>versionOutputs: Create stdout collector
run->>CLI: Execute with stdout listener
CLI-->>versionOutputs: Send stdout chunks
run->>CLI: Receive exit code
alt Exit code is zero
run->>versionOutputs: Call finish()
versionOutputs-->>run: Return parsed records
run->>core: Publish each record
else Exit code is nonzero
run->>run: Return without forwarding collected outputs
end
Merge Risk: ⚪ Minimal · up to The default CLI’s version outputs match the action’s collector, and no actionable merge risk was identified. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Strict parsing and success-only forwarding limit the new output path. No security vulnerability was established, but the origin of matching log records and their interaction with direct CLI output writes remain uncertain. Retained concerns Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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. A rabbit watched the stdout stream, Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #854 +/- ##
==========================================
+ Coverage 91.26% 92.10% +0.84%
==========================================
Files 3 4 +1
Lines 103 114 +11
Branches 27 28 +1
==========================================
+ Hits 94 105 +11
Misses 6 6
Partials 3 3
🚀 New features to boost your workflow:
|
|
Thanks for chasing this down - and you're right that it's the CLI migration rather than your project's config.
It never wrote the file a runner hands the step. That was harmless for as long as the CLI was the action. When unity-builder became a subprocess wrapper (#844, first shipped in v6.0.0) the action started relying on the CLI to publish So this PR is a correct read of the symptom, but the cause is on the CLI side, and the fix belongs there: PR: game-ci/cli#301 It needs a CLI release before it reaches anyone. 🤖 Addressed by Claude Code |
… them (#301) core.setOutput logged `(mock) Output "<key>" is set to "<value>"` and returned; it never wrote the file a runner hands the step. The shim has behaved that way since the first CLI commit, which was harmless while the CLI *was* the action. It stopped being harmless when unity-builder became a subprocess wrapper (#844, first shipped in v6.0.0): the action runs the CLI as a child and relies on it to publish buildVersion/androidVersionCode, since $GITHUB_OUTPUT is inherited. Nothing published them, so both outputs arrived empty on every Unity build. Mirror the real @actions/core split - append to $GITHUB_OUTPUT when it is set, and keep the printed line only as the standalone fallback. The delimiter form is load-bearing: the value is a user-supplied version string, and `key=value` cannot carry a newline. Refs game-ci/unity-builder#854 Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
|
Awesome, closing this PR |

What's Changed
Summary by CodeRabbit