Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
18341efa
Unverified
Commit
18341efa
authored
Oct 29, 2020
by
Jonah Williams
Committed by
GitHub
Oct 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[devicelab] retry startup of start up test (#69272)
parent
83d4351e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
perf_tests.dart
dev/devicelab/lib/tasks/perf_tests.dart
+16
-7
No files found.
dev/devicelab/lib/tasks/perf_tests.dart
View file @
18341efa
...
@@ -482,8 +482,10 @@ class StartupTest {
...
@@ -482,8 +482,10 @@ class StartupTest {
break
;
break
;
}
}
const
int
maxFailures
=
3
;
int
currentFailures
=
0
;
for
(
int
i
=
0
;
i
<
iterations
;
i
+=
1
)
{
for
(
int
i
=
0
;
i
<
iterations
;
i
+=
1
)
{
await
flutter
(
'run'
,
options:
<
String
>[
final
int
result
=
await
flutter
(
'run'
,
options:
<
String
>[
'--no-android-gradle-daemon'
,
'--no-android-gradle-daemon'
,
'--verbose'
,
'--verbose'
,
'--profile'
,
'--profile'
,
...
@@ -492,11 +494,19 @@ class StartupTest {
...
@@ -492,11 +494,19 @@ class StartupTest {
device
.
deviceId
,
device
.
deviceId
,
if
(
applicationBinaryPath
!=
null
)
if
(
applicationBinaryPath
!=
null
)
'--use-application-binary=
$applicationBinaryPath
'
,
'--use-application-binary=
$applicationBinaryPath
'
,
]);
],
canFail:
true
);
final
Map
<
String
,
dynamic
>
data
=
json
.
decode
(
if
(
result
==
0
)
{
file
(
'
$testDirectory
/build/start_up_info.json'
).
readAsStringSync
(),
final
Map
<
String
,
dynamic
>
data
=
json
.
decode
(
)
as
Map
<
String
,
dynamic
>;
file
(
'
$testDirectory
/build/start_up_info.json'
).
readAsStringSync
(),
results
.
add
(
data
);
)
as
Map
<
String
,
dynamic
>;
results
.
add
(
data
);
}
else
{
currentFailures
+=
1
;
i
-=
1
;
if
(
currentFailures
==
maxFailures
)
{
return
TaskResult
.
failure
(
'Application failed to start
$maxFailures
times'
);
}
}
await
flutter
(
'install'
,
options:
<
String
>[
await
flutter
(
'install'
,
options:
<
String
>[
'--uninstall-only'
,
'--uninstall-only'
,
...
@@ -606,7 +616,6 @@ class PerfTest {
...
@@ -606,7 +616,6 @@ class PerfTest {
final
Device
device
=
await
devices
.
workingDevice
;
final
Device
device
=
await
devices
.
workingDevice
;
await
device
.
unlock
();
await
device
.
unlock
();
final
String
deviceId
=
device
.
deviceId
;
final
String
deviceId
=
device
.
deviceId
;
await
flutter
(
'packages'
,
options:
<
String
>[
'get'
]);
await
flutter
(
'drive'
,
options:
<
String
>[
await
flutter
(
'drive'
,
options:
<
String
>[
'--no-android-gradle-daemon'
,
'--no-android-gradle-daemon'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment