Skip to content

Commit

Permalink
Create flutter checkouts from scratch
Browse files Browse the repository at this point in the history
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 <borenet@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
  • Loading branch information
rmistry authored and Skia Commit-Bot committed Mar 4, 2020
1 parent a54af92 commit 20ed48e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
5 changes: 5 additions & 0 deletions infra/bots/recipe_modules/checkout/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ def bot_update(self, checkout_root, gclient_cache=None,
# Use a persistent gclient cache for Swarming.
cfg_kwargs['CACHE_DIR'] = gclient_cache

if checkout_flutter:
# Delete the flutter cache to start from scratch every time.
# See skbug.com/9994.
self.m.run.rmtree(checkout_root)

# Create the checkout path if necessary.
# TODO(borenet): 'makedirs checkout_root'
self.m.file.ensure_directory('makedirs checkout_path', checkout_root)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
"@@@STEP_LOG_END@python.inline@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[START_DIR]/cache/work/flutter"
],
"infra_step": true,
"name": "rmtree flutter"
},
{
"cmd": [
"vpython",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
"@@@STEP_LOG_END@python.inline@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"rmtree",
"[START_DIR]/cache/work/flutter"
],
"infra_step": true,
"name": "rmtree flutter"
},
{
"cmd": [
"vpython",
Expand Down

0 comments on commit 20ed48e

Please sign in to comment.