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

elf_reader_test: Fix CI by disabling the "test_log_fixup" selftest #1385

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

dylandreimerink
Copy link
Member

The "test_log_fixup" selftest is broken on purpose, with the goal of testing error messages. Due to changes in #1364 we now emit a poison instruction in bad_relo_subprog on a instruction which also has a reference to a BPF-to-BPF function. This causes the symbol/reference resolution step to fail.

This error is flaky, it only happens when bad_relo_subprog is loaded first. If any other program in the collection is loaded first due to random hash map ordering we skip the test instead due to the test checking for verifier errors.

Since this test is broken on purpose, we previously just always hit this skip condition. This commit disabled this selftest explicitly which resolves the CI flakiness.

The "test_log_fixup" selftest is broken on purpose, with the goal of
testing error messages. Due to changes in cilium#1364 we now emit a poison
instruction in `bad_relo_subprog` on a instruction which also has a
reference to a BPF-to-BPF function. This causes the symbol/reference
resolution step to fail.

This error is flaky, it only happens when `bad_relo_subprog` is loaded
first. If any other program in the collection is loaded first due to
random hash map ordering we skip the test instead due to the test
checking for verifier errors.

Since this test is broken on purpose, we previously just always hit this
skip condition. This commit disabled this selftest explicitly which
resolves the CI flakiness.

Signed-off-by: Dylan Reimerink <dylan.reimerink@isovalent.com>
@dylandreimerink dylandreimerink marked this pull request as ready for review March 21, 2024 10:06
@dylandreimerink dylandreimerink requested a review from a team as a code owner March 21, 2024 10:06
@lmb
Copy link
Collaborator

lmb commented Mar 21, 2024

If any other program in the collection is loaded first due to random hash map ordering we skip the test instead due to the test checking for verifier errors.

Ah TIL. It'd be nice to not rely on ordering, oh well

@lmb lmb merged commit 65fb774 into cilium:main Mar 21, 2024
15 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