Repository navigation
MGMT-17503: Fix the cpu architectures retrieved in ../openshift-versions endpoint - #6184
Conversation
|
@danmanor: This pull request references MGMT-17503 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@danmanor: This pull request references MGMT-17503 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@danmanor: This pull request references MGMT-17503 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6184 +/- ##
==========================================
+ Coverage 68.22% 68.59% +0.37%
==========================================
Files 242 240 -2
Lines 35884 36330 +446
==========================================
+ Hits 24481 24920 +439
+ Misses 9276 9241 -35
- Partials 2127 2169 +42
|
|
/test edge-subsystem-aws /test edge-subsystem-kubeapi-aws |
|
/test edge-subsystem-kubeapi-aws |
|
/retest |
1 similar comment
|
/retest |
There was a problem hiding this comment.
| if *isEqual && !lo.Contains(latestReleaseImages, releaseImage) { | |
| if *isEqual && !funk.Contains(latestReleaseImages, releaseImage) { |
funk is already widely used in assisted, let's keep using it instead of introducing other dependencies to perform the same operations.
There was a problem hiding this comment.
lo it's strongly typed as opposed as funk which is not, and we introduced it already in some other parts of the code as not all lo operations are supported by funk.
Also we will probably deprecate both once we hit 1.22 (IIRC) which has generic slices operations built in
There was a problem hiding this comment.
I had a discussion with @rccrdpccl about it, I think we should start using lo instead, it is better
There was a problem hiding this comment.
Also we will probably deprecate both once we hit 1.22 (IIRC) which has generic slices operations built in
I agree, 1.22 will unify all these kind of libraries.
But I think we should avoid introducing new libraries that do almost the same thing than another one, even if that new library is technically better, I think consistency is more important, it avoids switching mentally between two libraries while reviewing. Already in this file, both libraries are in use.
Or we decide to go for the new one, and then we make the work to refactor over it.
lo is currently use only in this file https://github.com/openshift/assisted-service/blob/master/internal/operators/mce/mce_operator.go#L214, and go-funk already provide such functions: https://pkg.go.dev/github.com/thoas/go-funk?utm_source=godoc#Sum
There was a problem hiding this comment.
@adriengentil Do you think it worth running the tests again for? I think this is the only issue left
There was a problem hiding this comment.
I am also a fan of lo as you don't need to assert the type :)
9579ea0 to
07cbcb6
Compare
07cbcb6 to
d3366b7
Compare
|
/test images |
d3366b7 to
f5e3c07
Compare
|
/retest-required Remaining retests: 0 against base HEAD 29e748f and 2 for PR HEAD d3366b72cc85632e7f4e8dc585f40f8a645aedf7 in total |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adriengentil, danmanor 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 |
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-agent-compact-ipv4 images |
|
@danmanor: all tests passed! 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/test-infra repository. I understand the commands that are listed here. |
|
/cherry-pick cloud_hotfix_releases |
|
@danmanor: new pull request created: #6206 DetailsIn response to this:
Instructions 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/test-infra repository. |

Currently when requesting the latest openshift versions at
../openshift-versions?only_latest=true, you get at most one CPU architecture in the list. This PR fixes that issue.List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs, README, etc)Reviewers Checklist