Skip to content

fix(ci): stabilize Docker boundary tests - #10859

Merged
cv merged 2 commits into
mainfrom
hotfix/main-ci-test-stability
Sep 2, 2026
Merged

cv merged 2 commits into
mainfrom
hotfix/main-ci-test-stability

Conversation

@cv

@cv cv commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

Restore deterministic CLI CI coverage for Docker boundary behavior and the conflict-fixer inference setup.

Reason

PR #10813 exposed two load-sensitive Docker tests, and current main additionally retained a stale conflict-fixer expectation after inference verification moved to Pi.

Changes

  • Use an explicit DOCKER_CONTEXT directly instead of invoking a five-second Docker context probe.
  • Remove incidental elapsed-time measurement while retaining broker timeout and process-group cleanup assertions.
  • Update the conflict-fixer assertion to the current --no-verify OpenShell invocation.

Verification

  • Contributor validation: Commit hooks passed except the source-shape budget was skipped only in the primary checkout because unrelated nested worktrees polluted its repository-wide scan; the complete hook ran and passed in the clean isolated checkout via npm run validate:pr.
  • Tests: Focused Vitest passed 100 tests across the affected CLI and integration files; repeated broker cleanup regression passed across five seeds; npm run validate:pr passed in a clean isolated checkout after npm run build:cli.
  • Broad gate: npm run validate:pr passed in a clean isolated checkout at 348bfaa after npm run build:cli.
  • Secrets review: The diff contains no secrets, API keys, or credentials

Review notes

  • Sensitive-path review: Independent review found no actionable findings; semantic broker timeout, process-group termination, persisted Docker context fallback, and credential handling remain covered.

Signed-off-by: Carlos Villela [email protected]

Summary by CodeRabbit

  • Bug Fixes
    • Improved Docker context handling during setup.
    • Explicitly selected contexts are now recognized immediately, including the default context.
    • Unsupported non-default contexts are rejected earlier with clearer, more predictable behavior.
    • Setup no longer performs an unnecessary Docker context check when the selected context is already known.

@cv cv self-assigned this Sep 2, 2026
@coderabbitai

coderabbitai Bot commented Sep 2, 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 1049b484-562a-4a19-b3e0-4ead037d7d68

📥 Commits

Reviewing files that changed from the base of the PR and between 63bc39d and 52da9c4.

📒 Files selected for processing (3)
  • src/lib/adapters/docker/client-isolation.ts
  • src/lib/onboard/runtime-provider/docker-state-mutation.test.ts
  • src/lib/onboard/sandbox-prebuild.test.ts

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


📝 Walkthrough

Walkthrough

The change classifies explicit Docker contexts without probing Docker and updates tests for broker response timing and context handling.

Changes

Docker context classification

Layer / File(s) Summary
Resolve explicit Docker contexts
src/lib/adapters/docker/client-isolation.ts, src/lib/onboard/sandbox-prebuild.test.ts
Explicit DOCKER_CONTEXT values classify default and non-default contexts directly. Tests verify that Docker context resolution is not called for these values.

Broker request test expectations

Layer / File(s) Summary
Update request and timeout assertions
src/lib/onboard/runtime-provider/docker-state-mutation.test.ts
sendBrokerRequest no longer returns elapsed time. The timeout test no longer checks a latency limit and retains timeout and process-group cleanup checks.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 52da9

The PR makes localized Docker locality and CI test-stability changes while preserving credential-isolation safeguards and timeout cleanup checks. Validation passed, and no actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: ericksoa

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ 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 checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: stabilizing Docker boundary CI tests.
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.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hotfix/main-ci-test-stability

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

@github-code-quality

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall line coverage in commit 52da9c4 in the hotfix/main-ci-test-... branch remains at 96%, unchanged from commit 63bc39d in the main branch.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor finished for commit 52da9c4. Include the Advisor findings in the complete PR feedback collection. Verify and group valid findings before repair.

All previous runs

@cv
cv merged commit 0e1b7d1 into main Sep 2, 2026
92 checks passed
@cv
cv deleted the hotfix/main-ci-test-stability branch September 2, 2026 05:55
@wscurran wscurran added the bug-fix PR fixes a bug or regression label Sep 9, 2026
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions platform: container Affects Docker, containerd, Podman, or images labels Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions bug-fix PR fixes a bug or regression platform: container Affects Docker, containerd, Podman, or images

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants