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
fix: bound local iteration checks and show live progress - #34700
Repeated edits could trigger branch-wide checks with buffered test output. pnpm check:iteration --maxWorkers=2 checks uncommitted work against HEAD, while check:changed keeps its branch handoff scope. Both show progress and enforce a deadline per step. Cache and dependency-record repairs prevent the false passes reproduced during review.
What Changed
Separate branch/iteration pass caches, normalize inventory and shard settings, fingerprint supported runtime/build context, and rehash inputs before saving a pass. Failed forced or overlapping rechecks invalidate matching earlier passes. Explicit invalid bases fail clearly.
Attest the actual dependency-record cache alongside source inputs. Stronger failure records invalidate older passes; newly incomplete records arriving during checks fail the gate. Resolve custom cache paths in a supervised step and bound evidence reads. Successful record updates can be cached immediately; unavailable record data disables caching.
Preserve dependency unions after failed/partial tests and retry those suites until success. Revalidate successful records against source closures and resolved configuration/runtime context; retain the existing large-cold-cache static fallback. Deleted sources conservatively select the full inventory for the chosen scope.
Print commands, completions, deadlines, 15-second heartbeats, and Vitest progress. Apply worker limits to concurrent check tasks and use the source process runner for bootstrap builds too.
Release owned process streams on fallback settlement, handle SIGHUP cancellation, retain bounded stdout/stderr failure tails, and cancel checks when output consumers fail. Bound live forwarding and final drain; the direct CLI exits unsuccessfully after cleanup if Node's protected stdio remains blocked.
Preserve the writable CommonJS synchronous-runner export used by existing process instrumentation. Replace incomplete subprocess test doubles with the existing shared fixture backed by real streams, preserving late-close and admission-lifetime assertions.
Document the iteration versus handoff commands and how agents should stream/poll checks. The local invocation audit found 148 branch-check calls, all using --maxWorkers=2, with substantial output redirection and repeated calls.
Why
Repeated local feedback needs a smaller explicit scope, visible progress, and trustworthy passing-result reuse. The branch handoff command keeps its existing meaning and CI retains full global-input coverage.
Visual Proof
N/A — developer CLI and test configuration changes; no rendered UI changes.
Testing
Full PR workflow passed on ca4436227b57a28c3892ee0c4dea802091f44174, including all five full unit shards, Linux/Windows packaging, compatibility, selected end-to-end checks, and the PR checks passed aggregate.
ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 --stepTimeoutMs=900000: all 36 checks passed, including 479 tests, in 462.7 seconds on the final commit. The default-budget run hit the affected-selection deadline under concurrent machine load; the documented longer per-step budget completed the same checks.
The standard pnpm check:changed --maxWorkers=2 then returned the validated cached pass in under one second. All 33 review-pinned source/installed-package hashes still matched, and the worktree remained clean.
CI fixture integration follow-up: 43 suites / 457 tests passed against the final synchronous fixture; CLI/node typechecks, lint and formatting passed. The final type-only spy annotation passed all four projects under CI-mode Bun, and independent transpilation confirmed byte-identical JavaScript. Independent review additionally passed 137 tests across 13 files and a real production preload probe, with zero changed test assertions.
Full process-host package suite: 161 tests passed. Final six-file selection/cache/runner integration suite: 34 tests passed. An independent adversarial reviewer verified 32 gate/control rows, 22 dependency-record probes, and final metadata/admission controls against the repaired snapshot; no remaining P1/P2 blocker was reproduced.
Real subprocess regressions cover inherited descendant pipes, caller exit, SIGINT/TERM/HUP, closed/nonreading output consumers, retained diagnostics, final-summary failure, input mutation, overlapping checks, cold/warm deleted consumers, concurrent failure evidence, configuration-resolution failures/timeouts, and special-file evidence reads. Real Bun/Node fixtures cover failed/partial/stale records, resolved context, import mutation during execution, and more than 100 cold files.
Corrected transform instrumentation attaches to both runtime projects and proves observation with known positive controls. Warm records avoid unrelated transforms; the large cold fallback scans import graphs without executing unrelated suites. An independent private-copy rerun passed.
Verified canonical patch application and frozen-lockfile installation; preserved the original dependency graph. Verified iteration discovery matches CI inventory; ordinary local discovery retains the additional dedicated-lane files.
Runtime evidence is Linux; native macOS/Windows execution was not run locally. No rendered UI changes.
Limits
The deadline applies per step, with additional shutdown time. Escaped POSIX descendants or uncatchable parent termination can require separate cleanup; releasing a pipe is not proof those descendants died. Affected selection still cannot infer arbitrary filesystem/subprocess inputs or never-executed computed imports. Global inputs retain CI's broader coverage, and gates validate materialized working bytes rather than divergent index blobs or an immutable snapshot. Dependency evidence attests observable records: it cannot recover overwritten failure history or make concurrent filesystem changes atomic.
AI Disclosure
Prepared with OpenAI Codex, with independent adversarial review workers.
Review
Self-reviewed correctness, performance, cache validity, and resource cleanup; independent adversarial review completed against the final source hashes.
Cross-platform process execution uses the existing process-host wrappers; no application/mobile/remote protocol changes. Native macOS/Windows execution remains with CI.
This change copies no upstream skill-installer material.
The change adds a worktree iteration check that compares staged, unstaged, and untracked edits with HEAD. The branch check continues to compare changes with a merge base. Both checks use scope-specific pass caching and managed task execution with configurable timeouts and concurrency. Worktree checks select the CI unit inventory. Dependency records now include freshness signatures and context, and incomplete or stale records affect test selection and pass caching. Process execution reports unverified termination and supports bounded live output. Package scripts, documentation, and tests cover the updated behavior.
Priority: Low
Merge Risk: Moderate · up to 59e8c
The shared test fixture fails the TypeScript typecheck in CI, which blocks the static analysis job. Adding explicit type annotations to the mocked kill and unref members should fix it before merge.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 13.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title is concise and accurately summarizes the main changes: bounded local iteration checks and live progress output.
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.
Description check
The description is detailed and covers the change, rationale, testing, visual proof, AI disclosure, review notes, limitations, and cross-platform status. It does not include the template's Linked Issu…
Full details: Description check
Explanation
The description is detailed and covers the change, rationale, testing, visual proof, AI disclosure, review notes, limitations, and cross-platform status. It does not include the template's Linked Issue/Fixes # section or the full checklist, but the missing items are non-critical for assessing this change; add them if repository policy requires them, especially for outside contributors.
Full details: Docstring Coverage
Explanation
Docstring coverage is 13.89% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 36 functions across 23 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Functional Correctness · Quick win
Annotate the mocked kill and unref members to fix the CI typecheck.
The exported createFakeSpawnedChild returns a FakeSpawnedChild instance. Declaration emit must name the inferred types of its vi.fn() members. TypeScript cannot name those types without Vitest's internal Procedure type, so it reports TS2883 on Line 16. As a result, pnpm run typecheck:ci fails for config/tsconfig.node.json and config/tsconfig.tc.web.json, and the static analysis job fails. Add explicit Mock<...> annotations. Line 15 has the same inferred-type pattern, so annotate it too.
🐛 Proposed fix
-import { vi } from 'vitest'+import { vi, type Mock } from 'vitest'
GitHub Actions: PR 34700 | source ebd8d55 | workflow ebd8d55 | unit full / 15_static analysis and typecheck.txt
[error] 16-16: TypeScript TS2883: The inferred type of 'unref' cannot be named without a reference to Vitest's 'Procedure' type. Add an explicit type annotation. This error caused pnpm run build:mobile-web to fail (bun config/tsconfig.node.json and bun config/tsconfig.tc.web.json exited with code 1).
GitHub Actions: PR 34700 | source ebd8d55 | workflow ebd8d55 | unit full / static analysis and typecheck
[error] 16-16: TypeScript TS2883: The inferred type of 'unref' cannot be named without a reference to Vitest's 'Procedure' type. Add an explicit type annotation. The typecheck failed (bun config/tsconfig.node.json and bun config/tsconfig.tc.web.json; command: pnpm run typecheck:ci --bun-concurrency=2 --bun-threads=2).
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.
ELI5
Repeated edits could trigger branch-wide checks with buffered test output.
pnpm check:iteration --maxWorkers=2checks uncommitted work against HEAD, whilecheck:changedkeeps its branch handoff scope. Both show progress and enforce a deadline per step. Cache and dependency-record repairs prevent the false passes reproduced during review.What Changed
--maxWorkers=2, with substantial output redirection and repeated calls.Why
Repeated local feedback needs a smaller explicit scope, visible progress, and trustworthy passing-result reuse. The branch handoff command keeps its existing meaning and CI retains full global-input coverage.
Visual Proof
N/A — developer CLI and test configuration changes; no rendered UI changes.
Testing
ca4436227b57a28c3892ee0c4dea802091f44174, including all five full unit shards, Linux/Windows packaging, compatibility, selected end-to-end checks, and the PR checks passed aggregate.ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 --stepTimeoutMs=900000: all 36 checks passed, including 479 tests, in 462.7 seconds on the final commit. The default-budget run hit the affected-selection deadline under concurrent machine load; the documented longer per-step budget completed the same checks.pnpm check:changed --maxWorkers=2then returned the validated cached pass in under one second. All 33 review-pinned source/installed-package hashes still matched, and the worktree remained clean.Limits
The deadline applies per step, with additional shutdown time. Escaped POSIX descendants or uncatchable parent termination can require separate cleanup; releasing a pipe is not proof those descendants died. Affected selection still cannot infer arbitrary filesystem/subprocess inputs or never-executed computed imports. Global inputs retain CI's broader coverage, and gates validate materialized working bytes rather than divergent index blobs or an immutable snapshot. Dependency evidence attests observable records: it cannot recover overwritten failure history or make concurrent filesystem changes atomic.
AI Disclosure
Prepared with OpenAI Codex, with independent adversarial review workers.
Review