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(
26532653
26542654// These files legitimately require executable permissions
26552655const Set <String > kExecutableAllowlist = < String > {
2656+ '.autoroller-preupload.sh' ,
26562657 'bin/dart' ,
26572658 'bin/flutter' ,
26582659 'bin/flutter-dev' ,
Original file line number Diff line number Diff line change 66 "cas_archive" : false ,
77 "name" : " licenses" ,
88 "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+ },
924 "tests" : [
1025 {
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+ ]
1435 }
1536 ]
1637}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ DATA_DIR="$SCRIPT_DIR/../tools/licenses_cpp/data"
6464# in the directory where you *run* the script from (your current working directory).
6565LICENSES_OUTPUT_PATH=" $SCRIPT_DIR /../sky/packages/sky_engine/LICENSE_CPP.new"
6666
67- LICENSES_PATH=" $SCRIPT_DIR /../sky/packages/sky_engine/LICENSE_CPP "
67+ LICENSES_PATH=" $SCRIPT_DIR /../sky/packages/sky_engine/LICENSE "
6868
6969# --- Validation ---
7070
You can’t perform that action at this time.
0 commit comments