Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testscripts: better caching with Docker #2245

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Sep 3, 2024

Mount a Docker volume to /nix when running docker-testscripts to speed up tests. Also set XDG_CACHE_HOME=/nix/cache so that the tarball and eval cache persist to the volume. Update setupTestEnv to share the pip cache between tests (the same way we do with Nix's cache).

This cuts the duration of python linker tests in half (down from about 1 minute to about 30s).

Mount a Docker volume to /nix when running `docker-testscripts` to speed
up tests. Also set `XDG_CACHE_HOME=/nix/cache` so that the tarball and
eval cache persist to the volume. Update `setupTestEnv` to share the pip
cache between tests (the same way we do with Nix's cache).

This cuts the duration of python linker tests in half (down from about 1
minute to about 30s).
@gcurtis gcurtis requested review from savil and mikeland73 September 3, 2024 16:39
@gcurtis gcurtis merged commit 0fdfc67 into main Sep 3, 2024
24 checks passed
@gcurtis gcurtis deleted the gcurtis/docker-testscripts-cache branch September 3, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants