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
ab77e435
Unverified
Commit
ab77e435
authored
Sep 07, 2022
by
keyonghan
Committed by
GitHub
Sep 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate Linux android gallery `e2e` and `hybrid` tests to build+test (#110533)
parent
820a009f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
9 deletions
+45
-9
.ci.yaml
.ci.yaml
+9
-5
flutter_gallery__transition_perf_e2e.dart
...celab/bin/tasks/flutter_gallery__transition_perf_e2e.dart
+2
-2
flutter_gallery__transition_perf_hybrid.dart
...ab/bin/tasks/flutter_gallery__transition_perf_hybrid.dart
+2
-2
gallery.dart
dev/devicelab/lib/tasks/gallery.dart
+32
-0
No files found.
.ci.yaml
View file @
ab77e435
...
...
@@ -1940,25 +1940,29 @@ targets:
tags
:
>
["devicelab", "android", "linux"]
task_name
:
flutter_gallery__transition_perf
artifact
:
gallery_
app_profile
artifact
:
gallery_
_transition_perf
-
name
:
Linux_android flutter_gallery__transition_perf_e2e
recipe
:
devicelab/devicelab_drone
-
name
:
Linux_build_test flutter_gallery__transition_perf_e2e
recipe
:
devicelab/devicelab_drone_build_test
bringup
:
true
# New target https://github.com/flutter/flutter/issues/103542
presubmit
:
false
timeout
:
60
properties
:
tags
:
>
["devicelab", "android", "linux"]
task_name
:
flutter_gallery__transition_perf_e2e
artifact
:
gallery__transition_perf_e2e
-
name
:
Linux_android flutter_gallery__transition_perf_hybrid
recipe
:
devicelab/devicelab_drone
-
name
:
Linux_build_test flutter_gallery__transition_perf_hybrid
recipe
:
devicelab/devicelab_drone_build_test
bringup
:
true
# New target https://github.com/flutter/flutter/issues/103542
presubmit
:
false
timeout
:
60
properties
:
tags
:
>
["devicelab", "android", "linux"]
task_name
:
flutter_gallery__transition_perf_hybrid
artifact
:
gallery__transition_perf_hybrid
-
name
:
Linux_android flutter_gallery__transition_perf_with_semantics
recipe
:
devicelab/devicelab_drone
...
...
dev/devicelab/bin/tasks/flutter_gallery__transition_perf_e2e.dart
View file @
ab77e435
...
...
@@ -6,7 +6,7 @@ import 'package:flutter_devicelab/framework/devices.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/tasks/gallery.dart'
;
Future
<
void
>
main
()
async
{
Future
<
void
>
main
(
List
<
String
>
args
)
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createGalleryTransitionE2E
Test
(
));
await
task
(
createGalleryTransitionE2E
BuildTest
(
args
));
}
dev/devicelab/bin/tasks/flutter_gallery__transition_perf_hybrid.dart
View file @
ab77e435
...
...
@@ -6,7 +6,7 @@ import 'package:flutter_devicelab/framework/devices.dart';
import
'package:flutter_devicelab/framework/framework.dart'
;
import
'package:flutter_devicelab/tasks/gallery.dart'
;
Future
<
void
>
main
()
async
{
Future
<
void
>
main
(
List
<
String
>
args
)
async
{
deviceOperatingSystem
=
DeviceOperatingSystem
.
android
;
await
task
(
createGalleryTransitionHybrid
Test
(
));
await
task
(
createGalleryTransitionHybrid
BuildTest
(
args
));
}
dev/devicelab/lib/tasks/gallery.dart
View file @
ab77e435
...
...
@@ -25,6 +25,23 @@ TaskFunction createGalleryTransitionTest({bool semanticsEnabled = false}) {
return
GalleryTransitionTest
(
semanticsEnabled:
semanticsEnabled
);
}
TaskFunction
createGalleryTransitionE2EBuildTest
(
List
<
String
>
args
,
{
bool
semanticsEnabled
=
false
,
bool
enableImpeller
=
false
,
})
{
return
GalleryTransitionBuildTest
(
args
,
testFile:
semanticsEnabled
?
'transitions_perf_e2e_with_semantics'
:
'transitions_perf_e2e'
,
needFullTimeline:
false
,
timelineSummaryFile:
'e2e_perf_summary'
,
transitionDurationFile:
null
,
timelineTraceFile:
null
,
driverFile:
'transitions_perf_e2e_test'
,
enableImpeller:
enableImpeller
,
);
}
TaskFunction
createGalleryTransitionE2ETest
(
{
bool
semanticsEnabled
=
false
,
bool
enableImpeller
=
false
,
...
...
@@ -42,6 +59,17 @@ TaskFunction createGalleryTransitionE2ETest({
);
}
TaskFunction
createGalleryTransitionHybridBuildTest
(
List
<
String
>
args
,
{
bool
semanticsEnabled
=
false
,
})
{
return
GalleryTransitionBuildTest
(
args
,
semanticsEnabled:
semanticsEnabled
,
driverFile:
semanticsEnabled
?
'transitions_perf_hybrid_with_semantics_test'
:
'transitions_perf_hybrid_test'
,
);
}
TaskFunction
createGalleryTransitionHybridTest
(
{
bool
semanticsEnabled
=
false
})
{
return
GalleryTransitionTest
(
semanticsEnabled:
semanticsEnabled
,
...
...
@@ -205,12 +233,14 @@ class GalleryTransitionBuildTest extends BuildTestTask {
this
.
driverFile
,
this
.
measureCpuGpu
=
true
,
this
.
measureMemory
=
true
,
this
.
enableImpeller
=
false
,
})
:
super
(
workingDirectory:
galleryDirectory
);
final
bool
semanticsEnabled
;
final
bool
needFullTimeline
;
final
bool
measureCpuGpu
;
final
bool
measureMemory
;
final
bool
enableImpeller
;
final
String
testFile
;
final
String
timelineSummaryFile
;
final
String
?
timelineTraceFile
;
...
...
@@ -246,7 +276,9 @@ class GalleryTransitionBuildTest extends BuildTestTask {
List
<
String
>
getTestArgs
(
DeviceOperatingSystem
deviceOperatingSystem
,
String
deviceId
)
{
final
String
testDriver
=
driverFile
??
(
semanticsEnabled
?
'
${testFile}
_with_semantics_test'
:
'
${testFile}
_test'
);
return
<
String
>[
'--no-dds'
,
'--profile'
,
if
(
enableImpeller
)
'--enable-impeller'
,
if
(
needFullTimeline
)
'--trace-startup'
,
'-t'
,
'test_driver/
$testFile
.dart'
,
...
...
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