Skip to content
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

feat: Log error on cleanup in e2e #4834

Closed

Conversation

lukemassa
Copy link
Contributor

what

Log error that comes from cleanup() function in e2e tests.

why

Since the cleanup function is deferred, we swallow the error and there's no way for the end user to know that it occurred.

I decided against trying to return this error from the main function, or even something like a log.Fatal, since it's just for cleanup, so stopping earlier isn't going to help anyone.

tests

After this PR goes up I will make sure the github e2e runs correctly, then introduce an intentional error in cleanup and make sure that's logged as expected.

references

Found while working on #4582

@lukemassa lukemassa requested review from a team as code owners August 12, 2024 16:56
@lukemassa lukemassa requested review from GenPage, nitrocode and X-Guardian and removed request for a team August 12, 2024 16:56
@github-actions github-actions bot added the go Pull requests that update Go code label Aug 12, 2024
@lukemassa
Copy link
Contributor Author

Oops, this has to be on the upstream branch to work, closing for now

@lukemassa lukemassa closed this Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant