Commit f7642da
authored
fix(integ-runner): long-running tests warnings are displayed as errors (#994)
This change introduces a new `TEST_WARNING` diagnostic reason to
distinguish non-failing warnings from actual errors in the integration
test runner. Previously, when a test took longer than 60 seconds, it
would emit a `SNAPSHOT_ERROR` diagnostic, which was misleading since the
test hadn't actually failed yet.
The new warning diagnostic allows the runner to inform users about
long-running tests without treating them as errors. This provides better
visibility into test performance while maintaining the distinction
between warnings and actual failures. The warning is displayed with a
`WARN` prefix in the output, making it clear that the test is still
running but taking longer than expected.
### Before
<img width="611" height="137" alt="image"
src="https://github.com/user-attachments/assets/20dda1c3-4bec-461f-bbed-8246dacdc38a"
/>
### After
```
@aws-cdk/aws-lambda-python-alpha: WARN integ.function.nodeps 60.003s
@aws-cdk/aws-lambda-python-alpha: Test is taking a very long time
@aws-cdk/aws-lambda-python-alpha: WARN integ.function.sub 60.006s
@aws-cdk/aws-lambda-python-alpha: Test is taking a very long time
@aws-cdk/aws-lambda-python-alpha: WARN integ.function.poetry 60.002s
@aws-cdk/aws-lambda-python-alpha: Test is taking a very long time
@aws-cdk/aws-lambda-python-alpha: WARN integ.function.pipenv 60.002s
@aws-cdk/aws-lambda-python-alpha: Test is taking a very long time
```
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license1 parent 672ee1c commit f7642da
File tree
2 files changed
+9
-1
lines changed- packages/@aws-cdk/integ-runner/lib/workers
- extract
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| |||
294 | 299 | | |
295 | 300 | | |
296 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
297 | 305 | | |
298 | 306 | | |
299 | 307 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
0 commit comments