You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove 338 low-value cases and 28 suites - #34234
Removes 338 low-value test registrations after reviewing 123 sources across renderer, main, mobile and shared code, including 28 entire suites. Production code is unchanged.
Deletes literal inventories, presentation checks, simple argument builders and synthetic smoke. Keeps 398 authored cases covering ownership, input limits, cleanup and stream behavior; eight reviewed sources remain unchanged. Removes 28 obsolete timing keys and the deleted preview suite from its active reliability command, preserving historical evidence.
Validation: isolated AST preservation, formatting, lint, metadata, patch and reliability-gate checks passed. Refreshed against current main. Fresh non-draft CI and the retained performance-contract route are required before merge.
The diff removes or narrows test coverage across main-process, renderer, and shared code. It adds a generic rejection-notice test while removing several other structured-agent session assertions. It also removes the preview visibility test from the reliability gate and deletes timing records for removed test files.
Priority: Low
Merge Risk: Low · up to cd90b
The change appears mergeable with owner awareness: correct the misleading gate history and consider retaining focused checks for the removed identity and integration behaviors.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Description check
The description covers the core of the change: what was removed (338 low-value test registrations, 28 suites), the categories of tests removed, what was kept, and the validation performed. It also sta…
Rewrite the description using the repository template. Add these sections: ELI5 (plain-language summary); What Changed (before and after, plus the mechanism); Why (the problem and why deleting these tests beats the alternatives, such as rew…
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title "test: remove 338 low-value cases and 28 suites" accurately describes the main change: the PR removes 338 test cases and 28 test suites. It uses a conventional commit prefix and is concise. …
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "test: remove 338 low-value cases and 28 suites" accurately describes the main change: the PR removes 338 test cases and 28 test suites. It uses a conventional commit prefix and is concise. It does not name the specific areas touched, but the description and objectives confirm the change is a test-only cleanup, so the title is clear enough for a teammate scanning history.
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 20 files. (1 skipped: 1 unsupported.)
Full details: Description check
Explanation
The description covers the core of the change: what was removed (338 low-value test registrations, 28 suites), the categories of tests removed, what was kept, and the validation performed. It also states that production code is unchanged. It does not follow the repository template. It lacks the ELI5, Linked Issue, Visual Proof, Testing checklist, AI Disclosure, Review, and Agent skill upstream boundary sections, and it has no 'Why' explanation for the alternatives considered. The raw LoC table and the claim that production code is unchanged also conflict with the raw summary, which lists 2 prod files with 3 additions and 37 deletions in the reliability-gate and CI timing config files, plus the PR objectives note of 2 production files changed.
Resolution
Rewrite the description using the repository template. Add these sections: ELI5 (plain-language summary); What Changed (before and after, plus the mechanism); Why (the problem and why deleting these tests beats the alternatives, such as rewriting or keeping them); Linked Issue (an actual issue reference, since 'Fixes #' is empty; maintainers should attach a pre-existing issue); Visual Proof (write N/A with the reason, since no UI changes are claimed); Testing (the platforms actually tested and the checks run); AI Disclosure (state the model if AI was used, or leave blank for internal contributors); Review and Agent skill upstream boundary (complete the checkbox); and Checklist. Also correct the statement that production code is unchanged. The LoC table reports 2 production files changed (+3/-37), which are likely config/reliability-gates.jsonc and config/scripts/ci-shard-timings.json. Explain those changes, or state that they are config files and not production code.
Finishing Touches
📝 Generate docstrings
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.
The removed test checked that listAssignableUsersBySlug retains a seeded login when the provider omits it and does not duplicate a login the provider returns. The remaining test covers labels, not assignees. Keep those two behavioral assertions so a merge regression does not silently remove assignees from the returned options. (raw.githubusercontent.com)
Preserve a behavioral check for registered agent IDs.
After this deletion, the successful RPC test accepts { agents: [] }. Such a response would hide every registered agent while the test stays green. Keep an assertion derived from this build’s registrations, without pinning a literal agent list. The retained throwing stub already protects the tested path against host installation. (raw.githubusercontent.com)
The removed cases were the only cases in this file that exercised the shared managed-home path with and without an active account. The classifier must return managed in the first state and system in the second. Restore those two assertions; the retained pinned-home and system-home tests cannot catch a regression in this selection-dependent branch. (raw.githubusercontent.com)
Keep a direct assertion for the adopted session identity.
The retained adoption tests compare fingerprints but do not assert params.resumeFrom. A fingerprint can remain correct if a later change omits resumeFrom from the returned create params. Keep an assertion that the returned field contains the requested providerSessionId. (raw.githubusercontent.com)
Based on learnings, identity-sensitive tests should assert the field that determines the resulting identity, not only adjacent metadata.
Retain the concrete-host assertion for destructive targets.
The golden tests protect composed identity bytes, not hostWorktreeTarget. Keep a test that asserts the target carries the supplied hostId; that field selects the host for a destructive operation. (raw.githubusercontent.com)
Based on learnings, identity-sensitive tests should assert the field that determines the resulting identity, not only adjacent metadata.
Source: Learnings
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 4546902d-9d0a-4dca-85ee-8689866fd35f
Commits
Reviewing files that changed from the base of the PR and between 1fdf896 and cd90b31.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
"summary": "189/189 over the grant, reader, protocol, guest-policy, scheme-admission, plan-routing, action-visibility, failure-message, external-link and terminal-row contracts. This replaces the 2026-08-27 record of the same command at 174/174, whose thirteenth file was the deleted doc-preview-external-link-bridge.test.ts: the STA-5758 hardening moved that behavior into the reader-facing confirmation (doc-preview-external-link-confirmation.test.ts), which now proves the exact destination is shown and nothing opens on cancel, alongside everything the retired run carried — the stale-mint rejection that must not evict a reopened preview tab, the CSP header and session request filter, the SSH symlink refusal, subframe containment, truncated and over-cap reads, the unservable-asset and empty-file split, the out-of-worktree paired refusal, and the guest deny-only navigation sinks. The count also carries the entry-only rule added on top of the hardening: a grant whose document directory is its own request base — a workspace-root or out-of-workspace document — reads nothing but the entry file until the reader approves a directory, at both the lexical and the canonical containment pass, because that directory is where secrets live and a DNS-prefetch beacon needs no click."
"summary": "189/189 over the grant, reader, protocol, guest-policy, scheme-admission, plan-routing, action-visibility, failure-message, external-link and terminal-row contracts. This replaces the 2026-08-27 record of the same command at 174/174, whose thirteenth file was the deleted doc-preview-external-link-bridge.test.ts: the STA-5758 hardening moved that behavior into the reader-facing confirmation (doc-preview-external-link-confirmation.test.ts), which now proves the exact destination is shown and nothing opens on cancel, alongside everything the retired run carried — the stale-mint rejection that must not evict a reopened preview tab, the CSP header and session request filter, the SSH symlink refusal, subframe containment, truncated and over-cap reads, the unservable-asset and empty-file split, the out-of-worktree paired refusal, and the guest deny-only navigation sinks. The count also carries the entry-only rule added on top of the hardening: a grant whose document directory is its own request base — a workspace-root or out-of-workspace document — reads nothing but the entry file until the reader approves a directory, at both the lexical and the canonical containment pass, because that directory is where secrets live and a DNS-prefetch beacon needs no click.",
The reason will be displayed to describe this comment to others. Learn more.
Minor · Maintainability & Code Quality · Quick win
Correct the historical test attribution.
The summary says the prior 174/174 run's thirteenth file was doc-preview-external-link-bridge.test.ts. The retained command at Line 6445 lists src/main/terminal-file-link-actions.test.ts thirteenth and does not include the bridge test. Correct the summary so the gate records the actual prior command and removed file.
Merge base 0571e45, fork tip before this sync 7b86cb0 (rollback tag
archive/pre-sync-7b86cb0846), upstream tip f173998.
Upstream's delta is 22,767 files (+510,839 / -404,589): a feature wave (WSL
host chat, Jira board rework, team agents) plus two large test-retirement
sweeps ("remove low-value cases", stablyai#33770/stablyai#34156/stablyai#34161/stablyai#34234) and a
consolidated `config/scripts/run-lint.mjs` replacing package.json's inline
lint chain.
431 conflicted paths / 621 hunks. Tiers: 255 hunks proved mechanically by
`conflicts.mjs --apply-proven` (167 paths written), 69 `docs/agents-md-refs`
files removed as upstream churn absent from both tips, 27 deletions taken
from `expected-deletions.json` plus the retired-test policy in the ledger, and
the remaining 163 paths resolved in 13 disjoint batches against
`local/sync/convergence-ledger.md`.
Breaks the merge left with no conflict marker, all repaired here:
- Three fork ratchets (check:process-host-imports,
check:workspace-path-sync-fs-ratchet, check:compat-boundary-imports) were
dropped by upstream's consolidated lint runner; the gate now expands
`LINT_STEPS` back into one step each and fails closed if it cannot.
- Fork-only importers pointed at modules upstream moved: filesystem-auth,
filesystem-search-file-paths, remote-runtime-*, source-control-base-ref-
resolution, task-page-jira-create-fields, agent-status, and
use-task-page-composer-actions (16 imports in `tc:node`, 14 in `tc:web`).
- `RuntimeRepositorySettingsController` gained a required
`notifyWorktreesChanged`; the fork's extracted owned-controllers wiring would
have thrown at runtime.
- Two union resolutions were syntactically broken
(service-full-cycle-preparation, wsl-orca-env duplicate identifier).
- Two settings keys upstream added were unclassified in the fork's host-sync
disposition map; four upstream settings added since the last sync needed a
disposition each.
- `sync:localization-catalog` rejected a reused key: the fork's "Gemini CLI
(legacy)" heading and upstream's "Gemini" label shared one key, so the
heading has its own key now.
- Nine non-English locales carried upstream translations for two toasts the
fork rewords (different placeholders); the stale entries are retired and
fall back to the fork's English overlay.
- Thirteen upstream-owned files sat 1-18 code lines over the max-lines budget
once the fork's delta was merged in: exempted with a directive and a baseline
row per LOCAL-PATCHES § local(lint), whose rule is ownership not size. The
orcad-entry row went stale and was pruned.
Decisions and evidence: LOCAL-PATCHES.md § Sync log and
local/sync/convergence-ledger.md.
nplez1
added a commit
to nplez1/orca
that referenced
this pull request
Oct 28, 2026
…n scan
The merge left `locales/en.json` and the fork overlay carrying entries the merged
source no longer references — mostly test-harness fixtures for the suites
upstream retired in stablyai#33770/stablyai#34156/stablyai#34161/stablyai#34234 — and nine English entries whose
source copy moved on, so the catalog still rendered the old sentence.
198 orphan keys removed from every locale catalog, the fork overlay and
`locale-ko-key-overrides.json`; the nine drifted entries now carry the source's
copy, each differing placeholder string moved to its own key
(`AccountsPane.aa4de4475b` for the fork's "Gemini CLI (legacy)" heading), and
the translations of the reworded sentences retired so they fall back to English
rather than render a stale sentence with the wrong placeholders.
`sync:localization-runtime-catalog` then regenerated the runtime subset.
Also fixes the post-sync deletion scan: it disabled rename detection on our
side only, so an upstream *rename* of a fork-untouched file read as a fork-only
deletion with a lost export (`terminal-file-link-detection-ranges.ts`, renamed
by stablyai#33964). Both sides now run with `--no-renames`.
Verified: post-sync PASS (11 checks), pnpm tc clean on node/web/cli, oxlint
clean, identity sweep 0 fixable.
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
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.
Removes 338 low-value test registrations after reviewing 123 sources across renderer, main, mobile and shared code, including 28 entire suites. Production code is unchanged.
Deletes literal inventories, presentation checks, simple argument builders and synthetic smoke. Keeps 398 authored cases covering ownership, input limits, cleanup and stream behavior; eight reviewed sources remain unchanged. Removes 28 obsolete timing keys and the deleted preview suite from its active reliability command, preserving historical evidence.
Validation: isolated AST preservation, formatting, lint, metadata, patch and reliability-gate checks passed. Refreshed against current main. Fresh non-draft CI and the retained performance-contract route are required before merge.