Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: disable t.Parallel on TestPortForward#10449

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

spikecurtis
Copy link
Contributor

I've said it before, I'll say it again: you can't create a timed context before callingt.Parallel() and then use it after.

Fixes flakes likehttps://github.com/coder/coder/actions/runs/6716682414/job/18253279157

I've chosen just to dropt.Parallel() entirely rather than create a second context after the parallel call, since the vast majority of the test time happens before where the parallel call was. It does all the tailnet setup beforet.Parallel().
Leaving a call tot.Parallel() is a bug risk for future maintainers to come in and use the wrong context in the latter part of the test by accident.

@spikecurtisGraphite App
Copy link
ContributorAuthor

Current dependencies on/for this PR:

Thisstack of pull requests is managed byGraphite.

@spikecurtisspikecurtis merged commit94eb9b8 intomainNov 1, 2023
@spikecurtisspikecurtis deleted the 11-01-fix_disable_t.Parallel_on_TestPortForward branchNovember 1, 2023 09:45
@spikecurtisGraphite App
Copy link
ContributorAuthor

Merge activity

@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsNov 1, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

Assignees

@spikecurtisspikecurtis

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@spikecurtis@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp