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: log after test exit inTestAgent/StartupScript#1726

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
coadler merged 2 commits intomainfromcolin/log-after-exit
May 24, 2022

Conversation

coadler
Copy link
Contributor

@coadlercoadler commentedMay 24, 2022
edited
Loading

$ go test ./agent/ -v -run TestAgent/StartupScript -count 1=== RUN   TestAgent=== PAUSE TestAgent=== CONT  TestAgent=== RUN   TestAgent/StartupScript=== PAUSE TestAgent/StartupScript=== CONT  TestAgent/StartupScript    t.go:56: 2022-05-24 20:22:39.648 [INFO]<agent.go:112>connected--- PASS: TestAgent (0.00s)    --- PASS: TestAgent/StartupScript (0.17s)PASSpanic: Log in goroutine after TestAgent/StartupScript has completed: 2022-05-24 20:22:39.651 [WARN]<agent.go:130>agent script failed ..."error": run:             github.com/coder/coder/agent.(*agent).runStartupScript                 /home/colin/Projects/coder/coder/agent/agent.go:183           - signal: killed

@coadlercoadler self-assigned thisMay 24, 2022
@coadlercoadlerforce-pushed thecolin/log-after-exit branch from3caf8f8 to5d9b4d2CompareMay 24, 2022 20:28
@coadlercoadlerforce-pushed thecolin/log-after-exit branch from5d9b4d2 to78cd9e0CompareMay 24, 2022 20:29
@coadlercoadler marked this pull request as ready for reviewMay 24, 2022 20:29
@coadlercoadler requested a review fromkylecarbsMay 24, 2022 20:29
Comment on lines 44 to 48
const (
ProtocolReconnectingPTY = "reconnecting-pty"
ProtocolSSH = "ssh"
ProtocolDial = "dial"
)
Copy link
Member

Choose a reason for hiding this comment

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

We should toss these in the agent instead, since the protocol types are disconnected frompeer.

coadler reacted with thumbs up emoji
@coadlercoadler linked an issueMay 24, 2022 that may beclosed by this pull request
@coadlercoadler merged commit4543a3b intomainMay 24, 2022
@coadlercoadler deleted the colin/log-after-exit branchMay 24, 2022 21:03
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
```$ go test ./agent/ -v -run TestAgent/StartupScript -count 1=== RUN   TestAgent=== PAUSE TestAgent=== CONT  TestAgent=== RUN   TestAgent/StartupScript=== PAUSE TestAgent/StartupScript=== CONT  TestAgent/StartupScript    t.go:56: 2022-05-24 20:22:39.648 [INFO]<agent.go:112>connected--- PASS: TestAgent (0.00s)    --- PASS: TestAgent/StartupScript (0.17s)PASSpanic: Log in goroutine after TestAgent/StartupScript has completed: 2022-05-24 20:22:39.651 [WARN]<agent.go:130>agent script failed ..."error": run:             github.com/coder/coder/agent.(*agent).runStartupScript                 /home/colin/Projects/coder/coder/agent/agent.go:183           - signal: killed```
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@kylecarbskylecarbskylecarbs approved these changes

Assignees

@coadlercoadler

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Bug: log after test exit inTestAgent/StartupScript
2 participants
@coadler@kylecarbs

[8]ページ先頭

©2009-2025 Movatter.jp