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: improve error logging in TestServer/EphemeralDeployment#17184

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

hugodutka
Copy link
Contributor

There's a flake reported incoder/internal#549 that was caused by the built-in Postgres failing to start. However, the test was written in a way that didn't log the actual error which caused Postgres to fail. This PR improves error logging in the affected test so that the next time the error happens, we know what it is.

@hugodutkahugodutka changed the titlechore: improve error handling in TestServer/EphemeralDeploymentchore: improve error logging in TestServer/EphemeralDeploymentApr 1, 2025
@hugodutkahugodutka marked this pull request as ready for reviewApril 1, 2025 10:45
@hugodutkahugodutka requested a review fromjohnstcnApril 1, 2025 10:46
Comment on lines +211 to +213
case<-matchCh1:
// OK!
}
Copy link
Member

Choose a reason for hiding this comment

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

If you have the matched string here, why not move the assertions from L214-220 in here?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I wanted to keep modifications to the existing test to a minimum.

Comment on lines 222 to 231
matchCh2:=make(chanstring,1)
gofunc() {
matchCh2<-pty.ExpectMatchContext(ctx,"View the Web UI")
}()
select {
caseerr:=<-errCh:
require.NoError(t,err)
case<-matchCh2:
// OK!
}
Copy link
Member

Choose a reason for hiding this comment

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

Why do we actually care about this message being logged?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

It's a decent indicator that the server was successfully set up. Let me add a comment about it.

@hugodutkahugodutka merged commit7d08bf0 intomainApr 1, 2025
30 checks passed
@hugodutkahugodutka deleted the hugodutka/testserver-ephemeraldeployment-err-handling branchApril 1, 2025 11:23
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 1, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@hugodutkahugodutka

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@hugodutka@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp