Skip to content

Commit

Permalink
tests(lantern): attempt to download test set a few times (#9766)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored and patrickhulce committed Oct 2, 2019
1 parent ac67b37 commit a7e823e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lighthouse-core/scripts/test-lantern.sh
Expand Up @@ -21,8 +21,12 @@ if ! echo $CHANGED_FILES | grep -E 'dependency-graph|metrics|lantern' > /dev/nul
exit 0
fi

printf "Lantern files affected!\n\nDownloading test set...\n"
"$LH_ROOT/lighthouse-core/scripts/lantern/download-traces.sh"
# Google Drive will sometimes respond with a bad result, so we repeat until it works.
for i in {1..5}; do
printf "Lantern files affected!\n\nDownloading test set...\n"
"$LH_ROOT/lighthouse-core/scripts/lantern/download-traces.sh" && break || sleep 15;
echo "failed to download"
done

printf "\n\nRunning lantern on all sites...\n"
"$LH_ROOT/lighthouse-core/scripts/lantern/run-on-all-assets.js"
Expand Down

0 comments on commit a7e823e

Please sign in to comment.