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

GitHub Actions: Install the same packages in all jobs. #2536

Merged
merged 1 commit into from Jun 25, 2020

Conversation

richardxia
Copy link
Member

Related issue:

Type of change: bug report

Impact: no functional change

Development Phase: implementation

Release Notes

GitHub seems to have a very high failure rate when restoring artifacts from the cache. When this happens, the build will attempt to compile some of the cached artifacts, such as riscv-tools, from scratch. Because we were not installing all of the packages required for building the artifacts in the later jobs, if the cache restoration step fails, then the build will fail.

Installing the same packages across all jobs will ensure that even if the cache fails to restore, then our jobs will still succeed, albeit more slowly.

GitHub seems to have a very high failure rate when restoring artifacts
from the cache. When this happens, the build will attempt to compile
some of the cached artifacts, such as riscv-tools, from scratch. Because
we were not installing all of the packages required for building the
artifacts in the later jobs, if the cache restoration step fails, then
the build will fail.

Installing the same packages across all jobs will ensure that even if
the cache fails to restore, then our jobs will still succeed, albeit
more slowly.
Copy link
Member

@aswaterman aswaterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@aswaterman aswaterman merged commit 4df06cc into master Jun 25, 2020
@aswaterman aswaterman deleted the unify-github-action-apt-packages branch June 26, 2020 05: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.

None yet

2 participants