Home | History | Annotate | Download | only in example.expected
      1 [
      2   {
      3     "cmd": [
      4       "python",
      5       "-u",
      6       "\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",
      7       "[START_DIR]/tmp",
      8       "511"
      9     ],
     10     "infra_step": true,
     11     "name": "makedirs tmp_dir",
     12     "~followup_annotations": [
     13       "@@@STEP_LOG_LINE (a] python.inline@@@@",
     14       "@@@STEP_LOG_LINE (a] python.inline@import sys, os@@@",
     15       "@@@STEP_LOG_LINE (a] python.inline@path = sys.argv[1]@@@",
     16       "@@@STEP_LOG_LINE (a] python.inline@mode = int(sys.argv[2])@@@",
     17       "@@@STEP_LOG_LINE (a] python.inline@if not os.path.isdir(path):@@@",
     18       "@@@STEP_LOG_LINE (a] python.inline@  if os.path.exists(path):@@@",
     19       "@@@STEP_LOG_LINE (a] python.inline@    print \"%s exists but is not a dir\" % path@@@",
     20       "@@@STEP_LOG_LINE (a] python.inline@    sys.exit(1)@@@",
     21       "@@@STEP_LOG_LINE (a] python.inline@  os.makedirs(path, mode)@@@",
     22       "@@@STEP_LOG_END (a] python.inline@@@"
     23     ]
     24   },
     25   {
     26     "cmd": [
     27       "python",
     28       "-u",
     29       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     30       "[START_DIR]/skia/infra/bots/assets/skp/VERSION",
     31       "/path/to/tmp/"
     32     ],
     33     "infra_step": true,
     34     "name": "Get downloaded SKP VERSION"
     35   },
     36   {
     37     "cmd": [
     38       "python",
     39       "-u",
     40       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     41       "42",
     42       "[START_DIR]/tmp/SKP_VERSION"
     43     ],
     44     "infra_step": true,
     45     "name": "write SKP_VERSION"
     46   },
     47   {
     48     "cmd": [
     49       "python",
     50       "-u",
     51       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     52       "[START_DIR]/skia/infra/bots/assets/skimage/VERSION",
     53       "/path/to/tmp/"
     54     ],
     55     "infra_step": true,
     56     "name": "Get downloaded skimage VERSION"
     57   },
     58   {
     59     "cmd": [
     60       "python",
     61       "-u",
     62       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     63       "42",
     64       "[START_DIR]/tmp/SK_IMAGE_VERSION"
     65     ],
     66     "infra_step": true,
     67     "name": "write SK_IMAGE_VERSION"
     68   },
     69   {
     70     "cmd": [
     71       "python",
     72       "-u",
     73       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     74       "[START_DIR]/skia/infra/bots/assets/svg/VERSION",
     75       "/path/to/tmp/"
     76     ],
     77     "infra_step": true,
     78     "name": "Get downloaded SVG VERSION"
     79   },
     80   {
     81     "cmd": [
     82       "python",
     83       "-u",
     84       "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
     85       "42",
     86       "[START_DIR]/tmp/SVG_VERSION"
     87     ],
     88     "infra_step": true,
     89     "name": "write SVG_VERSION"
     90   },
     91   {
     92     "cmd": [
     93       "python",
     94       "-u",
     95       "RECIPE_MODULE[build::file]/resources/fileutil.py",
     96       "rmtree",
     97       "[CUSTOM_[SWARM_OUT_DIR]]/dm"
     98     ],
     99     "env": {
    100       "PYTHONPATH": "[START_DIR]/skia/infra/bots/.recipe_deps/build/scripts"
    101     },
    102     "infra_step": true,
    103     "name": "rmtree dm"
    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       "[CUSTOM_[SWARM_OUT_DIR]]/dm",
    111       "511"
    112     ],
    113     "infra_step": true,
    114     "name": "makedirs dm",
    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       "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n"
    182     ],
    183     "name": "get swarming bot id",
    184     "stdout": "/path/to/tmp/",
    185     "~followup_annotations": [
    186       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    187       "@@@STEP_LOG_LINE (a] python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@",
    188       "@@@STEP_LOG_END (a] python.inline@@@"
    189     ]
    190   },
    191   {
    192     "cmd": [
    193       "python",
    194       "-u",
    195       "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n"
    196     ],
    197     "name": "get swarming task id",
    198     "stdout": "/path/to/tmp/",
    199     "~followup_annotations": [
    200       "@@@STEP_LOG_LINE (a] python.inline@import os@@@",
    201       "@@@STEP_LOG_LINE (a] python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@",
    202       "@@@STEP_LOG_END (a] python.inline@@@"
    203     ]
    204   },
    205   {
    206     "cmd": [
    207       "python",
    208       "-u",
    209       "[START_DIR]/skia/infra/bots/recipe_modules/core/resources/symbolize_stack_trace.py",
    210       "[START_DIR]",
    211       "catchsegv",
    212       "[START_DIR]/out/Debug/dm",
    213       "--undefok",
    214       "--resourcePath",
    215       "[START_DIR]/skia/resources",
    216       "--skps",
    217       "[START_DIR]/skp",
    218       "--images",
    219       "[START_DIR]/skimage/dm",
    220       "--colorImages",
    221       "[START_DIR]/skimage/colorspace",
    222       "--nameByHash",
    223       "--properties",
    224       "gitHash",
    225       "abc123",
    226       "master",
    227       "chromium.testing.master",
    228       "builder",
    229       "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug-Trybot",
    230       "build_number",
    231       "571",
    232       "issue",
    233       "456789",
    234       "patchset",
    235       "12",
    236       "patch_storage",
    237       "gerrit",
    238       "no_buildbot",
    239       "True",
    240       "swarming_bot_id",
    241       "skia-bot-123",
    242       "swarming_task_id",
    243       "123456",
    244       "--svgs",
    245       "[START_DIR]/svg",
    246       "--key",
    247       "arch",
    248       "x86",
    249       "compiler",
    250       "GCC",
    251       "configuration",
    252       "Debug",
    253       "cpu_or_gpu",
    254       "CPU",
    255       "cpu_or_gpu_value",
    256       "AVX2",
    257       "model",
    258       "GCE",
    259       "os",
    260       "Ubuntu",
    261       "--writePath",
    262       "[CUSTOM_[SWARM_OUT_DIR]]/dm",
    263       "--nogpu",
    264       "--randomProcessorTest",
    265       "--threads",
    266       "4",
    267       "--config",
    268       "8888",
    269       "srgb",
    270       "pdf",
    271       "gl",
    272       "gldft",
    273       "glsrgb",
    274       "glmsaa8",
    275       "565",
    276       "f16",
    277       "sp-8888",
    278       "2ndpic-8888",
    279       "lite-8888",
    280       "gbr-8888",
    281       "serialize-8888",
    282       "tiles_rt-8888",
    283       "pic-8888",
    284       "--src",
    285       "tests",
    286       "gm",
    287       "image",
    288       "colorImage",
    289       "svg",
    290       "--blacklist",
    291       "f16",
    292       "_",
    293       "_",
    294       "dstreadshuffle",
    295       "glsrgb",
    296       "image",
    297       "_",
    298       "_",
    299       "8888",
    300       "image",
    301       "_",
    302       "_",
    303       "gbr-8888",
    304       "image",
    305       "_",
    306       "_",
    307       "gbr-8888",
    308       "colorImage",
    309       "_",
    310       "_",
    311       "serialize-8888",
    312       "gm",
    313       "_",
    314       "bleed_image",
    315       "serialize-8888",
    316       "gm",
    317       "_",
    318       "c_gms",
    319       "serialize-8888",
    320       "gm",
    321       "_",
    322       "colortype",
    323       "serialize-8888",
    324       "gm",
    325       "_",
    326       "colortype_xfermodes",
    327       "serialize-8888",
    328       "gm",
    329       "_",
    330       "drawfilter",
    331       "serialize-8888",
    332       "gm",
    333       "_",
    334       "fontmgr_bounds_0.75_0",
    335       "serialize-8888",
    336       "gm",
    337       "_",
    338       "fontmgr_bounds_1_-0.25",
    339       "serialize-8888",
    340       "gm",
    341       "_",
    342       "fontmgr_bounds",
    343       "serialize-8888",
    344       "gm",
    345       "_",
    346       "fontmgr_match",
    347       "serialize-8888",
    348       "gm",
    349       "_",
    350       "fontmgr_iter",
    351       "serialize-8888",
    352       "gm",
    353       "_",
    354       "imagemasksubset",
    355       "serialize-8888",
    356       "gm",
    357       "_",
    358       "bitmapfilters",
    359       "serialize-8888",
    360       "gm",
    361       "_",
    362       "bitmapshaders",
    363       "serialize-8888",
    364       "gm",
    365       "_",
    366       "bleed",
    367       "serialize-8888",
    368       "gm",
    369       "_",
    370       "bleed_alpha_bmp",
    371       "serialize-8888",
    372       "gm",
    373       "_",
    374       "bleed_alpha_bmp_shader",
    375       "serialize-8888",
    376       "gm",
    377       "_",
    378       "convex_poly_clip",
    379       "serialize-8888",
    380       "gm",
    381       "_",
    382       "extractalpha",
    383       "serialize-8888",
    384       "gm",
    385       "_",
    386       "filterbitmap_checkerboard_32_32_g8",
    387       "serialize-8888",
    388       "gm",
    389       "_",
    390       "filterbitmap_image_mandrill_64",
    391       "serialize-8888",
    392       "gm",
    393       "_",
    394       "shadows",
    395       "serialize-8888",
    396       "gm",
    397       "_",
    398       "simpleaaclip_aaclip",
    399       "serialize-8888",
    400       "gm",
    401       "_",
    402       "composeshader_bitmap",
    403       "serialize-8888",
    404       "gm",
    405       "_",
    406       "scaled_tilemodes_npot",
    407       "serialize-8888",
    408       "gm",
    409       "_",
    410       "scaled_tilemodes",
    411       "serialize-8888",
    412       "gm",
    413       "_",
    414       "typefacerendering_pfaMac",
    415       "serialize-8888",
    416       "gm",
    417       "_",
    418       "parsedpaths",
    419       "serialize-8888",
    420       "gm",
    421       "_",
    422       "ImageGeneratorExternal_rect",
    423       "serialize-8888",
    424       "gm",
    425       "_",
    426       "ImageGeneratorExternal_shader",
    427       "serialize-8888",
    428       "gm",
    429       "_",
    430       "shadow_utils",
    431       "serialize-8888",
    432       "gm",
    433       "_",
    434       "bleed_alpha_image",
    435       "serialize-8888",
    436       "gm",
    437       "_",
    438       "bleed_alpha_image_shader",
    439       "sp-8888",
    440       "gm",
    441       "_",
    442       "drawfilter",
    443       "pic-8888",
    444       "gm",
    445       "_",
    446       "drawfilter",
    447       "2ndpic-8888",
    448       "gm",
    449       "_",
    450       "drawfilter",
    451       "lite-8888",
    452       "gm",
    453       "_",
    454       "drawfilter",
    455       "sp-8888",
    456       "gm",
    457       "_",
    458       "image-cacherator-from-picture",
    459       "pic-8888",
    460       "gm",
    461       "_",
    462       "image-cacherator-from-picture",
    463       "2ndpic-8888",
    464       "gm",
    465       "_",
    466       "image-cacherator-from-picture",
    467       "serialize-8888",
    468       "gm",
    469       "_",
    470       "image-cacherator-from-picture",
    471       "sp-8888",
    472       "gm",
    473       "_",
    474       "image-cacherator-from-raster",
    475       "pic-8888",
    476       "gm",
    477       "_",
    478       "image-cacherator-from-raster",
    479       "2ndpic-8888",
    480       "gm",
    481       "_",
    482       "image-cacherator-from-raster",
    483       "serialize-8888",
    484       "gm",
    485       "_",
    486       "image-cacherator-from-raster",
    487       "sp-8888",
    488       "gm",
    489       "_",
    490       "image-cacherator-from-ctable",
    491       "pic-8888",
    492       "gm",
    493       "_",
    494       "image-cacherator-from-ctable",
    495       "2ndpic-8888",
    496       "gm",
    497       "_",
    498       "image-cacherator-from-ctable",
    499       "serialize-8888",
    500       "gm",
    501       "_",
    502       "image-cacherator-from-ctable",
    503       "sp-8888",
    504       "gm",
    505       "_",
    506       "gamut",
    507       "pic-8888",
    508       "gm",
    509       "_",
    510       "gamut",
    511       "lite-8888",
    512       "gm",
    513       "_",
    514       "gamut",
    515       "2ndpic-8888",
    516       "gm",
    517       "_",
    518       "gamut",
    519       "serialize-8888",
    520       "gm",
    521       "_",
    522       "gamut",
    523       "sp-8888",
    524       "gm",
    525       "_",
    526       "complexclip4_bw",
    527       "pic-8888",
    528       "gm",
    529       "_",
    530       "complexclip4_bw",
    531       "lite-8888",
    532       "gm",
    533       "_",
    534       "complexclip4_bw",
    535       "2ndpic-8888",
    536       "gm",
    537       "_",
    538       "complexclip4_bw",
    539       "serialize-8888",
    540       "gm",
    541       "_",
    542       "complexclip4_bw",
    543       "sp-8888",
    544       "gm",
    545       "_",
    546       "complexclip4_aa",
    547       "pic-8888",
    548       "gm",
    549       "_",
    550       "complexclip4_aa",
    551       "lite-8888",
    552       "gm",
    553       "_",
    554       "complexclip4_aa",
    555       "2ndpic-8888",
    556       "gm",
    557       "_",
    558       "complexclip4_aa",
    559       "serialize-8888",
    560       "gm",
    561       "_",
    562       "complexclip4_aa",
    563       "tiles_rt-8888",
    564       "gm",
    565       "_",
    566       "complexclip4_bw",
    567       "tiles_rt-8888",
    568       "gm",
    569       "_",
    570       "complexclip4_aa"
    571     ],
    572     "cwd": "[START_DIR]/skia",
    573     "env": {
    574       "BUILDTYPE": "Debug",
    575       "CHROME_HEADLESS": "1",
    576       "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]",
    577       "SKIA_OUT": "[START_DIR]/out"
    578     },
    579     "name": "symbolized dm"
    580   },
    581   {
    582     "name": "$result",
    583     "recipe_result": null,
    584     "status_code": 0
    585   }
    586 ]