Unverified Commit 3f7ca7e5 authored by Greg Spencer's avatar Greg Spencer Committed by GitHub

Increase the timeout for running the snippets script during sample analysis (#100093)

Engine roll is blocked because the analysis script has been timing out trying to run the snippets tool, but only on Cirrus bots. This changes the timeout to 5 minutes from 30 seconds.
parent e3f2b88d
...@@ -507,8 +507,9 @@ class SampleChecker { ...@@ -507,8 +507,9 @@ class SampleChecker {
process.stdout.transform(utf8.decoder).forEach(stdout.write); process.stdout.transform(utf8.decoder).forEach(stdout.write);
} }
process.stderr.transform(utf8.decoder).forEach(stderr.write); process.stderr.transform(utf8.decoder).forEach(stderr.write);
final int exitCode = await process.exitCode.timeout(const Duration(seconds: 30), onTimeout: () { const Duration timeoutDuration = Duration(minutes: 5);
stderr.writeln('Snippet script timed out.'); final int exitCode = await process.exitCode.timeout(timeoutDuration, onTimeout: () {
stderr.writeln('Snippet script timed out after $timeoutDuration.');
return -1; return -1;
}); });
if (exitCode != 0) { if (exitCode != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment