Skip to content

Fix downloads and test-suites dirs not skipped during run sync#363

Merged
robinaugh merged 1 commit intomainfrom
fix-skip-dirs-in-rwx-directory-sync
Feb 18, 2026
Merged

Fix downloads and test-suites dirs not skipped during run sync#363
robinaugh merged 1 commit intomainfrom
fix-skip-dirs-in-rwx-directory-sync

Conversation

@robinaugh
Copy link
Contributor

@robinaugh robinaugh commented Feb 18, 2026

Problem

When running rwx run, files in .rwx/downloads were being included in the directory size calculation, causing runs to potentially fail with:

Error: unable to load directory "/Users/.../skill-evals/.rwx": the size of the these files exceed 5MiB: /Users/.../skill-evals/.rwx

The workaround was to manually delete the .rwx/downloads folder before running.

Summary

  • The skipDirs check in readRwxDirectoryEntries only matched prefixed paths like .rwx/downloads, but when called via rwxDirectoryEntries (the code path used for rwx run), relativeTo is set to the .rwx dir itself, so entry.Path is just downloads — the skip never matched.
  • Added the unprefixed directory names ("downloads", "test-suites") to skipDirs so the skip works in both call paths.
  • This bug was introduced in Make every directory we load look like a .mint directory #159 which changed the relativeTo logic but didn't update the skipDirs values to match.

Test plan

  • Added test in files_test.go that creates a large downloads dir inside .rwx and verifies it doesn't count against the 5MiB size limit
  • Updated existing service_run_test.go assertions to reflect that test-suites is now correctly excluded (matching the original intent from Load from the .rwx dir if it exists #158)

@robinaugh robinaugh self-assigned this Feb 18, 2026
…n sync

The skipDirs check in readRwxDirectoryEntries only matched prefixed paths
like ".rwx/downloads", but when called via rwxDirectoryEntries (the path
used for runs), relativeTo is set to the .rwx dir itself, so entry.Path
is just "downloads". Add the unprefixed names when relativeTo is set so
the skip works in both call paths.

This bug was introduced in #159 which changed the relativeTo logic but
didn't update the skipDirs values to match.
@robinaugh robinaugh force-pushed the fix-skip-dirs-in-rwx-directory-sync branch from e53979b to e8835a6 Compare February 18, 2026 18:36
@robinaugh robinaugh marked this pull request as ready for review February 18, 2026 18:38
@robinaugh robinaugh merged commit b7efd6b into main Feb 18, 2026
1 check passed
@robinaugh robinaugh deleted the fix-skip-dirs-in-rwx-directory-sync branch February 18, 2026 20:04
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

Comments