What happens
TestRunAgent_HarnessLoadPipeline intermittently fails with:
"copying project code: creating tarball of \"/tmp/repo\": tar: /tmp/repo:
Cannot open: No such file or directory\ntar: Error is not recoverable:
exiting now\n: exit status 2" does not contain "openshell"
The test hardcodes /tmp/repo as the repo directory passed to runAgent. When /tmp/repo doesn't exist on the machine, the project-code-copying step (which tarballs the repo directory) fails before execution reaches the sandbox availability check. The test expects to hit the openshell error but gets a tar error instead.
The failure is sporadic because /tmp/repo may or may not exist depending on what other processes have run on the machine.
File: internal/cli/run_test.go:162
What should happen
The test should use t.TempDir() for the repo path so it always points to a real, isolated directory. This lets the tar step succeed and execution reach the expected openshell sandbox check.
Context
Encountered locally. The hardcoded path is a test-environment dependency that makes the test non-hermetic.
Mirrored from fullsend-ai#2386
What happens
TestRunAgent_HarnessLoadPipelineintermittently fails with:The test hardcodes
/tmp/repoas the repo directory passed torunAgent. When/tmp/repodoesn't exist on the machine, the project-code-copying step (which tarballs the repo directory) fails before execution reaches the sandbox availability check. The test expects to hit theopenshellerror but gets a tar error instead.The failure is sporadic because
/tmp/repomay or may not exist depending on what other processes have run on the machine.File:
internal/cli/run_test.go:162What should happen
The test should use
t.TempDir()for the repo path so it always points to a real, isolated directory. This lets the tar step succeed and execution reach the expectedopenshellsandbox check.Context
Encountered locally. The hardcoded path is a test-environment dependency that makes the test non-hermetic.
Mirrored from fullsend-ai#2386