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

ci: Download vmtest binary as root #125

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

danobi
Copy link
Member

@danobi danobi commented May 22, 2024

We were seeing permission issues on the kernel-patches/bpf-rc repo like this:

    Run libbpf/ci/run-vmtest@main
    Run BUILDDIR=$(realpath kbuild-output)
    Run curl -L https://github.com/chantra/danobi-vmtest/releases/download/v2.2.0/vmtest-$(uname -m) > /usr/bin/vmtest && chmod 755 /usr/bin/vmtest
    /home/runner/work/_temp/14c6d06a-568f-4cef-8b61-a2096f0485ed.sh: line 1: /usr/bin/vmtest: Permission denied

This is b/c kernel-patches/bpf runs on self-hosted runners where actions run as root. However, kernel-patches/bpf-ci runs on managed runners where actions are not given root by default.

Fix by ensuring root in both environments.

We were seeing permission issues on the kernel-patches/bpf-rc repo
like this:

        Run libbpf/ci/run-vmtest@main
        Run BUILDDIR=$(realpath kbuild-output)
        Run curl -L https://github.com/chantra/danobi-vmtest/releases/download/v2.2.0/vmtest-$(uname -m) > /usr/bin/vmtest && chmod 755 /usr/bin/vmtest
        /home/runner/work/_temp/14c6d06a-568f-4cef-8b61-a2096f0485ed.sh: line 1: /usr/bin/vmtest: Permission denied

This is b/c kernel-patches/bpf runs on self-hosted runners where actions
run as root. However, kernel-patches/bpf-ci runs on managed runners
where actions are not given root by default.

Fix by ensuring root in both environments.
@chantra chantra merged commit 2992ade into libbpf:main May 22, 2024
2 checks passed
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.

2 participants