Home | History | Annotate | Download | only in example.expected
      1 [
      2   {
      3     "cmd": [
      4       "python",
      5       "-u",
      6       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
      7       "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
      8       "/path/to/tmp/"
      9     ],
     10     "infra_step": true,
     11     "name": "Get downloaded SKP VERSION"
     12   },
     13   {
     14     "cmd": [
     15       "python",
     16       "-u",
     17       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     18       "42",
     19       "[START_DIR]/tmp/SKP_VERSION"
     20     ],
     21     "infra_step": true,
     22     "name": "write SKP_VERSION"
     23   },
     24   {
     25     "cmd": [
     26       "python",
     27       "-u",
     28       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     29       "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
     30       "/path/to/tmp/"
     31     ],
     32     "infra_step": true,
     33     "name": "Get downloaded skimage VERSION"
     34   },
     35   {
     36     "cmd": [
     37       "python",
     38       "-u",
     39       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     40       "42",
     41       "[START_DIR]/tmp/SK_IMAGE_VERSION"
     42     ],
     43     "infra_step": true,
     44     "name": "write SK_IMAGE_VERSION"
     45   },
     46   {
     47     "cmd": [
     48       "python",
     49       "-u",
     50       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     51       "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
     52       "/path/to/tmp/"
     53     ],
     54     "infra_step": true,
     55     "name": "Get downloaded SVG VERSION"
     56   },
     57   {
     58     "cmd": [
     59       "python",
     60       "-u",
     61       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     62       "42",
     63       "[START_DIR]/tmp/SVG_VERSION"
     64     ],
     65     "infra_step": true,
     66     "name": "write SVG_VERSION"
     67   },
     68   {
     69     "cmd": [
     70       "python",
     71       "-u",
     72       "RECIPE_MODULE[build::file]/resources/fileutil.py",
     73       "rmtree",
     74       "[CUSTOM_[SWARM_OUT_DIR]]/dm"
     75     ],
     76     "env": {
     77       "PYTHONPATH": "[START_DIR]/skia/infra/bots/.recipe_deps/build/scripts"
     78     },
     79     "infra_step": true,
     80     "name": "rmtree dm"
     81   },
     82   {
     83     "cmd": [
     84       "python",
     85       "-u",
     86       "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n  if os.path.exists(path):\n    print \"%s exists but is not a dir\" % path\n    sys.exit(1)\n  os.makedirs(path, mode)\n",
     87       "[CUSTOM_[SWARM_OUT_DIR]]/dm",
     88       "511"
     89     ],
     90     "infra_step": true,
     91     "name": "makedirs dm",
     92     "~followup_annotations": [
     93       "@@@STEP_LOG_LINE (a] python.inline@@@@",
     94       "@@@STEP_LOG_LINE (a] python.inline@import sys, os@@@",
     95       "@@@STEP_LOG_LINE (a] python.inline@path = sys.argv[1]@@@",
     96       "@@@STEP_LOG_LINE (a] python.inline@mode = int(sys.argv[2])@@@",
     97       "@@@STEP_LOG_LINE (a] python.inline@if not os.path.isdir(path):@@@",
     98       "@@@STEP_LOG_LINE (a] python.inline@  if os.path.exists(path):@@@",
     99       "@@@STEP_LOG_LINE (a] python.inline@    print \"%s exists but is not a dir\" % path@@@",
    100       "@@@STEP_LOG_LINE (a] python.inline@    sys.exit(1)@@@",
    101       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(path, mode)@@@",
    102       "@@@STEP_LOG_END (a] python.inline@@@"
    103     ]
    104   },
    105   {
    106     "cmd": [
    107       "python",
    108       "-u",
    109       "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.path.isdir(path):\n  if os.path.exists(path):\n    print \"%s exists but is not a dir\" % path\n    sys.exit(1)\n  os.makedirs(path, mode)\n",
    110       "[START_DIR]/tmp",
    111       "511"
    112     ],
    113     "infra_step": true,
    114     "name": "makedirs tmp_dir",
    115     "~followup_annotations": [
    116       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    117       "@@@STEP_LOG_LINE (a] python.inline@import sys, os@@@",
    118       "@@@STEP_LOG_LINE (a] python.inline@path = sys.argv[1]@@@",
    119       "@@@STEP_LOG_LINE (a] python.inline@mode = int(sys.argv[2])@@@",
    120       "@@@STEP_LOG_LINE (a] python.inline@if not os.path.isdir(path):@@@",
    121       "@@@STEP_LOG_LINE (a] python.inline@  if os.path.exists(path):@@@",
    122       "@@@STEP_LOG_LINE (a] python.inline@    print \"%s exists but is not a dir\" % path@@@",
    123       "@@@STEP_LOG_LINE (a] python.inline@    sys.exit(1)@@@",
    124       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(path, mode)@@@",
    125       "@@@STEP_LOG_END (a] python.inline@@@"
    126     ]
    127   },
    128   {
    129     "cmd": [
    130       "python",
    131       "-u",
    132       "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nTIMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in range(RETRIES):\n  try:\n    with contextlib.closing(\n        urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:\n      hashes = w.read()\n      with open(sys.argv[1], 'w') as f:\n        f.write(hashes)\n        break\n  except Exception as e:\n    print 'Failed to get uninteresting hashes from %s:' % HASHES_URL\n    print e\n    if retry == RETRIES:\n      raise\n    waittime = WAIT_BASE * math.pow(2, retry)\n    print 'Retry in %d seconds.' % waittime\n    time.sleep(waittime)\n",
    133       "[START_DIR]/tmp/uninteresting_hashes.txt"
    134     ],
    135     "env": {
    136       "BUILDTYPE": "Debug",
    137       "CHROME_HEADLESS": "1",
    138       "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
    139       "SKIA_OUT": "[START_DIR]/out"
    140     },
    141     "infra_step": true,
    142     "name": "get uninteresting hashes",
    143     "~followup_annotations": [
    144       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    145       "@@@STEP_LOG_LINE (a] python.inline@import contextlib@@@",
    146       "@@@STEP_LOG_LINE (a] python.inline@import math@@@",
    147       "@@@STEP_LOG_LINE (a] python.inline@import socket@@@",
    148       "@@@STEP_LOG_LINE (a] python.inline@import sys@@@",
    149       "@@@STEP_LOG_LINE (a] python.inline@import time@@@",
    150       "@@@STEP_LOG_LINE (a] python.inline@import urllib2@@@",
    151       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    152       "@@@STEP_LOG_LINE (a] python.inline@HASHES_URL = 'https://gold.skia.org/_/hashes'@@@",
    153       "@@@STEP_LOG_LINE (a] python.inline@RETRIES = 5@@@",
    154       "@@@STEP_LOG_LINE (a] python.inline@TIMEOUT = 60@@@",
    155       "@@@STEP_LOG_LINE (a] python.inline@WAIT_BASE = 15@@@",
    156       "@@@STEP_LOG_LINE (a] python.inline@@@@",
    157       "@@@STEP_LOG_LINE (a] python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
    158       "@@@STEP_LOG_LINE (a] python.inline@for retry in range(RETRIES):@@@",
    159       "@@@STEP_LOG_LINE (a] python.inline@  try:@@@",
    160       "@@@STEP_LOG_LINE (a] python.inline@    with contextlib.closing(@@@",
    161       "@@@STEP_LOG_LINE (a] python.inline@        urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@",
    162       "@@@STEP_LOG_LINE (a] python.inline@      hashes = w.read()@@@",
    163       "@@@STEP_LOG_LINE (a] python.inline@      with open(sys.argv[1], 'w') as f:@@@",
    164       "@@@STEP_LOG_LINE (a] python.inline@        f.write(hashes)@@@",
    165       "@@@STEP_LOG_LINE (a] python.inline@        break@@@",
    166       "@@@STEP_LOG_LINE (a] python.inline@  except Exception as e:@@@",
    167       "@@@STEP_LOG_LINE (a] python.inline@    print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@",
    168       "@@@STEP_LOG_LINE (a] python.inline@    print e@@@",
    169       "@@@STEP_LOG_LINE (a] python.inline@    if retry == RETRIES:@@@",
    170       "@@@STEP_LOG_LINE (a] python.inline@      raise@@@",
    171       "@@@STEP_LOG_LINE (a] python.inline@    waittime = WAIT_BASE * math.pow(2, retry)@@@",
    172       "@@@STEP_LOG_LINE (a] python.inline@    print 'Retry in %d seconds.' % waittime@@@",
    173       "@@@STEP_LOG_LINE (a] python.inline@    time.sleep(waittime)@@@",
    174       "@@@STEP_LOG_END (a] python.inline@@@"
    175     ]
    176   },
    177   {
    178     "cmd": [
    179       "python",
    180       "-u",
    181       "[START_DIR]/skia/infra/bots/recipe_modules/core/resources/symbolize_stack_trace.py",
    182       "[START_DIR]",
    183       "catchsegv",
    184       "[START_DIR]/out/Debug/dm",
    185       "--undefok",
    186       "--resourcePath",
    187       "[START_DIR]/skia/resources",
    188       "--skps",
    189       "[START_DIR]/skp",
    190       "--images",
    191       "[START_DIR]/skimage/dm",
    192       "--colorImages",
    193       "[START_DIR]/skimage/colorspace",
    194       "--nameByHash",
    195       "--properties",
    196       "gitHash",
    197       "abc123",
    198       "master",
    199       "client.skia",
    200       "builder",
    201       "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug",
    202       "build_number",
    203       "5",
    204       "--svgs",
    205       "[START_DIR]/svg",
    206       "--key",
    207       "arch",
    208       "x86",
    209       "compiler",
    210       "GCC",
    211       "configuration",
    212       "Debug",
    213       "cpu_or_gpu",
    214       "CPU",
    215       "cpu_or_gpu_value",
    216       "AVX2",
    217       "model",
    218       "GCE",
    219       "os",
    220       "Ubuntu",
    221       "--uninterestingHashesFile",
    222       "[START_DIR]/tmp/uninteresting_hashes.txt",
    223       "--writePath",
    224       "[CUSTOM_[SWARM_OUT_DIR]]/dm",
    225       "--nogpu",
    226       "--randomProcessorTest",
    227       "--threads",
    228       "4",
    229       "--config",
    230       "8888",
    231       "srgb",
    232       "pdf",
    233       "gl",
    234       "gldft",
    235       "glsrgb",
    236       "glmsaa8",
    237       "565",
    238       "f16",
    239       "sp-8888",
    240       "2ndpic-8888",
    241       "lite-8888",
    242       "gbr-8888",
    243       "serialize-8888",
    244       "tiles_rt-8888",
    245       "pic-8888",
    246       "--src",
    247       "tests",
    248       "gm",
    249       "image",
    250       "colorImage",
    251       "svg",
    252       "--blacklist",
    253       "f16",
    254       "_",
    255       "_",
    256       "dstreadshuffle",
    257       "glsrgb",
    258       "image",
    259       "_",
    260       "_",
    261       "8888",
    262       "image",
    263       "_",
    264       "_",
    265       "gbr-8888",
    266       "image",
    267       "_",
    268       "_",
    269       "gbr-8888",
    270       "colorImage",
    271       "_",
    272       "_",
    273       "serialize-8888",
    274       "gm",
    275       "_",
    276       "bleed_image",
    277       "serialize-8888",
    278       "gm",
    279       "_",
    280       "c_gms",
    281       "serialize-8888",
    282       "gm",
    283       "_",
    284       "colortype",
    285       "serialize-8888",
    286       "gm",
    287       "_",
    288       "colortype_xfermodes",
    289       "serialize-8888",
    290       "gm",
    291       "_",
    292       "drawfilter",
    293       "serialize-8888",
    294       "gm",
    295       "_",
    296       "fontmgr_bounds_0.75_0",
    297       "serialize-8888",
    298       "gm",
    299       "_",
    300       "fontmgr_bounds_1_-0.25",
    301       "serialize-8888",
    302       "gm",
    303       "_",
    304       "fontmgr_bounds",
    305       "serialize-8888",
    306       "gm",
    307       "_",
    308       "fontmgr_match",
    309       "serialize-8888",
    310       "gm",
    311       "_",
    312       "fontmgr_iter",
    313       "serialize-8888",
    314       "gm",
    315       "_",
    316       "imagemasksubset",
    317       "serialize-8888",
    318       "gm",
    319       "_",
    320       "bitmapfilters",
    321       "serialize-8888",
    322       "gm",
    323       "_",
    324       "bitmapshaders",
    325       "serialize-8888",
    326       "gm",
    327       "_",
    328       "bleed",
    329       "serialize-8888",
    330       "gm",
    331       "_",
    332       "bleed_alpha_bmp",
    333       "serialize-8888",
    334       "gm",
    335       "_",
    336       "bleed_alpha_bmp_shader",
    337       "serialize-8888",
    338       "gm",
    339       "_",
    340       "convex_poly_clip",
    341       "serialize-8888",
    342       "gm",
    343       "_",
    344       "extractalpha",
    345       "serialize-8888",
    346       "gm",
    347       "_",
    348       "filterbitmap_checkerboard_32_32_g8",
    349       "serialize-8888",
    350       "gm",
    351       "_",
    352       "filterbitmap_image_mandrill_64",
    353       "serialize-8888",
    354       "gm",
    355       "_",
    356       "shadows",
    357       "serialize-8888",
    358       "gm",
    359       "_",
    360       "simpleaaclip_aaclip",
    361       "serialize-8888",
    362       "gm",
    363       "_",
    364       "composeshader_bitmap",
    365       "serialize-8888",
    366       "gm",
    367       "_",
    368       "scaled_tilemodes_npot",
    369       "serialize-8888",
    370       "gm",
    371       "_",
    372       "scaled_tilemodes",
    373       "serialize-8888",
    374       "gm",
    375       "_",
    376       "typefacerendering_pfaMac",
    377       "serialize-8888",
    378       "gm",
    379       "_",
    380       "parsedpaths",
    381       "serialize-8888",
    382       "gm",
    383       "_",
    384       "ImageGeneratorExternal_rect",
    385       "serialize-8888",
    386       "gm",
    387       "_",
    388       "ImageGeneratorExternal_shader",
    389       "serialize-8888",
    390       "gm",
    391       "_",
    392       "shadow_utils",
    393       "serialize-8888",
    394       "gm",
    395       "_",
    396       "bleed_alpha_image",
    397       "serialize-8888",
    398       "gm",
    399       "_",
    400       "bleed_alpha_image_shader",
    401       "sp-8888",
    402       "gm",
    403       "_",
    404       "drawfilter",
    405       "pic-8888",
    406       "gm",
    407       "_",
    408       "drawfilter",
    409       "2ndpic-8888",
    410       "gm",
    411       "_",
    412       "drawfilter",
    413       "lite-8888",
    414       "gm",
    415       "_",
    416       "drawfilter",
    417       "sp-8888",
    418       "gm",
    419       "_",
    420       "image-cacherator-from-picture",
    421       "pic-8888",
    422       "gm",
    423       "_",
    424       "image-cacherator-from-picture",
    425       "2ndpic-8888",
    426       "gm",
    427       "_",
    428       "image-cacherator-from-picture",
    429       "serialize-8888",
    430       "gm",
    431       "_",
    432       "image-cacherator-from-picture",
    433       "sp-8888",
    434       "gm",
    435       "_",
    436       "image-cacherator-from-raster",
    437       "pic-8888",
    438       "gm",
    439       "_",
    440       "image-cacherator-from-raster",
    441       "2ndpic-8888",
    442       "gm",
    443       "_",
    444       "image-cacherator-from-raster",
    445       "serialize-8888",
    446       "gm",
    447       "_",
    448       "image-cacherator-from-raster",
    449       "sp-8888",
    450       "gm",
    451       "_",
    452       "image-cacherator-from-ctable",
    453       "pic-8888",
    454       "gm",
    455       "_",
    456       "image-cacherator-from-ctable",
    457       "2ndpic-8888",
    458       "gm",
    459       "_",
    460       "image-cacherator-from-ctable",
    461       "serialize-8888",
    462       "gm",
    463       "_",
    464       "image-cacherator-from-ctable",
    465       "sp-8888",
    466       "gm",
    467       "_",
    468       "gamut",
    469       "pic-8888",
    470       "gm",
    471       "_",
    472       "gamut",
    473       "lite-8888",
    474       "gm",
    475       "_",
    476       "gamut",
    477       "2ndpic-8888",
    478       "gm",
    479       "_",
    480       "gamut",
    481       "serialize-8888",
    482       "gm",
    483       "_",
    484       "gamut",
    485       "sp-8888",
    486       "gm",
    487       "_",
    488       "complexclip4_bw",
    489       "pic-8888",
    490       "gm",
    491       "_",
    492       "complexclip4_bw",
    493       "lite-8888",
    494       "gm",
    495       "_",
    496       "complexclip4_bw",
    497       "2ndpic-8888",
    498       "gm",
    499       "_",
    500       "complexclip4_bw",
    501       "serialize-8888",
    502       "gm",
    503       "_",
    504       "complexclip4_bw",
    505       "sp-8888",
    506       "gm",
    507       "_",
    508       "complexclip4_aa",
    509       "pic-8888",
    510       "gm",
    511       "_",
    512       "complexclip4_aa",
    513       "lite-8888",
    514       "gm",
    515       "_",
    516       "complexclip4_aa",
    517       "2ndpic-8888",
    518       "gm",
    519       "_",
    520       "complexclip4_aa",
    521       "serialize-8888",
    522       "gm",
    523       "_",
    524       "complexclip4_aa",
    525       "tiles_rt-8888",
    526       "gm",
    527       "_",
    528       "complexclip4_bw",
    529       "tiles_rt-8888",
    530       "gm",
    531       "_",
    532       "complexclip4_aa"
    533     ],
    534     "cwd": "[START_DIR]/skia",
    535     "env": {
    536       "BUILDTYPE": "Debug",
    537       "CHROME_HEADLESS": "1",
    538       "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
    539       "SKIA_OUT": "[START_DIR]/out"
    540     },
    541     "name": "symbolized dm"
    542   },
    543   {
    544     "name": "$result",
    545     "recipe_result": null,
    546     "status_code": 0
    547   }
    548 ]