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
43932aa2
Unverified
Commit
43932aa2
authored
Sep 24, 2019
by
Kate Lovett
Committed by
GitHub
Sep 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Benchmark for un-triaged image results on Flutter Gold (#40634)
parent
0ca5e71f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
flutter_gold_triage.dart
dev/devicelab/bin/tasks/flutter_gold_triage.dart
+35
-0
manifest.yaml
dev/devicelab/manifest.yaml
+6
-0
No files found.
dev/devicelab/bin/tasks/flutter_gold_triage.dart
0 → 100644
View file @
43932aa2
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:io'
;
import
'package:flutter_devicelab/framework/framework.dart'
;
const
String
_kTriageCountKey
=
'count'
;
Future
<
TaskResult
>
getTriageCount
()
async
{
final
HttpClient
skiaClient
=
HttpClient
();
int
digestCount
=
0
;
try
{
final
HttpClientRequest
request
=
await
skiaClient
.
getUrl
(
Uri
.
parse
(
'https://flutter-gold.skia.org/json/trstatus'
));
final
HttpClientResponse
response
=
await
request
.
close
();
final
String
responseBody
=
await
response
.
transform
(
utf8
.
decoder
).
join
();
final
Map
<
String
,
dynamic
>
json
=
jsonDecode
(
responseBody
);
digestCount
=
json
[
'corpStatus'
][
0
][
'untriagedCount'
];
}
catch
(
e
)
{
return
TaskResult
.
failure
(
e
.
toString
());
}
return
TaskResult
.
success
(
<
String
,
dynamic
>{
_kTriageCountKey:
digestCount
},
benchmarkScoreKeys:
<
String
>[
_kTriageCountKey
],
);
}
Future
<
void
>
main
()
async
{
await
task
(()
=>
getTriageCount
());
}
dev/devicelab/manifest.yaml
View file @
43932aa2
...
...
@@ -655,6 +655,12 @@ tasks:
stage
:
devicelab
required_agent_capabilities
:
[
"
linux/android"
]
flutter_gold_triage
:
description
:
>
Checks the number of un-triaged image digests from Flutter Gold.
stage
:
devicelab
required_agent_capabilities
:
[
"
linux/android"
]
# run_without_leak_linux:
# description: >
# Checks that `flutter run` does not leak dart on Linux.
...
...
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