Skip to content

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

Merged
brenns10 merged 9 commits intostable/v2.1.xfrom
v2.1.x_fixes
May 21, 2025
Merged

[2.1.x] Backports of recent fixes for build#165
brenns10 merged 9 commits intostable/v2.1.xfrom
v2.1.x_fixes

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 <stephen.s.brennan@oracle.com>
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
Reported-by: John Sobecki <john.sobecki@oracle.com>
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
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 <stephen.s.brennan@oracle.com>
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 <stephen.s.brennan@oracle.com>
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 <stephen.s.brennan@oracle.com>
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
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 <stephen.s.brennan@oracle.com>
Orabug: 37973187
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
@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