Remove strictness of graphql error check in retry. (#2189)
diff --git a/auto_submit/lib/service/validation_service.dart b/auto_submit/lib/service/validation_service.dart
index 7270062..d60aba7 100644
--- a/auto_submit/lib/service/validation_service.dart
+++ b/auto_submit/lib/service/validation_service.dart
@@ -514,12 +514,8 @@
// We have to make this check because mutate does not explicitely throw an
// exception, rather it wraps any exceptions encountered.
if (result.hasException) {
- if (result.exception!.graphqlErrors.length == 1 &&
- result.exception!.graphqlErrors.first.message
- .contains('Base branch was modified. Review and try the merge again')) {
- // This exception will bubble up if retries are exhausted.
- throw RetryableMergeException(result.exception!.graphqlErrors.first.message, result.exception!.graphqlErrors);
- }
+ // This exception will bubble up if retries are exhausted.
+ throw RetryableMergeException(result.exception!.graphqlErrors.first.message, result.exception!.graphqlErrors);
}
return result;
diff --git a/dashboard/pubspec.lock b/dashboard/pubspec.lock
index 80f16ae..5aa43dc 100644
--- a/dashboard/pubspec.lock
+++ b/dashboard/pubspec.lock
@@ -323,7 +323,7 @@
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
- version: "0.1.5"
+ version: "0.2.0"
meta:
dependency: transitive
description:
@@ -447,7 +447,7 @@
name: source_span
url: "https://pub.dartlang.org"
source: hosted
- version: "1.9.0"
+ version: "1.9.1"
stack_trace:
dependency: transitive
description:
@@ -461,7 +461,7 @@
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.0"
+ version: "2.1.1"
stream_transform:
dependency: transitive
description:
@@ -489,7 +489,7 @@
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.4.12"
+ version: "0.4.14"
timing:
dependency: transitive
description:
@@ -573,7 +573,7 @@
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.2"
+ version: "2.1.4"
watcher:
dependency: transitive
description:
@@ -596,5 +596,5 @@
source: hosted
version: "3.1.1"
sdks:
- dart: ">=2.17.0 <3.0.0"
+ dart: ">=2.18.0 <3.0.0"
flutter: ">=2.10.0"