Customise command timeouts
I have a large Rust project, I've setup caching but Rust takes a while to lint especially on the smaller runners.
The agent can't successfully run cargo check it times out every time.
this command took longer than 120 seconds to run and was terminated
I want to be able to configure the command timeout.
I should really just use a larger runner
Hi Dale, it is possible to use larger runners today. See docs for more information.
The issue was the firewall blocking a network request and causing the bash command to timeout.
It seems like the AI can pick it's own bash timeout, just tell it to use a longer timeout
hi @nhu-do , I think I ran into a similar issue too. Is the larger runners the only solution for these timeouts (not ideal since it's different billing)?
Basically I saw this output from GH Coding agent:
dotnet test [REDACTED] ....
logs...
<wait timeout 30s.....> <exiting>
Copilot response: Great! All tests are passing......
It's not true the tests are passing 😅, not sure if we could customize to like 2min or more of "wait timeout". Or just run multiple "wait" commands (up to a set max). Note: In my case the build + unit tests do take a considerable amount of time, but customizing this would be great so that Copilot coding agent doesn't hallucinate that tests are passing.
Any help on this is very much appreciated. Thanks!