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(agent/agentscripts): increase timeout in TestTimeout#17293

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 1 commit intomainfromcj/flake/agentscripts/TestTimeout
Apr 8, 2025

Conversation

johnstcn
Copy link
Member

Fixescoder/internal#329

This was due to a race between the process starting and the timeout of the agent startup script executor. I'm taking the 'lazy' route here and increasing the timeout to 100ms. This does technically mean that this makes the test 100 times longer to execute. However, if it takes more than 100ms to run asleep infinity command on our test runner, I think we have other issues.

@johnstcnjohnstcn requested a review frommafredriApril 8, 2025 14:11
@johnstcnjohnstcn self-assigned thisApr 8, 2025
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Can't hurt 👍🏻

@johnstcnjohnstcnenabled auto-merge (squash)April 8, 2025 14:14
@johnstcn
Copy link
MemberAuthor

wat.

    agentscripts_test.go:114:         Error Trace:/Users/runner/work/coder/coder/agent/agentscripts/agentscripts_test.go:114        Error:      Target error should be in err chain:                    expected: "script timed out"                    in chain: "run agent script \"05047da2-9490-446e-a986-b71b475bb0fa\": exit status 1"                    "exit status 1"        Test:       TestTimeout

@johnstcnjohnstcn merged commit44ddc9f intomainApr 8, 2025
31 checks passed
@johnstcnjohnstcn deleted the cj/flake/agentscripts/TestTimeout branchApril 8, 2025 14:35
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 8, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@mafredrimafredrimafredri 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: agent/agentscripts TestTimeout: signal: hangup

2 participants

@johnstcn@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp