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

Commit 20ed48e

Browse files
rmistrySkia Commit-Bot
authored andcommitted
Create flutter checkouts from scratch
The trybot failed on this whitespace change: https://skia-review.googlesource.com/c/skia/+/244305 But succeeded here. Bug: skia:9994 Change-Id: I26442ed321ac343609869f6936ff2a98f145d302 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/274863 Reviewed-by: Eric Boren <[email protected]> Commit-Queue: Ravi Mistry <[email protected]>
1 parent a54af92 commit 20ed48e

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

infra/bots/recipe_modules/checkout/api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ def bot_update(self, checkout_root, gclient_cache=None,
7272
# Use a persistent gclient cache for Swarming.
7373
cfg_kwargs['CACHE_DIR'] = gclient_cache
7474

75+
if checkout_flutter:
76+
# Delete the flutter cache to start from scratch every time.
77+
# See skbug.com/9994.
78+
self.m.run.rmtree(checkout_root)
79+
7580
# Create the checkout path if necessary.
7681
# TODO(borenet): 'makedirs checkout_root'
7782
self.m.file.ensure_directory('makedirs checkout_path', checkout_root)

infra/bots/recipe_modules/checkout/examples/full.expected/flutter_trybot.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
2525
]
2626
},
27+
{
28+
"cmd": [
29+
"vpython",
30+
"-u",
31+
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
32+
"--json-output",
33+
"/path/to/tmp/json",
34+
"rmtree",
35+
"[START_DIR]/cache/work/flutter"
36+
],
37+
"infra_step": true,
38+
"name": "rmtree flutter"
39+
},
2740
{
2841
"cmd": [
2942
"vpython",

infra/bots/recipes/sync_and_compile.expected/Build-Debian9-Clang-arm-Release-Flutter_Android.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
2525
]
2626
},
27+
{
28+
"cmd": [
29+
"vpython",
30+
"-u",
31+
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
32+
"--json-output",
33+
"/path/to/tmp/json",
34+
"rmtree",
35+
"[START_DIR]/cache/work/flutter"
36+
],
37+
"infra_step": true,
38+
"name": "rmtree flutter"
39+
},
2740
{
2841
"cmd": [
2942
"vpython",

0 commit comments

Comments
 (0)