aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipes/upload_coverage_results.expected/normal_bot.json
blob: a34b1eea1361ece0c1058964de39d692fa57a59b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[
  {
    "cmd": [
      "python",
      "-u",
      "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
      "--json-output",
      "/path/to/tmp/json",
      "glob",
      "[START_DIR]/coverage",
      "*.profraw"
    ],
    "infra_step": true,
    "name": "find raw inputs",
    "stdout": "/path/to/tmp/",
    "~followup_annotations": [
      "@@@STEP_LOG_LINE@glob@[START_DIR]/coverage/a.raw@@@",
      "@@@STEP_LOG_LINE@glob@[START_DIR]/coverage/b.raw@@@",
      "@@@STEP_LOG_LINE@glob@[START_DIR]/coverage/c.raw@@@",
      "@@@STEP_LOG_END@glob@@@"
    ]
  },
  {
    "cmd": [
      "tar",
      "-zcvf",
      "[START_DIR]/raw_data.profraw.tar.gz",
      "[START_DIR]/coverage/a.raw",
      "[START_DIR]/coverage/b.raw",
      "[START_DIR]/coverage/c.raw"
    ],
    "name": "create raw data archive"
  },
  {
    "cmd": [
      "gsutil",
      "cp",
      "[START_DIR]/raw_data.profraw.tar.gz",
      "gs://skia-coverage/commit/abc123/Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All.profraw.tar.gz"
    ],
    "name": "upload raw data archive"
  },
  {
    "cmd": [
      "[START_DIR]/clang_linux/bin/llvm-profdata",
      "merge",
      "-sparse",
      "-o",
      "[START_DIR]/output.profdata",
      "[START_DIR]/coverage/a.raw",
      "[START_DIR]/coverage/b.raw",
      "[START_DIR]/coverage/c.raw"
    ],
    "name": "merge and index"
  },
  {
    "cmd": [
      "gsutil",
      "cp",
      "-Z",
      "[START_DIR]/output.profdata",
      "gs://skia-coverage/commit/abc123/Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All.profdata"
    ],
    "name": "upload parsed data"
  },
  {
    "cmd": [
      "[START_DIR]/clang_linux/bin/llvm-cov",
      "show",
      "[START_DIR]/build/dm",
      "-instr-profile=[START_DIR]/output.profdata",
      "-use-color=0",
      "-format=text",
      "-output-dir=[START_DIR]/coverage_text"
    ],
    "name": "create text summary"
  },
  {
    "cmd": [
      "gsutil",
      "cp",
      "-Z",
      "[START_DIR]/coverage_text/index.txt",
      "gs://skia-coverage/commit/abc123/Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All.summary"
    ],
    "name": "upload coverage summary"
  },
  {
    "cmd": [
      "tar",
      "-cvf",
      "[START_DIR]/coverage.text.tar",
      "[START_DIR]/coverage_text"
    ],
    "name": "create text coverage archive"
  },
  {
    "cmd": [
      "gsutil",
      "cp",
      "-Z",
      "[START_DIR]/coverage.text.tar",
      "gs://skia-coverage/commit/abc123/Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All.text.tar"
    ],
    "name": "upload text coverage data"
  },
  {
    "cmd": [
      "[START_DIR]/clang_linux/bin/llvm-cov",
      "show",
      "[START_DIR]/build/dm",
      "-instr-profile=[START_DIR]/output.profdata",
      "-use-color=1",
      "-format=html",
      "-output-dir=[START_DIR]/coverage_html"
    ],
    "name": "create html summary"
  },
  {
    "cmd": [
      "tar",
      "-cvf",
      "[START_DIR]/coverage.html.tar",
      "[START_DIR]/coverage_html"
    ],
    "name": "create html coverage archive"
  },
  {
    "cmd": [
      "gsutil",
      "cp",
      "-Z",
      "[START_DIR]/coverage.html.tar",
      "gs://skia-coverage/commit/abc123/Test-Debian9-GCC-GCE-CPU-AVX2-x86_64-Debug-All.html.tar"
    ],
    "name": "upload html coverage data"
  },
  {
    "name": "$result",
    "recipe_result": null,
    "status_code": 0
  }
]