test/e2e/funcs: add helpful error context to ApplyResources and others, vs. features.go:94#5722
test/e2e/funcs: add helpful error context to ApplyResources and others, vs. features.go:94#5722sttts wants to merge 1 commit into
Conversation
…s, vs. features.go:94 Signed-off-by: Dr. Stefan Schimanski <[email protected]>
phisco
left a comment
There was a problem hiding this comment.
unfortunate we have to do this, but I couldn't find a better way
I think It looks like it was doing something similar to what @sttts is doing here - https://github.com/pkg/errors/blob/master/stack.go#L163 I wonder whether there would be value in adding this to |
|
I tried to find a less hacky feeling way to address this and ended up with kubernetes-sigs/e2e-framework#421. It ends up looking like this: It's not perfect. You'll always see the |
|
Crossplane does not currently have enough maintainers to address every issue and pull request. This pull request has been automatically marked as |
|
Crossplane does not currently have enough maintainers to address every issue and pull request. This pull request has been automatically marked as |
|
Looks like this was maybe addressed within e2e-framework by @negz in kubernetes-sigs/e2e-framework#421. That was included in https://github.com/kubernetes-sigs/e2e-framework/releases/tag/v0.5.0, so I think we could just need to bump our Added that as a task to: |
|
After bumping locally to Now looks like: So that type of check is more specific to the origin within the test case as opposed to within the |
|
Crossplane does not currently have enough maintainers to address every issue and pull request. This pull request has been automatically marked as |
Description of your changes
When these helpers error, the parent source file and line is something like
because the returned closure is called from
feature.go. To get a helpful caller context, we have to pass it into the closure from the constructor.I have:
make reviewableto ensure this PR is ready for review.[ ] Added or updated unit tests.[ ] Added or updated e2e tests.[ ] Linked a PR or a docs tracking issue to document this change.[ ] Addedbackport release-x.ylabels to auto-backport this PR.Need help with this checklist? See the cheat sheet.