Skip to content

Commit b2cc708

Browse files
author
jonahwilliams
committed
Merge branch 'master' of github.com:flutter/engine into drawAtlas
2 parents ff6f4de + 53bd4bb commit b2cc708

382 files changed

Lines changed: 105938 additions & 28851 deletions

File tree

Some content is hidden

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

.ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
enabled_branches:
99
- main
1010
- flutter-\d+\.\d+-candidate\.\d+
11-
- fuchsia_r\d+
11+
- fuchsia_r\d+[a-z]*
1212

1313
platform_properties:
1414
linux:

.github/workflows/scorecards-analysis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ jobs:
1515
if: ${{ github.repository == 'flutter/engine' }}
1616
steps:
1717
- name: "Checkout code"
18-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
18+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
1919
with:
2020
persist-credentials: false
2121
- name: "setup python"
22-
uses: actions/setup-python@13ae5bb136fac2878aff31522b9efb785519f984
22+
uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
2323
with:
2424
python-version: '3.7.7' # install the python version needed
2525
- name: "execute py script"
@@ -38,11 +38,11 @@ jobs:
3838
id-token: write
3939
steps:
4040
- name: "Checkout code"
41-
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
41+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
4242
with:
4343
persist-credentials: false
4444
- name: "Run analysis"
45-
uses: ossf/scorecard-action@e363bfca00e752f91de7b7d2a77340e2e523cb18
45+
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86
4646
with:
4747
results_file: results.sarif
4848
results_format: sarif
@@ -57,14 +57,14 @@ jobs:
5757

5858
# Upload the results as artifacts (optional).
5959
- name: "Upload artifact"
60-
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
60+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
6161
with:
6262
name: SARIF file
6363
path: results.sarif
6464
retention-days: 5
6565

6666
# Upload the results to GitHub's code scanning dashboard.
6767
- name: "Upload to code-scanning"
68-
uses: github/codeql-action/upload-sarif@b2a92eb56d8cb930006a1c6ed86b0782dd8a4297
68+
uses: github/codeql-action/upload-sarif@959cbb7472c4d4ad70cdfe6f4976053fe48ab394
6969
with:
7070
sarif_file: results.sarif

.github/workflows/third_party_scan.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: "Checkout code"
25-
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
25+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
2626
with:
2727
persist-credentials: false
2828

2929
- name: setup python
30-
uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6
30+
uses: actions/setup-python@5ccb29d8773c3f3f653e1705f474dfaa8a06a912
3131
with:
3232
python-version: '3.7.7' # install the python version needed
3333

@@ -43,14 +43,14 @@ jobs:
4343
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
4444
# format to the repository Actions tab.
4545
- name: "Upload artifact"
46-
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
46+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
4747
with:
4848
name: SARIF file
4949
path: osvReport.sarif
5050
retention-days: 5
5151

5252
# Upload the results to GitHub's code scanning dashboard.
5353
- name: "Upload to code-scanning"
54-
uses: github/codeql-action/upload-sarif@b2a92eb56d8cb930006a1c6ed86b0782dd8a4297
54+
uses: github/codeql-action/upload-sarif@959cbb7472c4d4ad70cdfe6f4976053fe48ab394
5555
with:
5656
sarif_file: osvReport.sarif

DEPS

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

ci/licenses.sh

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ PATH="$DART_BIN:$PATH"
3535

3636
# Use:
3737
# env VERBOSE=1 ./ci/licenses.sh
38-
# to turn on verbose progress report printing.
38+
# to turn on verbose progress report printing. Set it to 2 to also output
39+
# information about which patterns are taking the most time.
3940
QUIET="--quiet"
4041
if [[ "${VERBOSE}" == "1" ]]; then
4142
QUIET=""
4243
fi
44+
if [[ "${VERBOSE}" == "2" ]]; then
45+
QUIET="--verbose"
46+
fi
4347

4448
echo "Verifying license script is still happy..."
45-
echo "Using pub from $(command -v pub), dart from $(command -v dart)"
49+
echo "Using dart from: $(command -v dart)"
4650

4751
untracked_files="$(cd "$SRC_DIR/flutter"; git status --ignored --short | grep -E "^!" | awk "{print\$2}")"
4852
untracked_count="$(echo "$untracked_files" | wc -l)"
@@ -58,6 +62,12 @@ fi
5862

5963
dart --version
6064

65+
# Runs the tests for the license script.
66+
function run_tests() (
67+
cd "$SRC_DIR/flutter/tools/licenses"
68+
find -name "*_test.dart" | xargs -n 1 dart --enable-asserts
69+
)
70+
6171
# Collects the license information from the repo.
6272
# Runs in a subshell.
6373
function collect_licenses() (
@@ -117,11 +127,29 @@ function verify_licenses() (
117127
exitStatus=1
118128
fi
119129

130+
echo "Verifying excluded files list..."
131+
if ! cmp -s "flutter/ci/licenses_golden/excluded_files" "out/license_script_output/excluded_files"; then
132+
echo "============================= ERROR ============================="
133+
echo "The license is excluding a different number of files than previously."
134+
echo "This is only expected when new non-source files have been introduced."
135+
echo "Verify that all the newly ignored files are definitely not shipped with"
136+
echo "any binaries that we compile (including impellerc and Wasm)."
137+
echo "If the changes look correct, update this file:"
138+
echo " ci/licenses_golden/excluded_files"
139+
echo "For more information, see the script in:"
140+
echo " https://github.com/flutter/engine/tree/main/tools/licenses"
141+
echo ""
142+
diff -U 6 "flutter/ci/licenses_golden/excluded_files" "out/license_script_output/excluded_files"
143+
echo "================================================================="
144+
echo ""
145+
exitStatus=1
146+
fi
147+
120148
echo "Checking license count in licenses_flutter..."
121149

122150
local actualLicenseCount
123151
actualLicenseCount="$(tail -n 1 flutter/ci/licenses_golden/licenses_flutter | tr -dc '0-9')"
124-
local expectedLicenseCount=19 # When changing this number: Update the error message below as well describing all expected license types.
152+
local expectedLicenseCount=20 # When changing this number: Update the error message below as well describing the newly expected license types.
125153

126154
if [[ $actualLicenseCount -ne $expectedLicenseCount ]]; then
127155
echo "=============================== ERROR ==============================="
@@ -145,4 +173,5 @@ function verify_licenses() (
145173
return $exitStatus
146174
)
147175

176+
run_tests
148177
verify_licenses

0 commit comments

Comments
 (0)