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

chore: Update pion/udp and improve parallel/non-parallel tests#7164

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
mafredri merged 5 commits intomainfrommafredri/test-improve-paralleltest-setup
Apr 17, 2023

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedApr 17, 2023
edited
Loading

Tests that mix parallel/non-parallel parent tests and subtests will behave unexpectedly, this PR attempts to clean some of these up and does a little restructuring.

Ultimately, don't mix parallel/non-parallel and avoid too much nesting (sub-subtests).

@mafredri
Copy link
MemberAuthor

mafredri commentedApr 17, 2023
edited
Loading

After re-enabling port-forward tests, I noticed we've at some point ditched our fork ofpion/udp which does not include this fix:pion/udp@ab18689

So I updated the package to the next version (last one before their v2 work).

See:https://github.com/coder/coder/actions/runs/4723449296/jobs/8379423014?pr=7164

@mafredrimafredriforce-pushed themafredri/test-improve-paralleltest-setup branch from284114b to67caa6aCompareApril 17, 2023 16:30
@@ -21,10 +21,8 @@ import (
"github.com/coder/coder/testutil"
)

//nolint:tparallel,paralleltest // Subtests require setup that must not be done in parallel.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm hoping removing parallel from the parent will allow these to run more stable, so for now let's re-enable these tests.

err = <-errC
require.ErrorIs(t, err, context.Canceled)
})
t.Run(c.name+"_OnePort", func(t *testing.T) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This may also contribute to stability, one less test indentation. We probably need to start considering depth of tests and their interactions with each other or limiting depth to parent + subtest, not subsubtest.

kylecarbs reacted with thumbs up emoji
@mafredrimafredri marked this pull request as ready for reviewApril 17, 2023 17:17
@mafredrimafredri changed the titletest(all): Improve and fix subtests with parallell/nonparallel parentschore: Update pion/udp and improve parallel/non-parallel testsApr 17, 2023
@mafredrimafredri merged commitbf0fed4 intomainApr 17, 2023
@mafredrimafredri deleted the mafredri/test-improve-paralleltest-setup branchApril 17, 2023 17:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 17, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

@deansheatherdeansheatherAwaiting requested review from deansheather

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mafredri@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp