fix(#229): stub sandbox.EnsureAvailable in TestRunAgent tests#263
fix(#229): stub sandbox.EnsureAvailable in TestRunAgent tests#263fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
Make the sandbox availability check injectable via a package-level sandboxEnsureAvailable variable so the five TestRunAgent_* harness-loading tests are hermetic regardless of whether openshell is installed on the host. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
E2E tests did not runE2E tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the See E2E testing guide for details. |
|
🤖 Finished Review · ❌ Failure · Started 12:56 PM UTC · Completed 12:57 PM UTC |
|
/fs-review |
|
🤖 Finished Review · ✅ Success · Started 4:02 PM UTC · Completed 4:13 PM UTC |
ReviewFindingsMedium
Labels: PR modifies sandbox availability check stubbing in internal/cli |
|
/fs-fix |
|
🤖 Finished Fix · ✅ Success · Started 5:44 PM UTC · Completed 5:51 PM UTC |
🔧 Fix agent — iteration 1 (human-triggered)The review agent's single finding (commit-message-prefix) is correct: this is a test infrastructure change, not a user-visible bug fix, so the PR title should use test(#229) instead of fix(#229). No code changes are needed — the fix is a PR title update that must be done by a maintainer. Fixed (1):
Tests: passed Updated by fullsend fix agent |
Summary
sandboxEnsureAvailablevariable (defaulting tosandbox.EnsureAvailable)TestRunAgent_*harness-loading tests now callstubSandboxCheck(t)to override this variable, making them hermetic regardless of whether openshell is installed on the hostheartbeatIntervalandoidcRefreshIntervalfor test-time dependency injectionCloses #229
Test plan
go vet ./internal/cli/...passesTestRunAgent_HarnessLoadPipeline,TestRunAgent_YMLFallback,TestRunAgent_HarnessLoadWithOrgConfig,TestRunAgent_MalformedOrgConfig,TestRunAgent_WithURLBasego test ./internal/cli/...passes (4 pre-existing failures infetchserver_test.gounrelated to this change)🤖 Generated with Claude Code