This is an archive of the discontinued LLVM Phabricator instance.

CI: run "apt update" once per job before installing packages
AcceptedPublic

Authored by charlesthobe on Jun 3 2023, 6:47 AM.

Details

Reviewers
tstellar
Summary

Fixes failure of "Release Binaries" github workflow run.

Diff Detail

Event Timeline

charlesthobe created this revision.Jun 3 2023, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2023, 6:47 AM
charlesthobe requested review of this revision.Jun 3 2023, 6:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2023, 6:47 AM
tstellar accepted this revision.Jun 3 2023, 6:48 AM

LGTM. Thank You.

This revision is now accepted and ready to land.Jun 3 2023, 6:48 AM

there's a double sudo, one second while I fix it.

removed double "sudo"

removed double "sudo"

LGTM.

LGTM. Thank You.

You're welcome 😄

Do you need me to commit this for you? If so, what name and email should I use for the commit author?

charlesthobe added a comment.EditedJun 3 2023, 7:03 AM

Do you need me to commit this for you? If so, what name and email should I use for the commit author?

username: charlesthobe
name: Charles the Thobe
my email is: charlesthethobe@gmail.com

charlesthobe added a comment.EditedJun 3 2023, 7:16 AM

commit message should be:

CI: run "apt update" once per job before installing packages

imo

charlesthobe retitled this revision from CI: run "apt update" before installing any packages to CI: run "apt update" once per job before installing packages.Jun 3 2023, 8:33 AM

One second please I have an improvement to make

Use "apt update" before "llvm/actions/install-ninja" which uses "apt install" without "apt update" beforehand
Apt update is now its own step for ease of readability and a less hacky looking solution with running it within the first step which installs packages

I apologize for the too many revisions, and that the initial patch wasn't in a production ready state, but it's now ready for merging, I believe.

charlesthobe added inline comments.Jun 4 2023, 4:10 AM
.github/workflows/release-binaries.yml
65

Comment on the original behavior:
The matrix only has one element in the "runs-on" array which is "ubuntu-22.04-8x32" so a check for the runner OS or the value of the array element isn't needed, also the check is absent from other checks, if in the future this matrix array is going to be expanded then checks are gonna have to be added.

85

Comment on the original behavior:
This condition is never met.

charlesthobe marked an inline comment as not done.Jun 4 2023, 4:12 AM
charlesthobe added inline comments.
.github/workflows/release-binaries.yml
65

Comment on the original behavior:
The matrix only has one element in the "runs-on" array which is "ubuntu-22.04-8x32" so a check for the runner OS or the value of the array element isn't needed, also the check is absent from other steps, if in the future this matrix array is going to be expanded then checks are gonna have to be added.

charlesthobe marked 2 inline comments as not done.Jun 4 2023, 4:17 AM

these were just comments on why I don't have a check for ubuntu in this area, nothing needs to be done.

I think this is ready for review unless you see problems in it?