Skip to content

test: pin cross-version browser placement test to explicit baseline - #16554

Merged
AmethystLiang merged 2 commits into
mainfrom
fix-ci-issues
Aug 26, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
fix-ci-issues

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​17 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​5
Prod 0 0 0 0

Problem

The cross-version browser placement test used a rolling baseline via resolveBaselineReleaseRef(), which could pick up newer stable releases. When the baseline eventually includes the client placement feature, the test fails because it's meant to validate backwards compatibility against older versions.

Solution

Pin the test to an explicit baseline v1.4.184 that predates client placement. This ensures consistent wire-compatibility verification against a known legacy version, independent of future stable releases.

What Changed

Replaced the dynamic resolveBaselineReleaseRef() call with explicit constant LEGACY_BROWSER_PLACEMENT_RELEASE_REF = 'v1.4.184'. Updated comments to clarify: v1.4.185 moved the tab-create schema and renamed it, so an explicit pin avoids coupling the baseline choice to that unrelated refactor.

Why

A rolling stable baseline eventually contains every additive feature. For cross-version wire compatibility, the baseline must remain on an old version to validate the contract. An explicit version pin ensures this stability.

Visual Proof

N/A — test-only change with no UI or behavioral impact.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below: Test fixture updated to use explicit baseline; no additional coverage needed.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Test-only change with no impact on security, cross-platform support, SSH/remote execution, or backwards compatibility.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Pin to v1.4.184 to ensure consistent testing against the release
predating client placement. This avoids coupling the legacy-baseline
bump to unrelated schema refactors in newer versions.
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 606f63f7-cbe6-46b3-9232-f44a925e7e35

📥 Commits

Reviewing files that changed from the base of the PR and between d1c53e8 and d8811d0.

📒 Files selected for processing (2)
  • src/main/windows/windows-host-job.win32.test.ts
  • src/main/windows/windows-pty-job.win32.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The cross-version browser placement test pins its legacy baseline to release v1.4.184 and retains compatibility handling for schema locations before and after the schema refactor. Windows host-job and PTY tests treat EPERM as evidence that a process is alive, hide detached grandchild windows, and explicitly terminate the host process with SIGKILL.

Merge Risk: ⚪ Minimal · up to d8811

This test-only change pins the compatibility baseline to a known legacy release and introduces no actionable merge-blocking risk; it is merge-ready after normal checks and review.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the problem, solution, scope, testing, visual proof, and platform impact. It omits the required ELI5 section and does not provide the mandatory linked issue under “Linked Issu… Add an ELI5 section, provide a valid issue reference such as “Fixes #123”, and complete the Review section if required by repository policy.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the primary change: pinning the cross-version browser placement test to an explicit legacy baseline. It is concise and specific.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the problem, solution, scope, testing, visual proof, and platform impact. It omits the required ELI5 section and does not provide the mandatory linked issue under “Linked Issue”; the “Review” section is also absent.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

When checking process state on Windows, EPERM (permission denied) indicates
an inaccessible but live process. Only ESRCH (process not found) proves
exit. Correct isAlive() to distinguish these cases.

Also add windowsHide:true to child process spawns and use explicit SIGKILL
when force-killing the host process.
@AmethystLiang
AmethystLiang merged commit 4d2dc0f into main Aug 26, 2026
48 checks passed
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
…tablyai#16554)

* test: use explicit baseline for cross-version browser placement test

Pin to v1.4.184 to ensure consistent testing against the release
predating client placement. This avoids coupling the legacy-baseline
bump to unrelated schema refactors in newer versions.

* fix(windows): treat inaccessible processes as alive in tests

When checking process state on Windows, EPERM (permission denied) indicates
an inaccessible but live process. Only ESRCH (process not found) proves
exit. Correct isAlive() to distinguish these cases.

Also add windowsHide:true to child process spawns and use explicit SIGKILL
when force-killing the host process.
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 28, 2026
…tablyai#16554)

* test: use explicit baseline for cross-version browser placement test

Pin to v1.4.184 to ensure consistent testing against the release
predating client placement. This avoids coupling the legacy-baseline
bump to unrelated schema refactors in newer versions.

* fix(windows): treat inaccessible processes as alive in tests

When checking process state on Windows, EPERM (permission denied) indicates
an inaccessible but live process. Only ESRCH (process not found) proves
exit. Correct isAlive() to distinguish these cases.

Also add windowsHide:true to child process spawns and use explicit SIGKILL
when force-killing the host process.

(cherry picked from commit 4d2dc0f)
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…tablyai#16554)

* test: use explicit baseline for cross-version browser placement test

Pin to v1.4.184 to ensure consistent testing against the release
predating client placement. This avoids coupling the legacy-baseline
bump to unrelated schema refactors in newer versions.

* fix(windows): treat inaccessible processes as alive in tests

When checking process state on Windows, EPERM (permission denied) indicates
an inaccessible but live process. Only ESRCH (process not found) proves
exit. Correct isAlive() to distinguish these cases.

Also add windowsHide:true to child process spawns and use explicit SIGKILL
when force-killing the host process.
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