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.
148
148
149
149
Download the build's log file to see the details.
150
150
151
151
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."""
152
152
),
153
153
)
154
154
155
+
deftest_title_only_failure_ninja_log(self):
156
+
self.assertEqual(
157
+
generate_test_report_lib.generate_report(
158
+
"Foo",
159
+
1,
160
+
[],
161
+
[
162
+
[
163
+
"[1/5] test/1.stamp",
164
+
"[2/5] test/2.stamp",
165
+
"[3/5] test/3.stamp",
166
+
"[4/5] test/4.stamp",
167
+
"FAILED: test/4.stamp",
168
+
"touch test/4.stamp",
169
+
"Wow! Risk!",
170
+
"[5/5] test/5.stamp",
171
+
]
172
+
],
173
+
),
174
+
dedent(
175
+
"""\
176
+
# Foo
177
+
178
+
The build failed before running any tests. Click on the failure below to see the details.
179
+
180
+
<details>
181
+
<summary>test/4.stamp</summary>
182
+
183
+
```
184
+
FAILED: test/4.stamp
185
+
touch test/4.stamp
186
+
Wow! Risk!
187
+
```
188
+
</details>
189
+
190
+
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