File tree Expand file tree Collapse file tree 6 files changed +34166
-19742
lines changed Expand file tree Collapse file tree 6 files changed +34166
-19742
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright 2014 The Flutter Authors. All rights reserved.
3
+ # Use of this source code is governed by a BSD-style license that can be
4
+ # found in the LICENSE file.
5
+
6
+ # This is executed by the skia autoroller after the roll has happened but before
7
+ # the PR is uploaded. Previously this logic was hardcoded into the autoroller
8
+ # and was reserved for updating the LICENSE file. Now the autoroller delegates
9
+ # to this script.
10
+ # See also:
11
+ # - https://skia-review.googlesource.com/c/buildbot/+/1025936
12
+ # - https://issues.skia.org/issues/433551375
13
+
14
+ REPO_PATH=$( dirname " $( readlink -f " $0 " ) " )
15
+ ET=" $REPO_PATH /engine/src/flutter/bin/et"
16
+ LICENSE_CPP=" $REPO_PATH /engine/src/out/host_profile/licenses_cpp"
17
+ WORKING_DIR=" $REPO_PATH /engine/src/flutter"
18
+ LICENSES_PATH=" $REPO_PATH /engine/src/flutter/sky/packages/sky_engine/LICENSE"
19
+ DATA_PATH=" $REPO_PATH /engine/src/flutter/tools/licenses_cpp/data"
20
+
21
+ $ET build --no-rbe -c host_profile //flutter/tools/licenses_cpp
22
+ $LICENSE_CPP \
23
+ --working_dir=$WORKING_DIR \
24
+ --licenses_path=$LICENSES_PATH \
25
+ --data_dir=$DATA_PATH \
26
+ --v=1
Original file line number Diff line number Diff line change @@ -2653,6 +2653,7 @@ Future<CommandResult> _runFlutterAnalyze(
2653
2653
2654
2654
// These files legitimately require executable permissions
2655
2655
const Set <String > kExecutableAllowlist = < String > {
2656
+ '.autoroller-preupload.sh' ,
2656
2657
'bin/dart' ,
2657
2658
'bin/flutter' ,
2658
2659
'bin/flutter-dev' ,
Original file line number Diff line number Diff line change 6
6
"cas_archive" : false ,
7
7
"name" : " licenses" ,
8
8
"description" : " Runs the license check script." ,
9
+ "gn" : [
10
+ " --target-dir" ,
11
+ " ci/host_release_licenses" ,
12
+ " --runtime-mode" ,
13
+ " release" ,
14
+ " --no-rbe" ,
15
+ " --no-goma"
16
+ ],
17
+ "ninja" : {
18
+ "config" : " ci/host_release_licenses" ,
19
+ "targets" : [
20
+ " flutter/tools/licenses_cpp" ,
21
+ " flutter/tools/licenses_cpp:licenses_cpp_testrunner"
22
+ ]
23
+ },
9
24
"tests" : [
10
25
{
11
- "name" : " licenses check" ,
12
- "max_attempts" : 1 ,
13
- "script" : " flutter/ci/licenses.sh"
26
+ "name" : " Run license_cpp unittests" ,
27
+ "script" : " out/ci/host_release_licenses/licenses_cpp_testrunner"
28
+ },
29
+ {
30
+ "name" : " Run license_cpp" ,
31
+ "script" : " flutter/ci/licenses_cpp.sh" ,
32
+ "parameters" : [
33
+ " ci/host_release_licenses"
34
+ ]
14
35
}
15
36
]
16
37
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ DATA_DIR="$SCRIPT_DIR/../tools/licenses_cpp/data"
64
64
# in the directory where you *run* the script from (your current working directory).
65
65
LICENSES_OUTPUT_PATH=" $SCRIPT_DIR /../sky/packages/sky_engine/LICENSE_CPP.new"
66
66
67
- LICENSES_PATH=" $SCRIPT_DIR /../sky/packages/sky_engine/LICENSE_CPP "
67
+ LICENSES_PATH=" $SCRIPT_DIR /../sky/packages/sky_engine/LICENSE "
68
68
69
69
# --- Validation ---
70
70
You can’t perform that action at this time.
0 commit comments