fix: JSON should be set to "success": false when any transactions failed#4201
fix: JSON should be set to "success": false when any transactions failed#4201Klaim merged 8 commits intomamba-org:mainfrom
"success": false when any transactions failed#4201Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4201 +/- ##
==========================================
- Coverage 53.54% 52.75% -0.79%
==========================================
Files 239 239
Lines 29275 29278 +3
Branches 3107 3108 +1
==========================================
- Hits 15675 15446 -229
- Misses 13597 13829 +232
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…cess": false` in JSON output
3b13f8c to
6084967
Compare
|
The failure of See: #4213 |
a1bfd28 to
6084967
Compare
`TestMultiplePkgCaches::test_no_writable_extracted_dir_corrupted` Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
|
@jjerphan Weird: that ci failure wasnt visible in your pr but it's the same sequence of commits here. I'm suspecting a timing issue, although the test is about detecting a "hang". I'll re-run to be sure but I think maybe that timeout is optimistically short? |
|
We can increase the value for the timeout (we have done that several time in the past). |
jjerphan
left a comment
There was a problem hiding this comment.
Thank you.
Are there way we can test it?
I'm not sure if we actually can test it in a way that's always correct. A command that should always fail in the transaction execution? |
Co-authored-by: Julien Jerphanion <git@jjerphan.xyz>
|
What if we |
If I understand correctly, that would rely on timing to trigger the exception in the How about attempting to get a package from an impossible url? I suspect that might fail before that function though. Maybe with an incorrect build id? |
|
We should be able to use an explicit environment specification with a faulty package. |
I suspect we might have one somewhere in the tests, I'll look into it or create it👍🏼 |
JohanMabille
left a comment
There was a problem hiding this comment.
LGTM once the linter is fixed.
Description
I found some cases while working on #4126 where the JSON output would set
"success": truewhileMTransaction::executionactually failed, leading to potentially succeeding integration tests which check for that value.This PR attempts to make the JSON output correct and reveal tests that are actually not passing.
Type of Change
Checklist
pre-commit run --alllocally in the source folder and confirmed that there are no linter errors.