| OLD | NEW | 
 | (Empty) | 
|   1 Downloading SKPs |  | 
|   2 ================ |  | 
|   3  |  | 
|   4 ### Contents ### |  | 
|   5  |  | 
|   6 *   [Overview](#overview) |  | 
|   7 *   [How to download SKPs](#download_skps) |  | 
|   8     +   [Buildbot SKPs (for Googlers)](#buildbot_skps_googler) |  | 
|   9     +   [Buildbot SKPs (for trusted partners)](#buildbot_skps_partners) |  | 
|  10     +   [Cluster Telemetry SKPs (for Googlers)](#ct_skps_googler) |  | 
|  11  |  | 
|  12 <a name="overview"></a> |  | 
|  13 Overview |  | 
|  14 -------- |  | 
|  15  |  | 
|  16 An SKP is a binary representation of the draw commands Chromium sends to Skia fo
    r rasterization. |  | 
|  17  |  | 
|  18 Skia uses different types of SKPs in our continuous builds and tests: |  | 
|  19  |  | 
|  20 * [Buildbot](https://skia.org/dev/testing/buildbot) SKPs are the small set (89 a
    s of 2/10/16) of SKPs that are used on almost all our bots. |  | 
|  21 * [Cluster Telemetry](https://skia.org/dev/testing/ct) SKPs are the much larger 
    set (~900k) that are used by our CT bots (Eg: [CT_BENCH_10k](https://build.chrom
    ium.org/p/client.skia/builders/Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-CT_BE
    NCH_10k_SKPs), [CT_DM_10k](https://build.chromium.org/p/client.skia/builders/Tes
    t-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_10k_SKPs), [CT_DM_1m](https://build
    .chromium.org/p/client.skia.fyi/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Deb
    ug-CT_DM_1m_SKPs)). |  | 
|  22  |  | 
|  23 Skia developers find it useful to download these SKPs to run local tests to repr
    oduce problems seen on the buildbots. The below sections detail how to download 
    them. |  | 
|  24  |  | 
|  25 <a name="download_skps"></a> |  | 
|  26 How to download SKPs |  | 
|  27 -------------------- |  | 
|  28  |  | 
|  29 <a name="buildbot_skps_googler"></a> |  | 
|  30 ### Buildbot SKPs (for Googlers) |  | 
|  31  |  | 
|  32 The following will work only if you have a google.com account. |  | 
|  33  |  | 
|  34 All buildbot SKP files created by the RecreateSKPs bot are available via the ass
    et management scripts: |  | 
|  35  |  | 
|  36     $ download_from_google_storage -s infra/bots/tools/luci-go/${PLATFORM}/cipd.
    sha1 --bucket chromium-luci |  | 
|  37     $ infra/bots/tools/luci-go/${PLATFORM}/cipd auth-login |  | 
|  38     $ infra/bots/assets/skp/download.py -t ${TARGET_DIR} |  | 
|  39  |  | 
|  40 Note: If you are on Windows, you will need to specify *cipd.exe.sha1*, not *cipd
    .sha1* |  | 
|  41  |  | 
|  42 <a name="buildbot_skps_partners"></a> |  | 
|  43 ### Buildbot SKPs (for trusted partners) |  | 
|  44  |  | 
|  45 * Request access to the gs://chrome-partner-telemetry bucket by emailing telemet
    ry@chromium.org ([example](https://groups.google.com/a/chromium.org/d/msg/teleme
    try/kSwcgH7KiYs/zwBwEZaadOIJ)). |  | 
|  46 * Once approved you can download Skia's weekly refreshed buildbot SKPs from gs:/
    /chrome-partner-telemetry/skps |  | 
|  47  |  | 
|  48  |  | 
|  49 <a name="ct_skps_googler"></a> |  | 
|  50 ### Cluster Telemetry SKPs (for Googlers) |  | 
|  51  |  | 
|  52 The following will work only if you have a google.com account. |  | 
|  53  |  | 
|  54 * Download the gsutil tool https://developers.google.com/cloud/sdk/#Quick_Start. |  | 
|  55 * Authenticate using your google.com credentials “gcloud auth login” |  | 
|  56 * Look at the SKP Repository list [here](https://ct.skia.org/lua_script/) for al
    l available SKPs. |  | 
|  57 * Run in your terminal: |  | 
|  58  |  | 
|  59     $ SKP\_DEST=...<br/> |  | 
|  60     $ REPO\_TYPE=... (Either All, 100k, Mobile10k, 10k, Dummy1k)<br/> |  | 
|  61     $ CHROMIUM\_BUILD=... (Eg: fad657e-276e633)<br/> |  | 
|  62     $ gsutil -m cp gs://cluster-telemetry/swarming/skps/${REPO\_TYPE}/${CHROMIUM
    \_BUILD}/{1..10}/*.skp ${SKP\_DEST} |  | 
|  63  |  | 
|  64 * Substitute the 1 and 10 above with the start and end ranks of the SKPs you wan
    t to copy locally. |  | 
|  65 * If you are trying to find a particular SKP. Look for it in the CSV [here](http
    s://pantheon.corp.google.com/m/cloudstorage/b/cluster-telemetry/o/csv/top-1m.csv
    ) and then use that rank in the copy command. |  | 
| OLD | NEW |