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

Commit b15df28

Browse files
author
Gray Mackall
committed
merge
2 parents 81c6daa + a456ad0 commit b15df28

File tree

600 files changed

+27029
-17139
lines changed

Some content is hidden

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

600 files changed

+27029
-17139
lines changed

.ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ targets:
506506
# Avoid using a Mac orchestrator to save ~5 minutes of Mac host time.
507507
- name: Linux mac_clangd
508508
recipe: engine_v2/engine_v2
509+
timeout: 90
509510
# Do not remove(https://github.com/flutter/flutter/issues/144644)
510511
# Scheduler will fail to get the platform
511512
drone_dimensions:

.github/workflows/engine-cp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.merge_commit_sha }})" >> $GITHUB_ENV
3232
- name: Checkout Flutter Engine Repo
33-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
33+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
3434
with:
3535
repository: flutteractionsbot/engine
3636
path: engine

.github/workflows/third_party_scan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
contents: read
2222
steps:
2323
- name: "Checkout code"
24-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
24+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
2525
with:
2626
persist-credentials: false
2727
- name: "setup python"
@@ -31,7 +31,7 @@ jobs:
3131
- name: "extract deps, find commit hash, pass to osv-scanner"
3232
run: python ci/scan_deps.py --output osv-lockfile-${{github.sha}}.json
3333
- name: "upload osv-scanner deps"
34-
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
34+
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9
3535
with:
3636
# use github.ref in name to avoid duplicated artifacts
3737
name: osv-lockfile-${{github.sha}}
@@ -41,7 +41,7 @@ jobs:
4141
name: Vulnerability scanning
4242
needs:
4343
extract-deps
44-
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.8.4"
44+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.0"
4545
with:
4646
# Download the artifact uploaded in extract-deps step
4747
download-artifact: osv-lockfile-${{github.sha}}

BUILD.gn

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ group("flutter") {
155155

156156
# Build the standalone Impeller library.
157157
if (is_mac || is_linux || is_win || is_android) {
158-
public_deps += [ "//flutter/impeller/toolkit/interop:library" ]
158+
public_deps += [ "//flutter/impeller/toolkit/interop:sdk" ]
159159
}
160160

161161
if ((flutter_runtime_mode == "debug" || flutter_runtime_mode == "profile") &&
@@ -196,7 +196,6 @@ group("unittests") {
196196
"//flutter/shell/platform/embedder:embedder_a11y_unittests",
197197
"//flutter/shell/platform/embedder:embedder_proctable_unittests",
198198
"//flutter/shell/platform/embedder:embedder_unittests",
199-
"//flutter/testing:testing_unittests",
200199
"//flutter/testing/dart",
201200
"//flutter/testing/smoke_test_failure",
202201
"//flutter/third_party/tonic/tests:tonic_unittests",

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ $ ./run_tests.py --variant=host_debug_unopt_arm64 --type=engine
270270
| runtime_unittests | engine | |
271271
| shell_unittests | engine(not windows) | |
272272
| scenario_app | android | Integration and golden tests for Android, iOS |
273-
| testing_unittests | engine | |
274273
| tonic_unittests | engine | Unit tests for //third_party/tonic |
275274
| txt_unittests | engine(linux) | |
276275
| ui_unittests | engine | |

DEPS

Lines changed: 61 additions & 68 deletions
Large diffs are not rendered by default.

analysis_options.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ linter:
134134
# - one_member_abstracts # too many false positives
135135
- only_throw_errors # this does get disabled in a few places where we have legacy code that uses strings et al
136136
- overridden_fields
137-
- package_api_docs
138137
- package_names
139138
- package_prefixed_library_names
140139
# - parameter_assignments # we do this commonly

build/dart/internal/dart_test.gni

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright 2013 The Flutter Authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
import("//flutter/build/dart/internal/gen_dartcli_call.gni")
6+
7+
# Generates an executable that runs `dart test` on a single test program.
8+
#
9+
# Parameters:
10+
# main_dart (required):
11+
# The entrypoint to the Dart test program.
12+
#
13+
# output (optional):
14+
# Overrides the full output path.
15+
# Defaults to $root_out_dir/gen/$target_path/$target_name; for example
16+
# //flutter/foo/bar emits a binary at out/{variant}/gen/flutter/foo/bar.
17+
template("dart_test") {
18+
assert(defined(invoker.main_dart), "Must specify 'main_dart'")
19+
20+
# Generate the CWD based on the directory of the invoking GN file.
21+
parent_dir = get_label_info(target_name, "dir")
22+
cwd = get_path_info(parent_dir, "dir")
23+
24+
gen_dartcli_call(target_name) {
25+
args = [
26+
"test",
27+
invoker.main_dart,
28+
]
29+
cwd = rebase_path(cwd)
30+
metadata = {
31+
action_type = [ "dart_test" ]
32+
}
33+
testonly = true
34+
forward_variables_from(invoker,
35+
[
36+
"output",
37+
"visibility",
38+
])
39+
}
40+
}

build/dart/internal/gen_dartcli_call.gni

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ template("gen_dartcli_call") {
3232
}
3333

3434
# Add default arguments to the Dart CLI.
35+
# TODO(https://github.com/flutter/flutter/issues/156171): --suppress-analytics
3536
dart_args = []
3637
if (defined(invoker.args)) {
3738
dart_args += invoker.args
3839
}
39-
dart_args += [ "--suppress-analytics" ]
4040

4141
# Actually generate the shell script.
4242
gen_executable_call(target_name) {
@@ -46,6 +46,9 @@ template("gen_dartcli_call") {
4646
[
4747
"cwd",
4848
"output",
49+
"metadata",
50+
"testonly",
51+
"visibility",
4952
])
5053
}
5154
}

build/dart/internal/gen_executable_call.gni

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,11 @@ template("gen_executable_call") {
5858
script = "//flutter/build/dart/internal/gen_executable_call.py"
5959
outputs = [ output ]
6060
args = call_args
61+
forward_variables_from(invoker,
62+
[
63+
"metadata",
64+
"testonly",
65+
"visibility",
66+
])
6167
}
6268
}

0 commit comments

Comments
 (0)