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

cli: remove t field from TestCLI usage #117137

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

dhartunian
Copy link
Collaborator

Currently, these tests fail in CI with a nil pointer at runtime when we call c.t.Fail when an error is produced.

This change removes the sharing of the t variable with TestCLI since it seems to result in a conflict between the outer test code and what runs inside RunWithCapture.

I was unable to reproduce the error locally and do not have further clues. My hope is that, the simplified error handling will surface the actual error in CI instead of the continued nil pointer exception.

Resolves: #116228
Epic: None
Release note: None

Currently, these tests fail in CI with a nil pointer at runtime when
we call `c.t.Fail` when an error is produced.

This change removes the sharing of the `t` variable with `TestCLI`
since it seems to result in a conflict between the outer test code and
what runs inside `RunWithCapture`.

I was unable to reproduce the error locally and do not have further
clues. My hope is that, the simplified error handling will surface the
actual error in CI instead of the continued nil pointer exception.

Resolves: cockroachdb#116228
Epic: None
Release note: None
@dhartunian dhartunian requested a review from a team December 28, 2023 14:57
@dhartunian dhartunian requested a review from a team as a code owner December 28, 2023 14:57
@dhartunian dhartunian requested review from abarganier and removed request for a team December 28, 2023 14:57
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@abarganier abarganier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: - thanks for poking at this weirdness!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@dhartunian
Copy link
Collaborator Author

bors r=abarganier

@craig
Copy link
Contributor

craig bot commented Dec 28, 2023

Build succeeded:

@craig craig bot merged commit d0760e6 into cockroachdb:master Dec 28, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli: TestUnavailableZip failed
3 participants