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

Run RBE tests on linux-arm64 #6289

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Run RBE tests on linux-arm64 #6289

merged 4 commits into from
Apr 3, 2024

Conversation

bduffany
Copy link
Member

@bduffany bduffany commented Apr 2, 2024

Adds a GitHub workflow that runs applicable RBE tests on linux-arm64 runners.

Related issues: N/A

@bduffany bduffany changed the title [WIP] Run a subset of RBE tests on linux-arm64 Run a subset of RBE tests on linux-arm64 Apr 2, 2024
@bduffany bduffany changed the base branch from master to podman-test-nobare April 2, 2024 20:31
@bduffany bduffany marked this pull request as ready for review April 2, 2024 20:31
@bduffany bduffany force-pushed the rbetest-linux-arm64 branch 2 times, most recently from ab62a1e to d7ffd53 Compare April 2, 2024 20:38
@bduffany bduffany marked this pull request as draft April 2, 2024 20:56
@bduffany bduffany force-pushed the rbetest-linux-arm64 branch 9 times, most recently from 56a2918 to ac8b331 Compare April 2, 2024 21:20
@bduffany bduffany changed the title Run a subset of RBE tests on linux-arm64 Run RBE tests on linux-arm64 Apr 2, 2024
@bduffany bduffany force-pushed the rbetest-linux-arm64 branch 2 times, most recently from 755416d to cc443ac Compare April 2, 2024 21:32
Base automatically changed from podman-test-nobare to master April 2, 2024 21:35
@bduffany bduffany force-pushed the rbetest-linux-arm64 branch 6 times, most recently from 2b1e191 to b663332 Compare April 2, 2024 21:56
@bduffany bduffany force-pushed the rbetest-linux-arm64 branch 2 times, most recently from 38f538f to 7721959 Compare April 2, 2024 22:04
@bduffany bduffany force-pushed the rbetest-linux-arm64 branch 5 times, most recently from 5d35f47 to 0ce5055 Compare April 2, 2024 22:34
@bduffany bduffany marked this pull request as ready for review April 2, 2024 22:34
Copy link
Contributor

@sluongng sluongng left a comment

Choose a reason for hiding this comment

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

A few nits and questions, but LGTM.

Very excited to see this being added!

Comment on lines +20 to +33
# GitHub's arm64 runners do not have the same pre-installed software as
# the amd64 runners so we have to install a few things here.

- name: Install bazelisk
run: |
curl -L --output /tmp/bazelisk https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-arm64
chmod +x /tmp/bazelisk
sudo mv /tmp/bazelisk /usr/bin/bazelisk
sudo ln -s /usr/bin/bazelisk /usr/bin/bazel

- name: Install apt packages
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ podman
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we run these in an ARM64 container? 🤔
https://docs.github.com/en/actions/using-jobs/running-jobs-in-a-container

It could simplify this setup by quite a bit.

Copy link
Member Author

Choose a reason for hiding this comment

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

Container jobs aren't supported in the arm runners beta yet - idk if it's mentioned in the public docs but they mentioned that in their email.

[engine]
cgroup_manager = "cgroupfs"
'
mkdir -p ~/.local
Copy link
Contributor

Choose a reason for hiding this comment

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

dumb question: why is ~/.local needed to be created manually here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Don't remember why I added this but it works without it - removed.

@@ -380,9 +385,13 @@ func TestForceRoot(t *testing.T) {
}

func TestUser(t *testing.T) {
if runtime.GOARCH == "arm64" {
// TODO: build podman ourselves, and remove this
t.Skipf("--passwd arg is not yet supported by podman version available on GitHub actions runner")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: specify the expected vs actual version number so we can flip this in the future when newer versions become available.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@bduffany bduffany merged commit e5a16ea into master Apr 3, 2024
13 of 17 checks passed
@bduffany bduffany deleted the rbetest-linux-arm64 branch April 3, 2024 13:32
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

4 participants