integ-runner: exit code 1 despite tests passing #33279
Labels
@aws-cdk/integ-runner
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
If a change contains destructive changes,
integ-runner
will exit with exit code1
with the following message:This happens even when the tests pass and the
--disable-update-workflow
flag is used.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
I expect that if the tests pass with
--disable-update-workflow
, that the job succeeds.Current Behavior
The job fails with exit code
1
.Reproduction Steps
integ-runner --update-on-failed --disable-update-workflow
echo $?
Possible Solution
Two ideas:
0
to indicate that the tests succeeded without error and that the snapshots have been updated.1
) to differentiate this error from an actual test failure.Additional Information/Context
In my project I use a CI job which executes the integration tests and commits the new snapshot files. With this bug, I need to run integration tests using the following pattern to suppress this error in order for the new snapshots to be committed:
However, given that exit code
1
is used for genuine test failures, those errors are suppressed as well.CDK CLI Version
2.174.0
Framework Version
No response
Node.js Version
v18.17.1
OS
MacOS
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: