Skip to content

[2.1.x] Backports of recent fixes for build #165

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

Merged
merged 9 commits into from
May 21, 2025
Merged

Conversation

brenns10
Copy link
Member

Orabug: 37911511
Orabug: 37973190


Backporting the fixes from #160 and #163 into the 2.1.x branch to ensure CI passes.

brenns10 added 9 commits May 20, 2025 09:21
Orabug: 37911511
Signed-off-by: Stephen Brennan <[email protected]>
Reported-by: John Sobecki <[email protected]>
Signed-off-by: Stephen Brennan <[email protected]>
The arguments here were causing black to not output any changes, and so
pre-commit wasn't enforcing coding style. This actually explains quite a
bit.

Signed-off-by: Stephen Brennan <[email protected]>
The lack of pre-commit and black code formatting resulted in some issues
slipping through. Run pre-commit to fix them.

Signed-off-by: Stephen Brennan <[email protected]>
The urllib.HTTPError exception, in addition to printing a quite large
stack trace, omits the URL. This is probably a good thing for security,
but here we don't care because we're fetching public URLs anyway. So
catch the exception, print a formatted error message, and then use
sys.exit to avoid a traceback. This way, the CI errors will actually let
us know which RPM is missing.

I mean, it's always the kernel-ueknext-debuginfo. It's never not that.
But still, I want the CI to tell me that rather than forcing me to
guess.

Signed-off-by: Stephen Brennan <[email protected]>
When a new kernel-ueknext is released, it is not uncommon that the
debuginfo is either forgotten, or delayed. It's fine to have this
happen: I will report it and ensure we upload our debuginfo. I'd rather
I encounter this than a customer.

However, in the meantime, this means that drgn-tools PRs cannot be
merged. This isn't a great situation. So, allow the CI latest version
detection to skip the most recent version if an RPM is missing.

Signed-off-by: Stephen Brennan <[email protected]>
Orabug: 37973187
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 20, 2025
@brenns10 brenns10 merged commit 965198c into stable/v2.1.x May 21, 2025
7 checks passed
@brenns10 brenns10 deleted the v2.1.x_fixes branch May 21, 2025 15:55
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