Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lighthouse-core/scripts/test-lantern.sh
Original file line number Diff line number Diff line change
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