You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CI] Setup generate_report to describe ninja failures
This patch makes it so that generate_report will add information about
failed build actions to the summary report. This makes it significantly
easier to find compilation failures, especially given we run ninja with
-k 0.
This patch only does the integration into generate_report (along with
testing). Actual utilization in the script is split into a separate
patch to try and keep things clean.
Pull Request: llvm#152621
The build failed before running any tests. Detailed information about the build failure could not be automatically obtained.
146
146
147
147
Download the build's log file to see the details.
148
148
149
149
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label."""
150
150
),
151
151
)
152
152
153
+
deftest_title_only_failure_ninja_log(self):
154
+
self.assertEqual(
155
+
generate_test_report_lib.generate_report(
156
+
"Foo",
157
+
1,
158
+
[],
159
+
[
160
+
[
161
+
"[1/5] test/1.stamp",
162
+
"[2/5] test/2.stamp",
163
+
"[3/5] test/3.stamp",
164
+
"[4/5] test/4.stamp",
165
+
"FAILED: test/4.stamp",
166
+
"touch test/4.stamp",
167
+
"Wow! Risk!",
168
+
"[5/5] test/5.stamp",
169
+
]
170
+
],
171
+
),
172
+
dedent(
173
+
"""\
174
+
# Foo
175
+
176
+
The build failed before running any tests. Click on a failure below to see the details.
177
+
178
+
<details>
179
+
<summary>test/4.stamp</summary>
180
+
181
+
```
182
+
FAILED: test/4.stamp
183
+
touch test/4.stamp
184
+
Wow! Risk!
185
+
```
186
+
</details>
187
+
188
+
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label."""
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label."""
0 commit comments