-
Notifications
You must be signed in to change notification settings - Fork 61
release-controller-api: render RPM diff #651
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
Conversation
|
Requires: openshift/oc#1966 |
|
/approve |
|
/hold |
Yeah, wasn't sure where best to put it. The other place I was thinking of was right after the Components section, but within a Though I think also taking over the diff link does alleviate this concern a bit. Anyone interested in the diff specifically can click that link and go to the bottom of the page directly. |
d70c00c to
b4350d8
Compare
That works! Anything that prevents having to perform "open-heart surgery" is definitely worth it, IMO. |
This basically fixes the gap that the infobox added in openshift#648 warns about. Instead of relying on the CoreOS release browser differ, we directly query for the diff using `oc adm release info`, which recently learned to do this, and render it at the bottom of the page. The `diff` link now simply links to that section of the page. This removes the VPN requirement on being able to see the RPM diff. Only do this for the new layered node images, as well as for 4.19. We could in theory do this all the way back to e.g. 4.12 when RHCOS switched to "OSTree native containers", but let's be conservative. This provide a natural rollout of the feature in case it needs ironing out. Implementation-wise, we don't want to block the main changelog render on getting the RPM diff. So we structure this the same way as the changelog render itself; if the `oc` command takes too long, we display a nice message to check again later. Once the command finishes and the output is cached, we include it in the following render requests.
b4350d8 to
085e671
Compare
|
Tweaked a few things here:
|
|
@jlebon: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
OK, hopefully openshift/oc#1966 merges soon ish with the latest update there. One thing to mention here though is that the diffUrl is still pointing at the RHCOS release browser, which will be wrong. This shows up in e.g. Sippy. We should instead link to the release controller API web UI itself for the relevant release, at the Maybe simplest is to allow passing release-controller-api what its base URL is so that URLs relative to that can be constructed and fed as part of the |
|
I have reviewed the code and everything seems responsible to me. Because this code is completely dependent on another PR and the promotion of the updated image, I'm going to withhold my LGTM until all the pieces are in place. |
bradmwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/unhold
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bradmwilliams, jlebon The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This basically fixes the gap that the infobox added in #648 warns about. Instead of relying on the CoreOS release browser differ, we directly query for the diff using
oc adm release info, which recently learned to do this, and render it at the bottom of the page.This removes the VPN requirement on being able to see the RPM diff.
In the case of the new layered node images, replace the diff link to instead link to this new rendered section. We could in theory always link to that, but let's be conservative. This provide a natural rollout of the feature in case it needs ironing out.
Implementation-wise, we don't want to block the main changelog render on getting the RPM diff. So we structure this the same way as the changelog render itself; if the
occommand takes too long, we display a nice message to check again later. Once the command finishes and the output is cached, we include it in the following render requests.Sample renders
When diff still loading
When diff is loaded