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

Make better use of caches in the build and test workflows #2034

Open
brianaydemir opened this issue Feb 20, 2025 · 0 comments · May be fixed by #2033
Open

Make better use of caches in the build and test workflows #2034

brianaydemir opened this issue Feb 20, 2025 · 0 comments · May be fixed by #2033
Assignees
Labels
infrastructure GitHub Actions, Release management, and CI internal Internal code improvements, not user-facing test Improvements to the test suite
Milestone

Comments

@brianaydemir
Copy link
Contributor

Following the improvements in #1972 and #2000, it turns out that there are a couple more areas for improvement:

  1. The Dockerfile that we use for building container images can instruct the build system to use cache mounts for Pelican's various web frameworks, in addition to Go's cache directories. When developing locally, this reduces build times by persisting those cache directories between builds. When running inside a GitHub Action, this reduces the size of the image layers that need to be cached, because cache mounts do not get preserved.

  2. The GitHub Actions for running tests can be modified (read as: fixed) to cache Next.js's cache directories as its own documentation intends. In Pelican's build process, the .next directory is actually being created under {repository_checkout_directory}/web_ui/frontend.

@brianaydemir brianaydemir self-assigned this Feb 20, 2025
@brianaydemir brianaydemir added test Improvements to the test suite infrastructure GitHub Actions, Release management, and CI internal Internal code improvements, not user-facing labels Feb 20, 2025
@brianaydemir brianaydemir added this to the v7.14 milestone Feb 20, 2025
@brianaydemir brianaydemir linked a pull request Feb 20, 2025 that will close this issue
@brianaydemir brianaydemir linked a pull request Feb 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure GitHub Actions, Release management, and CI internal Internal code improvements, not user-facing test Improvements to the test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant