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 it faster the haskell building process for the task job in the CI #1776

Closed
jonaprieto opened this issue Jan 27, 2023 · 0 comments · Fixed by #1783
Closed

Make it faster the haskell building process for the task job in the CI #1776

jonaprieto opened this issue Jan 27, 2023 · 0 comments · Fixed by #1783

Comments

@jonaprieto
Copy link
Collaborator

The CI test task is redoing the job done by the build task, building the Haskell dependencies, including the codebase in src. We should find a way to reuse the work done by build.

One option seems to share artifacts between jobs.

@jonaprieto jonaprieto added this to the 0.3 - Valencia milestone Jan 27, 2023
jonaprieto added a commit that referenced this issue Jan 31, 2023
This PR addresses a caching issue in our CI by streamlining each
operating system's build and test processes, reducing CI time. 🤞 Also,
our caching strategy has been updated with the new restore/save actions.
For example, we aim to cache the .stack folder, and if the stack build
is successful, the .stack-build. The building documentation job
continues depending on the Linux build. Upon merging this PR, we get
back to the point where the CI maintain a cache for each OS to be shared
among all PRs, significantly reducing CI testing time. The expected
scenario is as follows. The CI can take, on average, 35' in Linux to
build and test everything. Using caching, that time is reduced to less
than 10'. macOS is a different story. It can easily take one hour, and
even more, the first time to build and test the project. After that, it
might take an average of 20'.

- Caching strategies
[descriptions](https://github.com/actions/cache/blob/main/caching-strategies.md#saving-cache-even-if-the-build-fails)
- Closes #1776
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants