Skip to content

Fix regression introduced in 1.11.x#1845

Open
cicoyle wants to merge 1 commit intostretchr:masterfrom
cicoyle:fix-eventually-panic
Open

Fix regression introduced in 1.11.x#1845
cicoyle wants to merge 1 commit intostretchr:masterfrom
cicoyle:fix-eventually-panic

Conversation

@cicoyle
Copy link

@cicoyle cicoyle commented Jan 26, 2026

Summary

Revert the check early behavior introduced in this PR. Add tests to ensure there are no panics due to nil derefs. Restores v1.10 behavior for Never(), Eventually(), EventuallyWithT()

Motivation

We hit nil deref panics in our dapr/dapr unit tests after upgrading to v1.11.x here in this PR (see panic here) because EventuallyWithT now runs the condition immediately on entry. You can see where I pinned back to 1.10 to resolve the issue in this PR as a test to confirm the regression and after confirming merged the pinned version in this PR. The test from the linked CI failure is here for easy reference where we use atomic ptr, hence why I added a very similar test to your test suite.

Related issues

Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
@cicoyle
Copy link
Author

cicoyle commented Feb 2, 2026

@brackendawson, @ccoVeille, @dolmen - mind reviewing this one? 🙏🏻

@ccoVeille
Copy link
Collaborator

I feel like @brackendawson is busy lately.

I am also. Let's wait for a bit

cc @fredbi who might be interested by the issue on his own fork

@fredbi
Copy link

fredbi commented Feb 3, 2026

Thanks @ccoVeille I’ll look into it asap. I am trying to keep up with upstream

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.

3 participants