Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6125e74

Browse files
authored
Merge branch 'main' into issue_34688_dev
2 parents c2a6550 + 8774c24 commit 6125e74

File tree

890 files changed

+52225
-8877
lines changed

Some content is hidden

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

890 files changed

+52225
-8877
lines changed

.ci.yaml

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,12 @@ platform_properties:
1818
build_android_aot: "false"
1919
build_android_vulkan: "false"
2020
build_ios: "false"
21-
build_windows_uwp: "false"
2221
build_android_jit_release: "false"
2322
gcs_goldens_bucket: ""
2423
ios_debug: "false"
2524
ios_profile: "false"
2625
ios_release: "false"
2726
no_bitcode: "false"
28-
caches: >-
29-
[
30-
{"name":"builder_linux_engine","path":"builder"},
31-
{"name":"gradle","path":"gradle"},
32-
{"name":"openjdk","path":"java"}
33-
]
3427
# CIPD flutter_internal/java/openjdk/$platform
3528
dependencies: >-
3629
[
@@ -48,27 +41,19 @@ platform_properties:
4841
build_android_aot: "false"
4942
build_android_vulkan: "false"
5043
build_ios: "false"
51-
build_windows_uwp: "false"
5244
build_android_jit_release: "false"
5345
gcs_goldens_bucket: ""
5446
ios_debug: "false"
5547
ios_profile: "false"
5648
ios_release: "false"
5749
no_bitcode: "false"
58-
caches: >-
59-
[
60-
{"name":"flutter_cocoapods","path":"cocoapods"},
61-
{"name":"osx_sdk_13a233","path":"osx_sdk"},
62-
{"name":"builder_mac_engine","path":"builder"},
63-
{"name":"openjdk","path":"java"}
64-
]
6550
# CIPD flutter_internal/java/openjdk/$platform
6651
dependencies: >-
6752
[
6853
{"dependency": "open_jdk", "version": "version:1.8.0u202-b08"}
6954
]
7055
device_type: none
71-
mac_model: "Macmini8,1"
56+
cpu: x86
7257
os: Mac-12
7358
xcode: 13a233 # xcode 13.0
7459
windows:
@@ -79,18 +64,12 @@ platform_properties:
7964
build_android_aot: "false"
8065
build_android_vulkan: "false"
8166
build_ios: "false"
82-
build_windows_uwp: "false"
8367
build_android_jit_release: "false"
8468
gcs_goldens_bucket: ""
8569
ios_debug: "false"
8670
ios_profile: "false"
8771
ios_release: "false"
8872
no_bitcode: "false"
89-
caches: >-
90-
[
91-
{"name":"builder_win_engine","path":"builder"},
92-
{"name":"openjdk","path":"java"}
93-
]
9473
# CIPD flutter_internal/java/openjdk/$platform
9574
dependencies: >-
9675
[
@@ -156,6 +135,8 @@ targets:
156135
add_recipes_cq: "true"
157136
build_fuchsia: "true"
158137
fuchsia_ctl_version: version:0.0.27
138+
# ensure files from pre-production Fuchsia SDK tests are purged from cache
139+
clobber: "true"
159140
timeout: 90
160141

161142
- name: Linux Fuchsia FEMU
@@ -164,6 +145,8 @@ targets:
164145
add_recipes_cq: "true"
165146
build_fuchsia: "true"
166147
fuchsia_ctl_version: version:0.0.27
148+
# ensure files from pre-production Fuchsia SDK tests are purged from cache
149+
clobber: "true"
167150
timeout: 60
168151

169152
- name: Linux Framework Smoke Tests
@@ -201,6 +184,14 @@ targets:
201184
build_host: "true"
202185
timeout: 90
203186

187+
- name: Linux linux_arm_host_engine
188+
recipe: engine_v2/engine_v2
189+
bringup: true
190+
timeout: 60
191+
properties:
192+
config_name: linux_arm_host_engine
193+
environment: Staging
194+
204195
- name: Linux linux_host_engine
205196
recipe: engine_v2/engine_v2
206197
bringup: true
@@ -209,6 +200,14 @@ targets:
209200
config_name: linux_host_engine
210201
environment: Staging
211202

203+
- name: Linux linux_android_aot_engine
204+
recipe: engine_v2/engine_v2
205+
bringup: true
206+
timeout: 60
207+
properties:
208+
config_name: linux_android_aot_engine
209+
environment: Staging
210+
212211
- name: Linux Web Engine
213212
recipe: engine/web_engine
214213
properties:
@@ -271,20 +270,19 @@ targets:
271270
jazzy_version: "0.14.1"
272271
timeout: 75
273272

273+
- name: Mac mac_host_engine
274+
recipe: engine_v2/engine_v2
275+
bringup: true
276+
timeout: 60
277+
properties:
278+
config_name: mac_host_engine
279+
environment: Staging
280+
274281
- name: Mac Unopt
275282
recipe: engine/engine_unopt
276283
properties:
277284
add_recipes_cq: "true"
278285
jazzy_version: "0.14.1"
279-
caches: >-
280-
[
281-
{"name":"flutter_cocoapods","path":"cocoapods"},
282-
{"name":"osx_sdk_13a233_13_15","path":"osx_sdk"},
283-
{"name":"builder_mac_engine","path":"builder"},
284-
{"name":"openjdk","path":"java"},
285-
{"name":"xcode_runtime_ios_13_0","path":"xcode_runtime_ios_13_0"},
286-
{"name":"xcode_runtime_ios_15_0","path":"xcode_runtime_ios_15_0"}
287-
]
288286
runtime_versions: >-
289287
[
290288
"ios-13-0",
@@ -312,13 +310,6 @@ targets:
312310
properties:
313311
add_recipes_cq: "true"
314312
gcs_goldens_bucket: flutter_logs
315-
caches: >-
316-
[
317-
{"name":"flutter_cocoapods","path":"cocoapods"},
318-
{"name":"old_osx_sdk","path":"osx_sdk"},
319-
{"name":"builder_mac_engine","path":"builder"},
320-
{"name":"openjdk","path":"java"}
321-
]
322313
dependencies: >-
323314
[
324315
{"dependency": "goldctl"}
@@ -400,12 +391,6 @@ targets:
400391
add_recipes_cq: "true"
401392
timeout: 75
402393

403-
- name: Windows UWP Engine
404-
recipe: engine/engine
405-
properties:
406-
build_windows_uwp: "true"
407-
timeout: 60
408-
409394
- name: Windows Web Engine
410395
recipe: engine/web_engine
411396
properties:

.cirrus.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
gcp_credentials: ENCRYPTED[!2c88dee9c9d9805b214c9f7ad8f3bc8fae936cdb0f881d562101151c408c7e024a41222677d5831df90c60d2dd6cd80a!]
22

3+
# Don't run on 'master' since it's a mirror of 'main'.
4+
only_if: $CIRRUS_BRANCH != 'master'
5+
36
# LINUX
47
task:
58
gke_container:

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See Dependabot documentation for all configuration options:
2+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "daily"

.github/workflows/mirror.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- 'main'
1010

11+
# Declare default permissions as read only.
12+
permissions: read-all
13+
1114
jobs:
1215
mirror_job:
1316
permissions:

.github/workflows/scorecards-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121

2222
steps:
2323
- name: "Checkout code"
24-
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
24+
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
2525
with:
2626
persist-credentials: false
2727

2828
- name: setup python
29-
uses: actions/setup-python@0ebf233433c08fb9061af664d501c3f3ff0e9e20
29+
uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6
3030
with:
3131
python-version: '3.7.7' # install the python version needed
3232

3333
- name: execute py script
3434
run: python ci/deps_parser.py
3535

3636
- name: "Run analysis"
37-
uses: ossf/scorecard-action@c8416b0b2bf627c349ca92fc8e3de51a64b005cf
37+
uses: ossf/scorecard-action@c1aec4ac820532bab364f02a81873c555a0ba3a1
3838
with:
3939
results_file: results.sarif
4040
results_format: sarif
@@ -49,14 +49,14 @@ jobs:
4949

5050
# Upload the results as artifacts (optional).
5151
- name: "Upload artifact"
52-
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2
52+
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
5353
with:
5454
name: SARIF file
5555
path: results.sarif
5656
retention-days: 5
5757

5858
# Upload the results to GitHub's code scanning dashboard.
5959
- name: "Upload to code-scanning"
60-
uses: github/codeql-action/upload-sarif@5f532563584d71fdef14ee64d17bafb34f751ce5
60+
uses: github/codeql-action/upload-sarif@7502d6e991ca767d2db617bfd823a1ed925a0d59
6161
with:
6262
sarif_file: results.sarif

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,3 @@ app.*.symbols
133133

134134
# Prebuilt binaries.
135135
/prebuilts/
136-
137-
# DEPS'd in impeller
138-
/impeller/

BUILD.gn

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ config("export_dynamic_symbols") {
3131
}
3232
}
3333

34-
# Flutter SDK artifacts should only be built when either doing host builds, or
35-
# for cross-compiled desktop targets.
36-
# TODO: We can't build the engine artifacts for arm (32-bit) right now;
37-
# see https://github.com/flutter/flutter/issues/74322
38-
_build_engine_artifacts =
39-
current_toolchain == host_toolchain ||
40-
(is_linux && !is_chromeos && current_cpu != "arm") || is_mac
41-
4234
if (flutter_prebuilt_dart_sdk) {
4335
copy_trees("_copy_trees") {
4436
sources = [
@@ -85,7 +77,7 @@ group("flutter") {
8577
if (!is_fuchsia) {
8678
public_deps += [ "//flutter/lib/snapshot:generate_snapshot_bins" ]
8779

88-
if (_build_engine_artifacts) {
80+
if (build_engine_artifacts) {
8981
public_deps += [
9082
":dart_sdk",
9183
"//flutter/flutter_frontend_server:frontend_server",
@@ -94,6 +86,10 @@ group("flutter") {
9486
# //flutter/lib/snapshot:generate_snapshot_bin will only build
9587
# gen_snapshot for the host and not the target.
9688
"//third_party/dart/runtime/bin:gen_snapshot",
89+
90+
# Impeller artifacts - compiler and libtessellator
91+
"//flutter/impeller/compiler:impellerc",
92+
"//flutter/impeller/tessellator:tessellator_shared",
9793
]
9894

9995
if (full_dart_sdk) {
@@ -102,7 +98,7 @@ group("flutter") {
10298
}
10399
}
104100

105-
if (_build_engine_artifacts) {
101+
if (build_engine_artifacts) {
106102
public_deps += [
107103
"//flutter/shell/testing",
108104
"//flutter/tools/const_finder",
@@ -111,7 +107,7 @@ group("flutter") {
111107
}
112108

113109
# Compile all benchmark targets if enabled.
114-
if (enable_unittests && !is_win) {
110+
if (enable_unittests && !is_win && !is_fuchsia) {
115111
public_deps += [
116112
"//flutter/display_list:display_list_benchmarks",
117113
"//flutter/fml:fml_benchmarks",
@@ -144,6 +140,8 @@ group("unittests") {
144140
# Compile all unittests targets if enabled.
145141
if (enable_unittests) {
146142
public_deps += [
143+
"//flutter/display_list:display_list_rendertests",
144+
"//flutter/display_list:display_list_unittests",
147145
"//flutter/flow:flow_unittests",
148146
"//flutter/fml:fml_unittests",
149147
"//flutter/lib/spirv/test/exception_shaders:spirv_compile_exception_shaders",
@@ -174,11 +172,13 @@ group("unittests") {
174172
public_deps += [ "//flutter/shell/platform/fuchsia:tests" ]
175173
}
176174

175+
if (is_mac || is_linux) {
176+
public_deps += [ "//flutter/impeller:impeller_unittests" ]
177+
}
178+
177179
if (is_mac) {
178-
public_deps += [
179-
"//flutter/impeller:impeller_unittests",
180-
"//flutter/shell/platform/darwin:flutter_channels_unittests",
181-
]
180+
public_deps +=
181+
[ "//flutter/shell/platform/darwin:flutter_channels_unittests" ]
182182
}
183183

184184
if (!is_win && !is_fuchsia) {
@@ -237,6 +237,14 @@ group("unittests") {
237237
}
238238
}
239239

240+
if (build_engine_artifacts) {
241+
group("archives") {
242+
testonly = true
243+
244+
deps = [ "//flutter/build/archives:artifacts" ]
245+
}
246+
}
247+
240248
group("dist") {
241249
testonly = true
242250

0 commit comments

Comments
 (0)