From 8080a6e7050ec38aaa81c700e9db4bc2e3ec9009 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Fri, 2 Mar 2018 11:52:02 -0500 Subject: [PATCH] SkQP: Host APK list on cloud; no more commits No-Try: true Change-Id: I7f77c828cba2aa3763d495bec86d016eb65cb485 Reviewed-on: https://skia-review.googlesource.com/111741 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- site/dev/testing/skqp.md | 41 ++------------------------- tools/skqp/make_apk_list | 60 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 38 deletions(-) create mode 100755 tools/skqp/make_apk_list diff --git a/site/dev/testing/skqp.md b/site/dev/testing/skqp.md index e1941d7ce3..904922f59f 100644 --- a/site/dev/testing/skqp.md +++ b/site/dev/testing/skqp.md @@ -6,45 +6,10 @@ with a abbreviated Git hash that points at the commit in the Skia repository it was built with. These are universal APKs that contain native libraries for armeabi-v7a, -arm64-v8a, x86, and x86\_64 architectures. The most recent is listed first: +arm64-v8a, x86, and x86\_64 architectures. The most recent is listed first. - - - * [`0aa4e74e8c`](https://storage.googleapis.com/skia-skqp/skqp-universal-0aa4e74e8c.apk) - | `2018-03-01 22:44:44 UTC` | Move the rest of Vulkan driver workarounds into .. - * [`6ce9d8849b`](https://storage.googleapis.com/skia-skqp/skqp-universal-6ce9d8849b.apk) - | `2018-03-01 22:24:15 UTC` | Cherry-pick https://skia-review.googlesource.com.. - * [`186ccf5147`](https://storage.googleapis.com/skia-skqp/skqp-universal-186ccf5147.apk) - | `2018-03-01 19:01:32 UTC` | SkQP: turn on VkMakeCopyPipelineTest - * [`4e8d3a4bb0`](https://storage.googleapis.com/skia-skqp/skqp-universal-4e8d3a4bb0.apk) - | `2018-03-01 17:20:13 UTC` | Add unit test the explicit tests create a GrVkCo.. - * [`4f0c60f256`](https://storage.googleapis.com/skia-skqp/skqp-universal-4f0c60f256.apk) - | `2018-02-28 21:11:06 UTC` | Cherry-pick sequence of Vulkan Fixes. - * [`120ffdd88c`](https://storage.googleapis.com/skia-skqp/skqp-universal-120ffdd88c.apk) - | `2018-02-23 19:08:26 UTC` | SkQP: do test filtering correctly - * [`5eff3287c9`](https://storage.googleapis.com/skia-skqp/skqp-universal-5eff3287c9.apk) - | `2018-02-22 14:00:28 UTC` | Remove branch lookup from skqp-dev - * [`103b402a29`](https://storage.googleapis.com/skia-skqp/skqp-universal-103b402a29.apk) - | `2018-02-21 20:56:10 UTC` | SkQP: run a single test - * [`38efb0d355`](https://storage.googleapis.com/skia-skqp/skqp-universal-38efb0d355.apk) - | `2018-02-20 20:48:45 UTC` | Add SKQP bot to build universal APK to master - * [`d69db48840`](https://storage.googleapis.com/skia-skqp/skqp-universal-d69db48840.apk) - | `2018-02-13 21:07:09 UTC` | SkQP: relax five tests - * [`337919990b`](https://storage.googleapis.com/skia-skqp/skqp-universal-337919990b.apk) - | `2018-02-13 19:33:12 UTC` | SkQP: debug option, and fix a bug +The listing can be found here: +[https://storage.googleapis.com/skia-skqp/apklist](https://storage.googleapis.com/skia-skqp/apklist) To run tests: diff --git a/tools/skqp/make_apk_list b/tools/skqp/make_apk_list new file mode 100755 index 0000000000..9574101c08 --- /dev/null +++ b/tools/skqp/make_apk_list @@ -0,0 +1,60 @@ +#!/bin/sh + +# Copyright 2018 Google Inc. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +BRANCH="${1:-origin/skqp/dev}" +COUNT="${2:-40}" + +DST=$(mktemp) + +cat > "$DST" << EOF + + + + +SkQP Pre-built APKs + + + + +

SkQP Pre-built APKs

+ + + + + + +EOF + +for commit in $(git log "$BRANCH" -${COUNT} -\-format=%H) ; do + printf '.' >&2 + short="$(git log -1 -\-format=%h $commit)" + url="https://storage.googleapis.com/skia-skqp/skqp-universal-${short}.apk" + if [ 200 -ne "$(curl -s -o /dev/null -w "%{http_code}" "$url")" ] ; then + continue + fi + date=$(TZ='' git log -\-date='format-local:%Y-%m-%d %H:%M:%S %Z' -1 $commit -\-format=%cd) + subj=$(git log -1 $commit -\-format='%<(50,trunc)%s' | sed 's/ *$//') + + commit_url="https://skia.googlesource.com/skia/+/${commit}" + { + printf '\n\n' "$url" "$short" + printf '\n\n\n' "$date" "$commit_url" "$subj" + } >> "$DST" +done +printf '\n\n' >> "$DST" + +echo + +echo 'gsutil -h "Content-Type:text/html" cp' \"$DST\" gs://skia-skqp/apklist +echo 'https://storage.googleapis.com/skia-skqp/apklist'
APKDateCommit
skqp-universal-%s.apk%s%s