Skip to content

Release owned Unity CI workspace processes - #841

Merged
Eli Pinkerton (wallstop) merged 2 commits into
masterfrom
work/839-owned-unity-processes
Nov 25, 2026
Merged

Eli Pinkerton (wallstop) merged 2 commits into
masterfrom
work/839-owned-unity-processes

Conversation

@wallstop

Copy link
Copy Markdown
Collaborator

Why

A Unity CI process can exit while its child still holds the generated workspace. The watchdog previously accepted root exit and closed output as completion.

What changed

Enroll each Windows watchdog launch in an owned process group before the root starts. Release and check the group before returning the result. Keep the existing timeout, test result, and license cleanup steps.

How we know

The old watchdog reports success in a fixture with a verified live child. The adapter compiles, the portable watchdog cases pass, and all 1,502 Node and 154 Python tests pass. Hosted Windows checks exercise workspace release after success, failure, timeout, and abrupt cancellation. The consumer-install launcher has a separate path and remains in #839.

Reproduction and verification plan.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 133 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 1 finding.

The Windows launcher drops the requested working directory. Unity therefore runs from the CI controller’s directory, which can make relative paths resolve to the wrong project or files.

9368 in, 4879 out tokens. Comments only; this review never blocks a merge.

Copy link
Copy Markdown
Collaborator Author

The repair at 9f1c9145 forwards the working directory and exercises it through a fixture launched in its own project directory. It also reads the original Windows root handle for the true exit code and initializes the helper path in the same-player test loader. The former job exposed both defects. The focused suites, all 1,502 Node and 154 Python tests, spelling, and changed-file hooks pass locally. The Windows controls and normal Unity result and cleanup gates must pass on this head.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No defects found in the reviewed changes.

9891 in, 4133 out tokens. Comments only; this review never blocks a merge.

Copy link
Copy Markdown
Collaborator Author

Verified head 9f1c914519b5774460c0fd7bd06ced14bce758b4 with all three required checks successful. Replayed the production verifier against the official EditMode, PlayMode, and standalone archive digests. Their 1,948 / 32,662 / 32,657 passes, zero failures, and 15 EditMode skips match the prior test identities and outcomes. Confirmed runner completion and Unity cleanup. Native job 138938769873 waited 1,528 seconds and was active for 310 seconds. Unity result and cleanup.

Exact-head CodeRabbit check 138938717615 explicitly reported rate limiting. The full conversation, submitted reviews, and inline thread scan found no prior CodeRabbit findings or outside-diff action. The earlier OpenAI finding is resolved and the exact-head review reported zero findings. The Devcontainer image-build skips were expected.

@wallstop
Eli Pinkerton (wallstop) merged commit 40e1ec3 into master Nov 25, 2026
28 checks passed
@wallstop
Eli Pinkerton (wallstop) deleted the work/839-owned-unity-processes branch November 25, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant