-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Refactor generated code #9348
Refactor generated code #9348
Conversation
Possible different approach is shown in: #9317 |
/hold |
Ah again this |
db78cdb
to
2591917
Compare
/hold cancel |
@matejvasek if you can get this through tests, this will be the best PR of the year so far. Very nice work. |
@TomSweeneyRedHat I think that the only reason it was failing was that |
@TomSweeneyRedHat are those flakes? |
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.
+281 −5,213
Nice work!
pkg/bindings/util/util.go
Outdated
) | ||
|
||
func IsSimpleType(f reflect.Value) bool { | ||
func isSimpleType(f reflect.Value) bool { |
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.
This is technically an API break. While I doubt anybody is using it, I would sleep better keeping the two functions exported.
Retrospectively, it may should have been an pkg/bindings/*internal*/util
where we can change whenever we want to.
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.
I introduced that just 10 ago so it's probably not used by anybody. I really should have added to some package with internal in its name.
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.
Oh sorry, I should have checked if it's in v3.0!
In this case, could you move this code into pkg/bindings/internal/util
? This way, it's not part of the public API and we can change as much as we want without having to worry about potential external users.
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.
Note that the code can be moved in another PR. It's (almost) green, so we can merge this one.
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.
It was merged 10 days ago to master, and then backported to v3. So it was released 3 days ago with v3.
I restarted the failed jobs. It looked like flakes to me. |
Did just |
@vrothberg one of the two failing tests works not but the other one |
I'll restarted another time :) If it happens another time, I'll take a closer look. |
@matejvasek Can you please squash your commits and add a proper commit message. |
Extracted common functionality to util function. Signed-off-by: Matej Vasek <[email protected]>
0411943
to
6ffd05d
Compare
Flake again. |
Restarted flakes /hold |
Apologies, I mixed tabs and meant to comment this in #9350 |
/hold cancel |
/aproove |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Extracted common functionality to util function.