Skip to content

tests: big deflake attempt - #8168

Closed
jedevc wants to merge 2 commits into
dagger:mainfrom
jedevc:improve-testing
Closed

jedevc wants to merge 2 commits into
dagger:mainfrom
jedevc:improve-testing

Conversation

@jedevc

@jedevc jedevc commented Aug 16, 2024

Copy link
Copy Markdown
Contributor

Includes:

Getting test repetition working is not very fun, unsurprisingly, go's wonderous test framework does not want such a convenience.

@jedevc
jedevc marked this pull request as draft August 16, 2024 11:24
Signed-off-by: Justin Chadwell <[email protected]>
@jedevc

jedevc commented Aug 19, 2024

Copy link
Copy Markdown
Contributor Author

Grr, this way of doing things really does not work. The problem is t.Parallel, and generally the following constraint on Run:

// Run may be called simultaneously from multiple goroutines, but all such calls
// must return before the outer test function for t returns.

Because we don't know ahead of time how many attempts we might be doing, we can't actually satisfy the above constraint - when the tests are started in parallel, we can't really solve the above at all.

t.Parallel is horrendous and such a painful construct to try and do things with. gotestsum might be the thing to do.

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.

1 participant