-
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
Missing error case coverage in api/internal/target/kusttarget.go #4807
Comments
@KnVerey: GitHub didn't allow me to assign the following users: mightyguava. Note that only kubernetes-sigs members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. 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. |
lol /assign @mightyguava |
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 |
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 |
Hi @mightyguava, are you still working on this? If not, can I assign it to myself? It is currently blocking #4348. |
/assign |
Test accumulateResources errors when a remote file fails to load. This is part of the effort to fix issue kubernetes-sigs#4807.
Test accumulateResources errors when a remote file fails to load. This is part of the effort to fix issue kubernetes-sigs#4807.
Test accumulateResources errors when a remote file fails to load. This is part of the effort to fix issue kubernetes-sigs#4807.
@annasong20 can we close this now that your PR is merged? Or is there more work to do here? |
@natasha41575 Still need to add test cases for remote repos, local files, and local directories. Will add a comment in the last test PR that automatically closes this issue. |
Add tests demonstrating accumulateResources errors when the resource is a local file. Works to fix kubernetes-sigs#4807.
Add tests demonstrating accumulateResources errors when the resource is a local file. Works to fix kubernetes-sigs#4807.
Add tests demonstrating accumulateResources errors when the resource is a local file. Works to address kubernetes-sigs#4807.
* Add accumulateResources error tests for local files. Add tests demonstrating accumulateResources errors when the resource is a local file. Works to address #4807. * Improve readability
/remove-lifecycle rotten |
/unassign |
/assign |
Discovered during review of the remote loader's integration suite revamp.
We are going to lift the code freeze on the remote loader, but will require test coverage improvements along with or ahead of any changes to
accumulateResources
specifically going forward. This affects Kustomization loading for both remote and local targets.Part of the problem here is that accumulateResources is making very uneducated guesses about why it got the two possible errors back from functions it called. @annasong20 points out that we could expose new error types in
ifc.Loader
and take advantage of those to make better decisions on which error to return if they both fail (as well as whether or not to even try the second load in the first place, although we'll need the enhanced coverage of current behaviour in place before we can improve it)./assign @mightyguava
The text was updated successfully, but these errors were encountered: