Skip to content

fix(eval): run tar with relative paths so the SWE-chat harness works on Windows - #164

Merged
kushalpatil07 merged 1 commit into
Autoloops:mainfrom
chiragbiradar:fix/eval-tar-windows-paths
Jul 29, 2026
Merged

fix(eval): run tar with relative paths so the SWE-chat harness works on Windows#164
kushalpatil07 merged 1 commit into
Autoloops:mainfrom
chiragbiradar:fix/eval-tar-windows-paths

Conversation

@chiragbiradar

Copy link
Copy Markdown
Contributor

While building the notes benchmark arm (#160) I hit the SWE-chat harness failing on Windows at the base-archive extraction step for every runner, including baseline --fixture-only:

tar: Child returned status 128
tar: Error is not recoverable: exiting now

Cause: GNU tar interprets absolute Windows paths (C:\...) passed to -f/-C as remote host specs (host:path). prepareTargetRepo in run.ts and build-memory.ts passes both the archive path and the extract dir as absolute paths.

Fix: invoke tar from the run directory with paths relative to it. No behavior change on Unix; no GNU-specific flags (--force-local would break bsdtar on macOS).

Verified on Windows: --runner baseline --fixture-only now completes ("Fixture prep passed") where it previously crashed at extraction; npm run typecheck and npm run build clean; git diff --check clean.

Note: scripts/memory-build/collect-repo-snapshot.ts has the same pattern — left untouched to keep this scoped to the eval harness, happy to fix it there too if wanted.

…on Windows

GNU tar interprets absolute Windows paths (C:\...) in -f/-C as remote
host specs and exits with 'Child returned status 128', so prepareTargetRepo
failed for every runner on Windows. Invoke tar from the run directory
with paths relative to it instead; behavior on Unix is unchanged.

Verified: --fixture-only now completes on Windows (previously failed at
extraction) and typecheck/build are clean.
@kushalpatil07
kushalpatil07 merged commit e3bb2e0 into Autoloops:main Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants