Skip to content

Commit 47f537c

Browse files
committed
[infra] Remove duplicate flutter analyze snippets step from script
The snippets analyze step in [flutter]/dev/bots/analyze.dart now uses our built SDK when analyzing the code snippets. The explicit duplicate command to analyze the snippets with our SDK can now be removed. The temp directory created in the script is not in the builder cache on swarming, so it is automatically deleted when the builder finishes. So we remove the cleanup step, which was trapping signals. That trap seems to have been responsible for these failures and exit code confusion. Bug: #47881 Change-Id: I49406954af54a0fba1ceec230c3551f8ad14e8e9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226685 Reviewed-by: Paul Berry <[email protected]>
1 parent 27130d8 commit 47f537c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tools/bots/flutter/analyze_flutter_flutter.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ checkout=$(pwd)
1111
dart=$checkout/out/ReleaseX64/dart-sdk/bin/dart
1212
sdk=$checkout/out/ReleaseX64/dart-sdk
1313
tmpdir=$(mktemp -d)
14-
cleanup() {
15-
rm -rf "$tmpdir"
16-
}
17-
trap cleanup EXIT HUP INT QUIT TERM PIPE
1814
cd "$tmpdir"
1915

2016
git clone --single-branch -vv \
@@ -37,6 +33,3 @@ $dart --enable-asserts dev/bots/analyze.dart --dart-sdk $sdk
3733

3834
# Test flutter's use of data-driven fixes.
3935
$dart fix packages/flutter/test_fixes --compare-to-golden
40-
41-
# Analyze the sample code in dartdoc snippets.
42-
PUB_CACHE=$checkout/.pub_cache $dart dev/bots/analyze_sample_code.dart

0 commit comments

Comments
 (0)