Skip to content

fix(tests): symlink tmp dir to avoid cross-device errors on Linux tmpfs#293

Merged
DorianZheng merged 1 commit intomainfrom
fix/integration-tests-tmpfs-cross-device
Feb 23, 2026
Merged

fix(tests): symlink tmp dir to avoid cross-device errors on Linux tmpfs#293
DorianZheng merged 1 commit intomainfrom
fix/integration-tests-tmpfs-cross-device

Conversation

@DorianZheng
Copy link
Copy Markdown
Member

Summary

  • Integration tests fail on Linux when /tmp is a tmpfs (device 35) while the project directory is on a real disk (device 66305)
  • validate_same_filesystem() rejects the mixed-device layout because tmp stays on tmpfs while images and rootfs are symlinked to target/
  • Added tmp to the symlinked directories in both warm_home() and warm_dir() so all runtime dirs resolve to the same filesystem

Test plan

  • Verified on Linux GCE instance (boxlite-dev): zero "same filesystem" errors after fix
  • cargo clippy --tests clean
  • cargo check --tests clean

Integration tests fail on Linux when /tmp is a tmpfs (different device)
because validate_same_filesystem() rejects the mixed device layout.
Add tmp to the symlinked directories in warm_home() and warm_dir() so
all runtime dirs (images, rootfs, tmp) resolve to the same filesystem.
@DorianZheng DorianZheng force-pushed the fix/integration-tests-tmpfs-cross-device branch from 6b527a9 to 1fcda05 Compare February 23, 2026 15:01
@DorianZheng DorianZheng merged commit 5795a44 into main Feb 23, 2026
15 checks passed
@DorianZheng DorianZheng deleted the fix/integration-tests-tmpfs-cross-device branch February 23, 2026 15:05
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.

1 participant