-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
bump sigs.k8s.io/yaml to v1.3.0 #4222
Conversation
v1.3.0 was recently released and upgrades gopkg.in/yaml.v2 to v2.4.0. This version fixes the inconsistent long line wrapping issue.
Hi @zhouhaibing089. Thanks for your PR. I'm waiting for a kubernetes-sigs 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: zhouhaibing089 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 |
/ok-to-test
Could you link the tracking issue or provide an example in your PR comment? EDIT: Never mind I see it linked below, #3969. Thanks! |
/retest |
/hold I have not tested it yet. Any suggestions on how should I put an automated test? |
@zhouhaibing089 our e2e tests go in here https://github.com/kubernetes-sigs/kustomize/tree/master/api/krusty I would suggest you create a new file in there (or add a test to an existing file). You can view the other tests in that folder as examples for how to write your test. Perhaps it could be a very simple test with the same kustomization and resource file as in the issue #3969. |
The function that matters here is FutureLineWrap. Does this change(call this function) require any further review? |
To summarize: gopkg.in/yaml.v2 was already upgraded to v2.4.0 at #3667. From 2.3.0 to 2.4.0, there is a behavior change, the line length is updated from infinite to 80, that's the reason why the long line wraps now. The patch here really doesn't change anything unless it calls |
So, to make that |
I tested that adding a call to If this PR is not gonna be updated I'd be happy to create a new one. Here's my test diff as compared to the current state of this PR:
|
@zhouhaibing089 can you apply the patch that @francesco-beccaria proposed and tested? |
I'm actually interested to learn what is broken with line wrap? Or is it just a preference? From what I understand, either with line wrap or without wrap, the YAML is still essentially the same, or isn't it? |
@zhouhaibing089: PR needs rebase. 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. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
I would just like to point out this comment #3969 (comment). My understanding is that line wrapping is currently the desired default behaviour, and is probably also why sigs.k8s.io/yaml completely skipped Here is the text from the
Might I suggest that we instead introduce a flag and have the init only trigger if that flag is set? For example |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Reading the comment history here, it sounds like we wanted a test showing the line wrapping change, but that doesn't actually happen by default with this dependency bump. If that's the case, let's rebase this PR and merge it with the bump only. If we decide to enable infinite line length (which very likely isn't possible until we do a major version bump), then it should be a separate PR from the dependency upgrade. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In 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. |
v1.3.0 was recently released and upgrades gopkg.in/yaml.v2 to v2.4.0.
This version fixes the inconsistent long line wrapping issue.
ALLOW_MODULE_SPAN