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(coderd/coderdtest): wait for provisioner daemons to be connected#15936

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
johnstcn merged 3 commits intomainfromcj/flake/await-provisioner-daemon-connected
Dec 20, 2024

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedDec 19, 2024
edited
Loading

@johnstcnjohnstcn self-assigned thisDec 19, 2024
func AwaitProvisionerDaemonsConnected(t testing.TB, api *coderd.API) {
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
defer cancel()
for {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of this polling loop with potentially noisy logs, what if we made a slight addition to theprovisionerd.Server such that it closes or sends on a buffered channel when it connects for the first time. This is how the tailnet dialer works.

Then we could select on that channel (vsctx.Done()) rather than polling.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I tried this out, except at the provisionerd level itself. LMK if that suits, or I can circle back and do it in the provisionerd server as you suggested.

@johnstcnjohnstcn merged commit9e9a5fd intomainDec 20, 2024
30 checks passed
@johnstcnjohnstcn deleted the cj/flake/await-provisioner-daemon-connected branchDecember 20, 2024 09:49
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsDec 20, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

flake: TestPostTemplateVersionsByOrganization/WithParameters
2 participants
@johnstcn@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp