-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
WIP: go port of releng/generate_tests python script #31962
base: master
Are you sure you want to change the base?
WIP: go port of releng/generate_tests python script #31962
Conversation
Welcome @DannyBrito! |
Hi @DannyBrito. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: DannyBrito The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
The primary blocker for creating these golang ports of python script #29390 was unmarshalling and marshalling yaml in go is painful when the At the beginning of implementing this PR porting Note: This implementation was aiming to directly mirror the python script, so it includes possible no longer valid assumptions, and bugs. |
@DannyBrito, I don't think that not supporting @xmudrii What do you think? |
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
/remove-lifecycle rotten |
This WIP PR, it is an attempt to do a go port of
relenge/generate_test
python script. At this current stage the PR aims to be as close as possible to a one-to-one port of the script. Meaning any other wrong assumptions and bugs could be present.Issue related: #29390
I am posting this WIP branch as I encounter some things that I would like to get feedback.
I have come to the realization that marshalling and unmarshalling yaml in golang is a possible hard task, in respect to preserving. comments, anchors, alias, etc.
The other option was to use templates to produce the desired output. Which is the option, I decided to explore, as the output of the script seem to be fully generated by the script and it didn't seem like needed more that simple comments stating the file was autogenerated.
The generation test golang script works. However, while comparing results of original script and go port I noticed that the original preserves/uses anchors and alias, example. The go port does not handle these cases and will produce the entire object. Will this be a deal breaker?
Am I missing any other possible way to solve/implement this?
cc: @jeremyrickard