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

Github actions fix, UEK-next support, and a table fix #85

Merged
merged 5 commits into from
Jun 25, 2024

Conversation

brenns10
Copy link
Member

There are three separate changes here, sorry. But each is small and easy to understand.

  1. Add support for UEK-next, so corelens will run against it. Also add uek-next to the "lite VM" tests, but don't enable it yet because some tests fail. I've cataloged all the failures.
  2. Get rid of caching in github actions, it doesn't save any time and it causes more failures.
  3. Fix alignment of some tables.

brenns10 added 4 commits May 30, 2024 09:48
While UEK-next is not an officially supported release, it's going to be
quite useful as a (public) resource for keeping our helpers up-to-date
with the latest kernel features.

Add attributes to KernelVersion to detect when a kernel is UEK-next, and
ensure that the debuginfo RPM name is properly determined. Then, use
that to mark CTF as compatible with UEK-next, since there are no known
issues.

Of course, UEK-next is not _supported_ by any means, and in fact, I
expect to encounter quite a few compatibility issues in Corelens modules
that need to be addressed.

Signed-off-by: Stephen Brennan <[email protected]>
If the initial contents of a row are spaces (e.g. empty table header or
a string with leading whitespace) then the strip() call will remove it
and misalign the table. Use rstrip() so we only remove trailing
whitespace.

Signed-off-by: Stephen Brennan <[email protected]>
I had hoped that storing kernel and debuginfo RPMs in a cache would
improve the runtime of the actions by reducing the amount of downloads.
But I haven't seen much in the way of improvement on the runtime when
the cache was working, and the cache has caused *several* failures for
pull requests and CI. Most developers don't have push access and
therefore can't use the "re-run job" button. It seems like the cache
just isn't helping, so let's get rid of it.

Signed-off-by: Stephen Brennan <[email protected]>
Tests fail on UEK-next currently. I have catalogued all failures, but it
will be useful for developers if we can run the litevm tests against
UEK-next as we fix them. Add it to the list of kernels, but keep it
commented out for now.

Signed-off-by: Stephen Brennan <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 30, 2024
SIGINT and SIGPIPE are handled by Python as exceptions. It's common to
get a SIGINT with a keyboard interrupt, and in these cases the user
typically doesn't want a traceback, they just want to stop corelens. For
broken pipe, this is relatively common for "corelens ... | head -n $num"
commands where a user wants to get just the first few lines. An
exception here would print more than they expect, and would be
unhelpful. Handle both of these so corelens behaves more like other
system utilities.

Signed-off-by: Stephen Brennan <[email protected]>
@brenns10 brenns10 requested a review from biger410 June 21, 2024 21:19
Copy link
Member

@biger410 biger410 left a comment

Choose a reason for hiding this comment

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

Looks good.

@brenns10 brenns10 merged commit 2bd05ad into oracle-samples:main Jun 25, 2024
5 checks passed
@brenns10 brenns10 deleted the develop branch June 25, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants