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

Fix problem with bpftool in PTF tests #4277

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

tatry
Copy link
Contributor

@tatry tatry commented Dec 8, 2023

PTF tests recently fail due to failing build of bpftool used for some test cases. Solution is to use latest release instead of HEAD of main branch.

At least should work with bpftool v7.3.0

PTF tests recently fail due to failing build of bpftool used for some test cases. Solution is to use latest release instead of HEAD of main branch.

At least should work with bpftool v7.3.0
git clone --recurse-submodules https://github.com/libbpf/bpftool.git /tmp/bpftool
# get tag for latest release, see https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release
BPFTOOL_RELEASE_TAG=$(curl -s https://api.github.com/repos/libbpf/bpftool/releases/latest | jq '.tag_name' | sed 's/\"//g')
git clone --recurse-submodules --branch "$BPFTOOL_RELEASE_TAG" https://github.com/libbpf/bpftool.git /tmp/bpftool
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would just fix this to https://github.com/libbpf/bpftool/releases/tag/v7.3.0 instead?

Building with the latest release could also easily lead to breakage.

Copy link
Contributor Author

@tatry tatry Dec 8, 2023

Choose a reason for hiding this comment

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

Building with the latest release could also easily lead to breakage.

Yes, you are right. After some additional research (made after this PR) I can say that fix to v7.3.0 will be the best solution.

@fruffy fruffy merged commit 25b5957 into p4lang:main Dec 8, 2023
13 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