Skip to content

test: update three tests main broke when clashing PRs landed - #28689

Closed
Jinwoo-H wants to merge 4 commits into
mainfrom
jinwoo/fix-openmobilefile-arity-test
Closed

Jinwoo-H wants to merge 4 commits into
mainfrom
jinwoo/fix-openmobilefile-arity-test

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 14, 2026 •

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

ELI5

Three test files on main broke because PRs that each passed alone but clashed once both landed. Unit tests on main and on every open PR fail until these are updated.

What Changed

  • The file facade test now expects openMobileFile to take 4 arguments instead of 3.
  • The headless compiler cache test no longer looks for a push trigger on node-server-tests.yml, which only runs on pull requests now.
  • The mobile Jira connection test types its fixture client by the hook's own parameter instead of the broad object type, which the anti-slop lint rule rejects (feat(tasks): browse Jira and start workspaces on mobile #28616).

No product code changes.

Why

#28240 added an optional position argument (open a file at a line and column) to openMobileFile. #27582 landed on main about half an hour later with an arity table that still listed 3. Each PR passed on its own; together they turned test shard 2/5 red on main ("openMobileFile: expected 4 to be 3"). The new argument is intended, so the test is the thing to update.

#28664 removed the push and schedule triggers from node-server-tests.yml, but headless-detector-compiler-cache.test.mjs still read workflow.on.push.paths and threw. Removing the trigger was intended, so the test now checks only the pull request trigger. The ci-cache-warmup.yml checks are unchanged since that workflow still has both triggers.

Linked Issue

N/A, main CI fix.

Visual Proof

N/A, test-only change.

Testing

  • pnpm vitest run src/main/runtime/orca-runtime-files-artifact-facade.test.ts: 4/4 pass (2 failed before the change)
  • Anti-slop oxlint on use-mobile-jira-connection-state.test.ts: 2 errors before, 0 after
  • pnpm vitest run config/scripts/headless-detector-compiler-cache.test.mjs: 13/13 pass (1 failed in CI before the change)
  • Automated tests added/updated, or explained why not below

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • 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)

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8802ce10-3a5e-4ef8-8089-a785776b7e2b
📥 Commits

Reviewing files that changed from the base of the PR and between 829fd0d and f691528.

📒 Files selected for processing: 1
  • mobile/src/tasks/use-mobile-jira-connection-state.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

📝 Walkthrough

The openMobileFile test fixture now expects an arity of 4 instead of 3. Its expected async status remains true. The workflow-path test now checks that .github/actions/prepare-headless-compiler/** is included for pull_request; it no longer checks push. The Jira connection test helper now uses a client type derived from the hook’s first parameter.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to f6915

This PR updates tests to match the existing method and workflow contracts and adjusts a test-only type annotation. No product behavior change or actionable merge risk is evident.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
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 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
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.
Title check Passed The title clearly identifies the main change: updating three tests after conflicting pull requests landed on main. It is concise and related to the changeset, although the wording is slightly informal…
Description check Passed The description explains the failure causes, the three test updates, the reason for each change, testing performed, and the absence of product changes. Visual proof is correctly marked N/A. Full repos…
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@Jinwoo-H Jinwoo-H changed the title test(runtime): expect openMobileFile's fourth position argument test: update two tests main broke when clashing PRs landed Oct 14, 2026
@Jinwoo-H Jinwoo-H changed the title test: update two tests main broke when clashing PRs landed test: update three tests main broke when clashing PRs landed Oct 14, 2026
@Jinwoo-H

Copy link
Copy Markdown
Contributor Author

Closing: main fixed all three of these tests on its own while this was in CI.

@Jinwoo-H Jinwoo-H closed this Oct 14, 2026
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