• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[
2  {
3    "cmd": [
4      "vpython",
5      "-u",
6      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
7      "--json-output",
8      "/path/to/tmp/json",
9      "copy",
10      "[START_DIR]/cache/work/skia/infra/bots/assets/android_ndk_linux/VERSION",
11      "/path/to/tmp/"
12    ],
13    "infra_step": true,
14    "name": "Get android_ndk_linux VERSION",
15    "~followup_annotations": [
16      "@@@STEP_LOG_LINE@VERSION@42@@@",
17      "@@@STEP_LOG_END@VERSION@@@"
18    ]
19  },
20  {
21    "cmd": [
22      "python",
23      "-u",
24      "[START_DIR]/cache/work/skia/bin/fetch-gn"
25    ],
26    "cwd": "[START_DIR]/cache/work/skia",
27    "env": {
28      "CHROME_HEADLESS": "1",
29      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
30    },
31    "infra_step": true,
32    "name": "fetch-gn"
33  },
34  {
35    "cmd": [
36      "go",
37      "build",
38      "-o",
39      "[START_DIR]/cache/work/skia/out/Test-Debian10-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP/devrel/run_testlab",
40      "[START_DIR]/cache/work/skia/infra/cts/run_testlab.go"
41    ],
42    "cwd": "[START_DIR]/cache/work/skia",
43    "env": {
44      "CHROME_HEADLESS": "1",
45      "GOCACHE": "[START_DIR]/cache/go_cache",
46      "GOPATH": "[START_DIR]/cache/gopath",
47      "GOROOT": "[START_DIR]/go/go",
48      "PATH": "[START_DIR]/go/go/bin:[START_DIR]/cache/gopath/bin:<PATH>:RECIPE_REPO[depot_tools]"
49    },
50    "name": "build firebase runner"
51  },
52  {
53    "cmd": [
54      "[START_DIR]/cache/work/skia/tools/skqp/make_universal_apk"
55    ],
56    "cwd": "[START_DIR]/cache/work/skia",
57    "env": {
58      "ANDROID_HOME": "[START_DIR]/android_sdk_linux/android-sdk",
59      "ANDROID_NDK": "[START_DIR]/android_ndk_linux",
60      "APK_OUTPUT_DIR": "[START_DIR]/cache/work/skia/out/Test-Debian10-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP/devrel",
61      "CHROME_HEADLESS": "1",
62      "PATH": "<PATH>:RECIPE_REPO[depot_tools]"
63    },
64    "name": "make_universal"
65  },
66  {
67    "cmd": [
68      "python",
69      "-u",
70      "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products = ['dm', 'nanobench', 'skpbench']\n\ntry:\n  os.makedirs(dst)\nexcept OSError as e:\n  if e.errno != errno.EEXIST:\n    raise\n\nfor pattern in build_products:\n  path = os.path.join(src, pattern)\n  for f in glob.glob(path):\n    dst_path = os.path.join(dst, os.path.relpath(f, src))\n    if not os.path.isdir(os.path.dirname(dst_path)):\n      os.makedirs(os.path.dirname(dst_path))\n    print 'Copying build product %s to %s' % (f, dst_path)\n    shutil.move(f, dst_path)\n",
71      "[START_DIR]/cache/work/skia/out/Test-Debian10-Clang-GCE-CPU-AVX2-universal-devrel-All-Android_SKQP/devrel",
72      "[START_DIR]/[SWARM_OUT_DIR]/out/devrel"
73    ],
74    "infra_step": true,
75    "name": "copy build products",
76    "~followup_annotations": [
77      "@@@STEP_LOG_LINE@python.inline@import errno@@@",
78      "@@@STEP_LOG_LINE@python.inline@import glob@@@",
79      "@@@STEP_LOG_LINE@python.inline@import os@@@",
80      "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
81      "@@@STEP_LOG_LINE@python.inline@import sys@@@",
82      "@@@STEP_LOG_LINE@python.inline@@@@",
83      "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
84      "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
85      "@@@STEP_LOG_LINE@python.inline@build_products = ['dm', 'nanobench', 'skpbench']@@@",
86      "@@@STEP_LOG_LINE@python.inline@@@@",
87      "@@@STEP_LOG_LINE@python.inline@try:@@@",
88      "@@@STEP_LOG_LINE@python.inline@  os.makedirs(dst)@@@",
89      "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
90      "@@@STEP_LOG_LINE@python.inline@  if e.errno != errno.EEXIST:@@@",
91      "@@@STEP_LOG_LINE@python.inline@    raise@@@",
92      "@@@STEP_LOG_LINE@python.inline@@@@",
93      "@@@STEP_LOG_LINE@python.inline@for pattern in build_products:@@@",
94      "@@@STEP_LOG_LINE@python.inline@  path = os.path.join(src, pattern)@@@",
95      "@@@STEP_LOG_LINE@python.inline@  for f in glob.glob(path):@@@",
96      "@@@STEP_LOG_LINE@python.inline@    dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
97      "@@@STEP_LOG_LINE@python.inline@    if not os.path.isdir(os.path.dirname(dst_path)):@@@",
98      "@@@STEP_LOG_LINE@python.inline@      os.makedirs(os.path.dirname(dst_path))@@@",
99      "@@@STEP_LOG_LINE@python.inline@    print 'Copying build product %s to %s' % (f, dst_path)@@@",
100      "@@@STEP_LOG_LINE@python.inline@    shutil.move(f, dst_path)@@@",
101      "@@@STEP_LOG_END@python.inline@@@"
102    ]
103  },
104  {
105    "name": "$result"
106  }
107]