fix: improve accumulation failure message
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.
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.
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.
Could you also add a test case on
kusttarget_test.goto 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.
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.
/assign @koba1t
Thanks @ephesused /approve
[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
- ~~OWNERS~~ [koba1t]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment