kustomize icon indicating copy to clipboard operation
kustomize copied to clipboard

fix: improve accumulation failure message

Open ephesused opened this issue 1 year ago • 5 comments

For accumulation errors when the file load fails due to malformed YAML and the base load fails due to a timeout, report both errors. Previously only the malformed YAML error was returned, masking the git repo timeout.

Fixes #5540.

ephesused avatar Feb 16 '24 17:02 ephesused

Hi @ephesused. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

k8s-ci-robot avatar Feb 16 '24 17:02 k8s-ci-robot

As part of this work, I had to modify errTimeOut to enable it to work properly with errors.As(). The shift to use pointer receivers aligns errTimeOut with other errors that use errors.As(), such as errOnlyBuiltinPluginsAllowed, errMissingKustomization, and errUnableToFind.

ephesused avatar Feb 16 '24 17:02 ephesused

Could you also add a test case on kusttarget_test.go to check on this specific use case?

Good point. I'll take a look at the test support and see if I can craft a test case.

ephesused avatar Feb 22 '24 02:02 ephesused

This PR has multiple commits, and the default merge method is: merge. You can request commits to be squashed using the label: tide/merge-method-squash

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.

k8s-ci-robot avatar Mar 08 '24 19:03 k8s-ci-robot

/assign @koba1t

koba1t avatar Mar 27 '24 15:03 koba1t

Thanks @ephesused /approve

koba1t avatar Mar 27 '24 17:03 koba1t

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ephesused, koba1t

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 /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Mar 27 '24 17:03 k8s-ci-robot