From 3f7ca7e5760028e6e89f154425abb14e3bfadd82 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 14 Mar 2022 16:45:30 -0700 Subject: [PATCH] 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. --- dev/bots/analyze_sample_code.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/bots/analyze_sample_code.dart b/dev/bots/analyze_sample_code.dart index 4e860819b9..910612576f 100644 --- a/dev/bots/analyze_sample_code.dart +++ b/dev/bots/analyze_sample_code.dart @@ -507,8 +507,9 @@ class SampleChecker { process.stdout.transform(utf8.decoder).forEach(stdout.write); } process.stderr.transform(utf8.decoder).forEach(stderr.write); - final int exitCode = await process.exitCode.timeout(const Duration(seconds: 30), onTimeout: () { - stderr.writeln('Snippet script timed out.'); + const Duration timeoutDuration = Duration(minutes: 5); + final int exitCode = await process.exitCode.timeout(timeoutDuration, onTimeout: () { + stderr.writeln('Snippet script timed out after $timeoutDuration.'); return -1; }); if (exitCode != 0) {