Skip to content

Commit f1e9411

Browse files
authored
Merge pull request #1 from flutter/master
update from upstream
2 parents ebab0d3 + f001ea2 commit f1e9411

File tree

572 files changed

+33401
-9140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+33401
-9140
lines changed

.cirrus.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@ gcp_credentials: ENCRYPTED[987a78af29b91ce8489594c9ab3fec21845bbe5ba68294b8f6def
33
# LINUX
44
task:
55
gke_container:
6-
image: gcr.io/flutter-cirrus/build-engine-image:latest
7-
cluster_name: build-32-cluster
8-
zone: us-central1-a
9-
namespace: default
10-
cpu: 30 # can't use all 30-cores; system pods needs cores too
11-
memory: 100Gb # similarly, can't use all 100Gb memory
6+
dockerfile: "ci/docker/build/Dockerfile"
7+
builder_image_name: docker-builder # gce vm image
8+
cluster_name: build-32-cluster
9+
zone: us-central1-a
10+
namespace: default
11+
cpu: 30 # can't use all 30-cores; system pods needs cores too
12+
memory: 100Gb # similarly, can't use all 100Gb memory
1213
env:
14+
CIRRUS_DOCKER_CONTEXT: "ci/docker/build"
1315
CIRRUS_WORKING_DIR: "/tmp/github_repo"
1416
ENGINE_PATH: "/tmp/clean_engine"
1517
DEPOT_TOOLS: "/tmp/depot_tools"
1618
FLUTTER_ENGINE: "/tmp/clean_engine/src"
1719
FRAMEWORK_PATH: "/tmp/master_framework"
1820
PATH: "$FLUTTER_ENGINE/third_party/dart/tools/sdks/dart-sdk/bin:$DEPOT_TOOLS:$PATH"
1921
USE_ANDROID: "False"
22+
# TODO(liyuqian): currently we're using flutter-cirrus GCP project. Migrate
23+
# to flutter-infra project once the metrics_center service is stabilized,
24+
BENCHMARK_GCP_CREDENTIALS: ENCRYPTED[da76d2b7b39894de70fae1fc9182c97cc41400adc93f0f1c49bc7442f15fb933da8d756ed88523810a9a77c34f51a693]
2025
setup_script: |
2126
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS
2227
mkdir -p $ENGINE_PATH/src
@@ -27,6 +32,18 @@ task:
2732
mv $CIRRUS_WORKING_DIR flutter
2833
gclient sync
2934
matrix:
35+
- name: build_and_benchmark_linux_release
36+
only_if: $CIRRUS_BRANCH == 'master' # Only run for post-submit commits.
37+
compile_host_script: |
38+
cd $ENGINE_PATH/src
39+
./flutter/tools/gn --runtime-mode=release
40+
ninja -C out/host_release
41+
benchmark_host_script: |
42+
cd $ENGINE_PATH/src/out/host_release/
43+
./txt_benchmarks --benchmark_format=json > txt_benchmarks.json
44+
cd $ENGINE_PATH/src/flutter/testing/benchmark
45+
pub get
46+
dart bin/parse_and_send.dart ../../../out/host_release/txt_benchmarks.json
3047
- name: build_and_test_linux_unopt_debug
3148
compile_host_script: |
3249
cd $ENGINE_PATH/src
@@ -73,8 +90,8 @@ task:
7390
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
7491
cd $ENGINE_PATH/src/flutter/lib/web_ui
7592
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
76-
export DART="$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dart"
77-
$DART dev/firefox_installer_test.dart
93+
export FELT="$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dart dev/felt.dart"
94+
$FELT test --browser=firefox
7895
- name: build_and_test_android_unopt_debug
7996
env:
8097
USE_ANDROID: "True"

.github/auto_assign.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This is the config file for `auto-assign` bot.
2+
# https://github.com/kentaro-m/auto-assign/
3+
4+
# Set to true to add reviewers to pull requests
5+
addReviewers: true
6+
7+
# Set to true to add assignees to pull requests
8+
addAssignees: false
9+
10+
# A list of reviewers to be added to pull requests (GitHub user name)
11+
# Note: Add new engine contributors here when joining the team.
12+
reviewers:
13+
- gaaclarke
14+
- liyuqian
15+
- gw280
16+
- chinmaygarde
17+
- GaryQian
18+
- jason-simmons
19+
- iskakaushik
20+
- franciscojma86
21+
- cbracken
22+
- flar
23+
- stuartmorgan
24+
25+
# A number of reviewers added to the pull request
26+
# Set 0 to add all the reviewers (default: 0)
27+
numberOfReviewers: 1
28+
29+
# A list of assignees, overrides reviewers if set
30+
# assignees:
31+
# - assigneeA
32+
33+
# A number of assignees to add to the pull request
34+
# Set to 0 to add all of the assignees.
35+
# Uses numberOfReviewers if unset.
36+
# numberOfAssignees: 2
37+
38+
# A list of keywords to be skipped the process that add reviewers if pull requests include it
39+
skipKeywords:
40+
- Roll

BUILD.gn

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ group("flutter") {
3131
"$flutter_root/sky",
3232
]
3333

34+
if (current_toolchain == host_toolchain) {
35+
public_deps += [ "$flutter_root/tools/font-subset" ]
36+
}
37+
3438
if (current_toolchain == host_toolchain) {
3539
public_deps += [ "$flutter_root/shell/testing" ]
3640
}
@@ -73,6 +77,7 @@ group("flutter") {
7377
"$flutter_root/shell/platform/common/cpp/client_wrapper:client_wrapper_unittests",
7478
"$flutter_root/shell/platform/embedder:embedder_unittests",
7579
"$flutter_root/shell/platform/glfw/client_wrapper:client_wrapper_glfw_unittests",
80+
"$flutter_root/testing:testing_unittests",
7681
"$flutter_root/third_party/txt:txt_unittests",
7782
]
7883

@@ -118,3 +123,18 @@ group("dist") {
118123
"$flutter_root/sky/dist",
119124
]
120125
}
126+
127+
# Fuchsia currently only supports a subset of our unit tests
128+
# When adding a new dep here, please also ensure the dep is added to
129+
# testing/fuchsia/run_tests.sh and testing/fuchsia/test_fars
130+
if (is_fuchsia) {
131+
group("fuchsia_tests") {
132+
testonly = true
133+
134+
deps = [
135+
"$flutter_root/flow:flow_tests",
136+
"$flutter_root/fml:fml_tests",
137+
"$flutter_root/shell/platform/fuchsia/flutter:flutter_runner_tests",
138+
]
139+
}
140+
}

DEPS

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ vars = {
2626
'skia_git': 'https://skia.googlesource.com',
2727
# OCMock is for testing only so there is no google clone
2828
'ocmock_git': 'https://github.com/erikdoe/ocmock.git',
29-
'skia_revision': '8e083eee8ece4e1acaeb01ae4192050969c4b0c6',
29+
'skia_revision': '91e0d7526944f714706ec9510c346bd4eab3d5f1',
3030

3131
# When updating the Dart revision, ensure that all entries that are
3232
# dependencies of Dart are also updated to match the entries in the
3333
# Dart SDK's DEPS file for that revision of Dart. The DEPS file for
3434
# Dart is: https://github.com/dart-lang/sdk/blob/master/DEPS.
3535
# You can use //tools/dart/create_updated_flutter_deps.py to produce
3636
# updated revision list of existing dependencies.
37-
'dart_revision': 'bbe2ac28c9ab5bfec4e13d5df9360e7aa691cfe6',
37+
'dart_revision': 'c0ca187f2699fb7f46fccb8c664a2ba3a0958fce',
3838

3939
# WARNING: DO NOT EDIT MANUALLY
4040
# The lines between blank lines above and below are generated by a script. See create_updated_flutter_deps.py
@@ -63,7 +63,7 @@ vars = {
6363
'dart_http_throttle_tag': '1.0.2',
6464
'dart_intl_tag': '0.15.7',
6565
'dart_json_rpc_2_tag': '2.0.9',
66-
'dart_linter_tag': '0.1.102',
66+
'dart_linter_tag': '0.1.106',
6767
'dart_logging_tag': '0.11.3+2',
6868
'dart_markdown_tag': '2.1.1',
6969
'dart_matcher_tag': '0.12.3',
@@ -78,7 +78,7 @@ vars = {
7878
'dart_pedantic_tag': 'v1.8.0',
7979
'dart_pool_tag': '1.3.6',
8080
'dart_protobuf_rev': '3746c8fd3f2b0147623a8e3db89c3ff4330de760',
81-
'dart_pub_rev': '80ac76400ff58fde3c5a335d860d196c3febe837',
81+
'dart_pub_rev': '4d8ecbd409d773fec47da33b7e6c8db0b51487fd',
8282
'dart_pub_semver_tag': '1.4.2',
8383
'dart_quiver-dart_tag': '2.0.0+1',
8484
'dart_resource_rev': 'f8e37558a1c4f54550aa463b88a6a831e3e33cd6',
@@ -99,7 +99,7 @@ vars = {
9999
'dart_tflite_native_rev': '3c777c40608a2a9f1427bfe0028ab48e7116b4c1',
100100
'dart_typed_data_tag': '1.1.6',
101101
'dart_usage_tag': '3.4.0',
102-
'dart_watcher_rev': '0.9.7+12-pub',
102+
'dart_watcher_rev': '0.9.7+13',
103103
'dart_web_socket_channel_tag': '1.0.9',
104104
'dart_yaml_tag': '2.2.0',
105105

@@ -137,7 +137,7 @@ allowed_hosts = [
137137
]
138138

139139
deps = {
140-
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'a518e359c41e00f964f7cc079cbc5ef525f82516',
140+
'src': 'https://github.com/flutter/buildroot.git' + '@' + '8a6510fad8f4e0cb7570a677fa25720f751d34a9',
141141

142142
# Fuchsia compatibility
143143
#
@@ -152,7 +152,7 @@ deps = {
152152
Var('fuchsia_git') + '/third_party/benchmark' + '@' + 'a779ffce872b4c811beef482e18bd0b63626aa42',
153153

154154
'src/third_party/googletest':
155-
Var('fuchsia_git') + '/third_party/googletest' + '@' + 'd8827ca8e397b725a3039b19cc116e309c47815e',
155+
Var('fuchsia_git') + '/third_party/googletest' + '@' + '3fef9015bfe7617d57806cd7c73a653b28559fae',
156156

157157
'src/third_party/rapidjson':
158158
Var('fuchsia_git') + '/third_party/rapidjson' + '@' + '32d07c55db1bb6c2ae17cba4033491a667647753',
@@ -192,7 +192,7 @@ deps = {
192192
# WARNING: Unused Dart dependencies in the list below till "WARNING:" marker are removed automatically - see create_updated_flutter_deps.py.
193193

194194
'src/third_party/dart/pkg/analysis_server/language_model':
195-
{'packages': [{'version': '9fJQZ0TrnAGQKrEtuL3-AXbUfPzYxqpN_OBHr9P4hE4C', 'package': 'dart/language_model'}], 'dep_type': 'cipd'},
195+
{'packages': [{'version': 'lIRt14qoA1Cocb8j3yw_Fx5cfYou2ddam6ArBm4AI6QC', 'package': 'dart/language_model'}], 'dep_type': 'cipd'},
196196

197197
'src/third_party/dart/third_party/observatory_pub_packages':
198198
Var('dart_git') + '/observatory_pub_packages.git' + '@' + Var('dart_observatory_pub_packages_rev'),
@@ -231,7 +231,7 @@ deps = {
231231
Var('dart_git') + '/dart2js_info.git' + '@' + Var('dart_dart2js_info_tag'),
232232

233233
'src/third_party/dart/third_party/pkg/dartdoc':
234-
Var('dart_git') + '/dartdoc.git@v0.28.8',
234+
Var('dart_git') + '/dartdoc.git@v0.29.3',
235235

236236
'src/third_party/dart/third_party/pkg/ffi':
237237
Var('dart_git') + '/ffi.git' + '@' + Var('dart_ffi_tag'),
@@ -381,7 +381,7 @@ deps = {
381381
Var('dart_git') + '/package_resolver.git' + '@' + Var('dart_package_resolver_tag'),
382382

383383
'src/third_party/dart/tools/sdks':
384-
{'packages': [{'version': 'version:2.6.0-dev.4.0', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
384+
{'packages': [{'version': 'version:2.8.0-dev.0.0', 'package': 'dart/dart-sdk/${{platform}}'}], 'dep_type': 'cipd'},
385385

386386
# WARNING: end of dart dependencies list that is cleaned up automatically - see create_updated_flutter_deps.py.
387387

@@ -420,7 +420,7 @@ deps = {
420420
Var('github_git') + '/KhronosGroup/Vulkan-Docs.git' + '@' + 'v1.1.91',
421421

422422
'src/third_party/swiftshader':
423-
Var('swiftshader_git') + '/SwiftShader.git' + '@' + 'd70129a3d3409dac58e14f819b62620393afb652',
423+
Var('swiftshader_git') + '/SwiftShader.git' + '@' + '5d1e8540407c138f47028d64684f3da599430aa4',
424424

425425
'src/third_party/angle':
426426
Var('github_git') + '/google/angle.git' + '@' + '3ea90d609720b7b9b9d05ca094860382f2425294',
@@ -494,21 +494,11 @@ deps = {
494494
'dep_type': 'cipd',
495495
},
496496

497-
'src/third_party/dart/tools/sdks': {
498-
'packages': [
499-
{
500-
'package': 'dart/dart-sdk/${{platform}}',
501-
'version': 'version:2.4.0'
502-
}
503-
],
504-
'dep_type': 'cipd',
505-
},
506-
507497
'src/third_party/dart/pkg/analysis_server/language_model': {
508498
'packages': [
509499
{
510500
'package': 'dart/language_model',
511-
'version': '9fJQZ0TrnAGQKrEtuL3-AXbUfPzYxqpN_OBHr9P4hE4C',
501+
'version': 'lIRt14qoA1Cocb8j3yw_Fx5cfYou2ddam6ArBm4AI6QC',
512502
}
513503
],
514504
'dep_type': 'cipd',
@@ -542,7 +532,7 @@ deps = {
542532
'packages': [
543533
{
544534
'package': 'fuchsia/sdk/core/mac-amd64',
545-
'version': 'ggsQ5vCgXEhoHFZSNBKKZWxStVwTPSlaOD2fRdJyL_gC'
535+
'version': 'gL-XGLFjK54v2X1duSqq3mbo3SqNeCu9gl0eNqLxTJoC'
546536
}
547537
],
548538
'condition': 'host_os == "mac"',
@@ -552,7 +542,7 @@ deps = {
552542
'packages': [
553543
{
554544
'package': 'fuchsia/clang/mac-amd64',
555-
'version': '6tttOTlynvfnjkMSTokwfI4sj7gfuyeF02Y6F7zwBKkC'
545+
'version': 'OzTZOKkICT0yD82Dbx0jvVn5hN5eOSi6ByVTDseE7i0C'
556546
}
557547
],
558548
'condition': 'host_os == "mac"',
@@ -562,7 +552,7 @@ deps = {
562552
'packages': [
563553
{
564554
'package': 'fuchsia/sdk/core/linux-amd64',
565-
'version': 'dhwMRVa1EqOssqHjmArBMM7Ne4-LwwiF1c51klzy318C'
555+
'version': 'oNKzr_f8lbFMtdLNoE5sJHpi8K-9fm1uYYV7Z-lwR8gC'
566556
}
567557
],
568558
'condition': 'host_os == "linux"',
@@ -572,7 +562,7 @@ deps = {
572562
'packages': [
573563
{
574564
'package': 'fuchsia/clang/linux-amd64',
575-
'version': 'WxGHgTOyvYvcynHb6cBxdHIwSdivQJecIrb5NRHvxfwC'
565+
'version': 'OT6p30bQQhyCzRSy7xPsSbZ88J3PWOnneenkMZ0j7kIC'
576566
}
577567
],
578568
'condition': 'host_os == "linux"',

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Flutter Engine
33
[![Build Status - Cirrus][]][Build status]
44

55
Flutter is Google's mobile app SDK for crafting high-quality native interfaces
6-
on iOS and Android in record time. Flutter works with existing code, is used by
7-
developers and organizations around the world, and is free and open source.
6+
in record time. Flutter works with existing code, is used by developers and
7+
organizations around the world, and is free and open source.
88

99
The Flutter Engine is a portable runtime for hosting
1010
[Flutter](https://flutter.dev) applications. It implements Flutter's core

ci/docker/build/README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ building flutter/engine in our CI system (currently [Cirrus](cirrus-ci.org)).
44
In order to run the scripts, you have to setup `docker` and `gcloud`. Please
55
refer to internal doc go/installdocker for how to setup `docker` on gLinux.
66

7-
After setup,
8-
* edit `Dockerfile` to change how the container image is built.
9-
* run `./build_docker.sh` to build the container image.
10-
* run `./push_docker.sh` to push the image to google cloud registry. This will
11-
affect our CI tests.
7+
Cirrus will build (and cache) a Docker image based on this `Dockerfile` for
8+
Linux tasks using its
9+
[Dockerfile as CI](https://cirrus-ci.org/guide/docker-builder-vm/) feature.
10+
Any change to the `Dockerfile` will cause a new task to be triggered to build
11+
and tag a new version of the Docker image which will be a dependency of the
12+
other Linux tasks. This task will instantiate a new GCP VM based on the image
13+
specified in the `.cirrus.yml` `builder_image_name` field.
1214

15+
To test changes to the Linux `Dockerfile`, create a PR with the changes, and
16+
Cirrus will attempt to build a new image.
17+
18+
To debug locally, you can build an image with `./build_docker.sh`, but pushing
19+
to the registry is no longer necessary.

ci/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fi;
4242

4343
BASE_SHA="$(git fetch $UPSTREAM master > /dev/null 2>&1 && \
4444
(git merge-base --fork-point FETCH_HEAD HEAD || git merge-base FETCH_HEAD HEAD))"
45-
FILES_TO_CHECK="$(git diff $DIFF_OPTS $BASE_SHA..HEAD -- $FILETYPES)"
45+
FILES_TO_CHECK="$(git diff $DIFF_OPTS $BASE_SHA -- $FILETYPES)"
4646

4747
FAILED_CHECKS=0
4848
for f in $FILES_TO_CHECK; do

0 commit comments

Comments
 (0)