Skip to content

Commit a686623

Browse files
Merge pull request #5 from flutter/master
Update fork
2 parents fbce2bf + edf4bde commit a686623

File tree

1,914 files changed

+244657
-35068
lines changed

Some content is hidden

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

1,914 files changed

+244657
-35068
lines changed

.cirrus.yml

Lines changed: 182 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,202 @@
11
gcp_credentials: ENCRYPTED[987a78af29b91ce8489594c9ab3fec21845bbe5ba68294b8f6def3cf0d380830f06687a89ea69c87344c5ade369700fe]
22

3-
gke_container:
4-
image: gcr.io/flutter-cirrus/build-engine-image:latest
5-
cluster_name: build-32-cluster
6-
zone: us-central1-a
7-
namespace: default
8-
cpu: 30 # can't use all 30-cores; system pods needs cores too
9-
memory: 100Gb # similarly, can't use all 100Gb memory
3+
web_shard_template: &WEB_SHARD_TEMPLATE
4+
only_if: "changesInclude('.cirrus.yml', 'lib/web_ui/**', 'web_sdk/**') || $CIRRUS_PR == ''"
5+
environment:
6+
# As of October 2019, the Web shards needed more than 6G of RAM.
7+
CPU: 2
8+
MEMORY: 8G
9+
compile_host_script: |
10+
cd $ENGINE_PATH/src
11+
./flutter/tools/gn --unoptimized --full-dart-sdk
12+
ninja -C out/host_debug_unopt
13+
fetch_framework_script: |
14+
cd $ENGINE_PATH/src/flutter/tools
15+
./clone_flutter.sh
16+
cd $FRAMEWORK_PATH/flutter
17+
bin/flutter update-packages --local-engine=host_debug_unopt
18+
script:
19+
- dart --enable-asserts $FRAMEWORK_PATH/flutter/dev/bots/test.dart --local-engine=host_debug_unopt
1020

21+
# LINUX
1122
task:
23+
gke_container:
24+
dockerfile: "ci/docker/build/Dockerfile"
25+
builder_image_name: docker-builder # gce vm image
26+
cluster_name: build-32-cluster
27+
zone: us-central1-a
28+
namespace: default
29+
cpu: 30 # can't use all 30-cores; system pods needs cores too
30+
memory: 100Gb # similarly, can't use all 100Gb memory
1231
env:
32+
CIRRUS_DOCKER_CONTEXT: "ci/docker/build"
1333
CIRRUS_WORKING_DIR: "/tmp/github_repo"
14-
15-
replace_engine_script: |
34+
ENGINE_PATH: "/tmp/clean_engine"
35+
DEPOT_TOOLS: "/tmp/depot_tools"
36+
FLUTTER_ENGINE: "/tmp/clean_engine/src"
37+
FRAMEWORK_PATH: "/tmp/master_framework"
38+
PATH: "$FLUTTER_ENGINE/third_party/dart/tools/sdks/dart-sdk/bin:$DEPOT_TOOLS:$PATH"
39+
USE_ANDROID: "False"
40+
# TODO(liyuqian): currently we're using flutter-cirrus GCP project. Migrate
41+
# to flutter-infra project once the metrics_center service is stabilized,
42+
BENCHMARK_GCP_CREDENTIALS: ENCRYPTED[da76d2b7b39894de70fae1fc9182c97cc41400adc93f0f1c49bc7442f15fb933da8d756ed88523810a9a77c34f51a693]
43+
setup_script: |
44+
git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS
45+
mkdir -p $ENGINE_PATH/src
46+
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "[email protected]:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_android_deps" : ' $USE_ANDROID ', "download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient
1647
cd $ENGINE_PATH/src
17-
rm -r flutter
48+
rm -rf flutter
49+
rm -rf out
1850
mv $CIRRUS_WORKING_DIR flutter
1951
gclient sync
20-
2152
matrix:
22-
- name: build_and_test_host
53+
- name: build_and_benchmark_linux_release
54+
only_if: $CIRRUS_BRANCH == 'master' # Only run for post-submit commits.
55+
compile_host_script: |
56+
cd $ENGINE_PATH/src
57+
./flutter/tools/gn --runtime-mode=release
58+
ninja -C out/host_release
59+
benchmark_host_script: |
60+
cd $ENGINE_PATH/src/out/host_release/
61+
./txt_benchmarks --benchmark_format=json > txt_benchmarks.json
62+
cd $ENGINE_PATH/src/flutter/testing/benchmark
63+
pub get
64+
dart bin/parse_and_send.dart ../../../out/host_release/txt_benchmarks.json
65+
- name: build_and_test_linux_unopt_debug
2366
compile_host_script: |
2467
cd $ENGINE_PATH/src
25-
./flutter/tools/gn --unoptimized
68+
./flutter/tools/gn --unoptimized --full-dart-sdk
2669
ninja -C out/host_debug_unopt
27-
test_host_script: cd $ENGINE_PATH/src && ./flutter/testing/run_tests.sh
28-
- name: build_android
70+
test_host_script: |
71+
cd $ENGINE_PATH/src
72+
./flutter/testing/run_tests.sh host_debug_unopt
73+
test_web_engine_script: |
74+
cd $ENGINE_PATH/src/flutter/web_sdk/web_engine_tester
75+
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
76+
cd $ENGINE_PATH/src/flutter/lib/web_ui
77+
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
78+
export FELT="$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dart dev/felt.dart"
79+
$FELT check-licenses
80+
CHROME_NO_SANDBOX=true $FELT test
81+
always:
82+
web_engine_test_artifacts:
83+
path: test_results/*
84+
fetch_framework_script: |
85+
mkdir -p $FRAMEWORK_PATH
86+
cd $FRAMEWORK_PATH
87+
git clone https://github.com/flutter/flutter.git
88+
test_web_script: |
89+
cd $FRAMEWORK_PATH/flutter/dev/integration_tests/web
90+
../../../bin/flutter config --local-engine=host_debug_unopt --no-analytics --enable-web
91+
../../../bin/flutter --local-engine=host_debug_unopt build web -v
92+
analyze_framework_script: |
93+
cd $FRAMEWORK_PATH/flutter
94+
rm -rf bin/cache/pkg/sky_engine
95+
cp -r $ENGINE_PATH/src/out/host_debug_unopt/gen/dart-pkg/sky_engine bin/cache/pkg/
96+
bin/flutter update-packages --local-engine=host_debug_unopt
97+
bin/flutter analyze --dartdocs --flutter-repo --local-engine=host_debug_unopt
98+
test_framework_script: |
99+
cd $FRAMEWORK_PATH/flutter/packages/flutter
100+
../../bin/flutter test --local-engine=host_debug_unopt
101+
102+
# PLEASE KEEP THESE WEB TEST SHARDS IN SYNC WITH THEIR COUNTERPARTS IN flutter/flutter's CIRRUS CONFIG.
103+
- name: web_tests-0-linux
104+
<< : *WEB_SHARD_TEMPLATE
105+
106+
- name: web_tests-1-linux
107+
<< : *WEB_SHARD_TEMPLATE
108+
109+
- name: web_tests-2-linux
110+
<< : *WEB_SHARD_TEMPLATE
111+
112+
- name: web_tests-3-linux
113+
<< : *WEB_SHARD_TEMPLATE
114+
115+
- name: web_tests-4-linux
116+
<< : *WEB_SHARD_TEMPLATE
117+
118+
- name: web_tests-5-linux
119+
<< : *WEB_SHARD_TEMPLATE
120+
121+
- name: web_tests-6-linux
122+
<< : *WEB_SHARD_TEMPLATE
123+
124+
- name: web_tests-7_last-linux # last Web shard must end with _last
125+
<< : *WEB_SHARD_TEMPLATE
126+
127+
- name: build_and_test_web_linux_firefox
128+
compile_host_script: |
129+
cd $ENGINE_PATH/src
130+
./flutter/tools/gn --unoptimized --full-dart-sdk
131+
ninja -C out/host_debug_unopt
132+
test_web_engine_firefox_script: |
133+
cd $ENGINE_PATH/src/flutter/web_sdk/web_engine_tester
134+
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
135+
cd $ENGINE_PATH/src/flutter/lib/web_ui
136+
$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/pub get
137+
export FELT="$ENGINE_PATH/src/out/host_debug_unopt/dart-sdk/bin/dart dev/felt.dart"
138+
$FELT test --browser=firefox
139+
- name: build_and_test_android_unopt_debug
140+
env:
141+
USE_ANDROID: "True"
142+
ANDROID_HOME: $ENGINE_PATH/src/third_party/android_tools/sdk
143+
lint_host_script: |
144+
cd $ENGINE_PATH/src/flutter/tools/android_lint
145+
$ENGINE_PATH/src/third_party/dart/tools/sdks/dart-sdk/bin/pub get
146+
$ENGINE_PATH/src/third_party/dart/tools/sdks/dart-sdk/bin/dart bin/main.dart
29147
compile_host_script: |
30148
cd $ENGINE_PATH/src
31149
./flutter/tools/gn --android --unoptimized
32150
ninja -C out/android_debug_unopt
151+
mkdir javadoc_tmp
152+
./flutter/tools/gen_javadoc.py --out-dir javadoc_tmp
153+
test_android_script: cd $ENGINE_PATH/src && python ./flutter/testing/run_tests.py --type=java
154+
- name: format_and_dart_test
155+
format_script: |
156+
cd $ENGINE_PATH/src/flutter
157+
./ci/format.sh
158+
build_script: |
159+
cd $ENGINE_PATH/src/flutter
160+
./ci/build.sh
161+
- name: build_fuchsia_artifacts
162+
compile_fuchsia_script: |
163+
cd $ENGINE_PATH/src
164+
./flutter/tools/fuchsia/build_fuchsia_artifacts.py --engine-version HEAD --runtime-mode debug --no-lto --archs x64
165+
cd $ENGINE_PATH/src/flutter
33166
34-
format_and_dart_test_task:
35-
container:
36-
image: gcr.io/flutter-cirrus/build-engine-image:latest
37-
167+
# WINDOWS
168+
task:
169+
gce_instance:
170+
image_project: flutter-cirrus
171+
image_name: flutter-engine-windows-server-2016
172+
zone: us-central1-a
173+
platform: windows
174+
cpu: 32
175+
memory: 32Gb
176+
disk: 50
38177
env:
39-
CIRRUS_WORKING_DIR: "/tmp/github_repo"
40-
41-
replace_engine_script: |
42-
cd $ENGINE_PATH/src
43-
rm -r flutter
44-
cp $CIRRUS_WORKING_DIR -r ./flutter
178+
# Cirrus is somehow not picking up the environment variables set in the VM image.
179+
PATH: "c:/depot_tools;c:/MinGit/cmd;$PATH"
180+
DEPOT_TOOLS_WIN_TOOLCHAIN: 0
181+
GYP_MSVS_OVERRIDE_PATH: "c:/Program Files (x86)/Microsoft Visual Studio/2017/Community"
182+
ENGINE_PATH: "c:/flutter/engine"
183+
setup_script: |
184+
REM robocopy can return 1 for successful copy; suppress its error code.
185+
REM move somehow doesn't work as it complains that the file is being used by another process.
186+
robocopy %CIRRUS_WORKING_DIR% %ENGINE_PATH%/src/flutter /MIR| (cmd /s /c exit /b 0)
187+
cd %ENGINE_PATH%/src
45188
gclient sync
46-
47-
format_script: cd $ENGINE_PATH/src/flutter && ./ci/format.sh
48-
build_script: cd $ENGINE_PATH/src/flutter && ./ci/build.sh
189+
matrix:
190+
- name: build_and_test_windows_unopt_debug
191+
compile_host_script: |
192+
cd %ENGINE_PATH%/src
193+
python flutter/tools/gn --runtime-mode debug --unoptimized
194+
ninja -C out/host_debug_unopt
195+
test_host_script: |
196+
cd %ENGINE_PATH%/src
197+
python flutter/testing/run_tests.py --type=engine
198+
- name: build_windows_opt_debug
199+
compile_host_script: |
200+
cd %ENGINE_PATH%/src
201+
python flutter/tools/gn --runtime-mode debug
202+
ninja -C out/host_debug

.github/auto_assign.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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
41+
- web

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
*~
44
.*.sw?
55
.DS_Store
6+
.ccls-cache
67
.classpath
8+
.clangd/
79
.cproject
810
.dart_tool
911
.gdb_history
@@ -14,10 +16,16 @@
1416
.project
1517
.pub
1618
.pydevproject
19+
compile_commands.json
1720
cscope.*
1821
Session.vim
1922
tags
2023
Thumbs.db
2124
.idea
2225
pubspec.lock
2326
.vscode/
27+
docs/doxygen/
28+
xcuserdata
29+
30+
third_party/gn/
31+

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ Victor Choueiri <[email protected]>
1414
Simon Lightfoot <[email protected]>
1515
Dwayne Slater <[email protected]>
1616
Tetsuhiro Ueda <[email protected]>
17+
shoryukenn <[email protected]>
18+
SOTEC GmbH & Co. KG <[email protected]>

0 commit comments

Comments
 (0)