Skip to content

Commit 5f05e64

Browse files
committed
testing.litevm: skip up to 4 kernels w/o debuginfo
We've seen tests fail due to debuginfo being missing from oss.oracle.com. This is an ongoing issue and rather than have it block our tests, we need to add a bit more flexibility. This is still only activated when the github label is applied to the PR, so in most cases, up-to-date debuginfo is still required. This just unblocks pull request review and merge. Orabug: 38625030 Signed-off-by: Stephen Brennan <[email protected]>
1 parent 13ff4ce commit 5f05e64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/litevm/rpm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ def key(t):
211211
)
212212
rows.sort(key=key, reverse=True)
213213
versions_tried = []
214-
for ver, rel, href in rows[:2]:
214+
# We will try a maximum of the 5 most recent kernel to see whether
215+
# debuginfo is available. This adds a bit of wiggle room in case of
216+
# situations where debuginfo is not up-to-date online.
217+
for ver, rel, href in rows[:5]:
215218
# Check whether all RPMs are either cached or available via HTTP
216219
rpm_urls: List[str] = []
217220
rpm_url = yumbase + href

0 commit comments

Comments
 (0)