Cherry-pick #20397 to 7.x: Disable logging when pulling on python integration tests #20445
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #20397 to 7.x branch. Original message:
Docker compose library is quite verbose, and it prints many messages
when logging is enabled. On integration tests we make a pull before
trying to build the images in case the image is already pre-built. If
this pull doesn't work, the image is built, so we ignore errors on this
pull. But, even when ignoring errors, these errors are logged, and when
investigating problems with tests this may lead to think that the
problem is with the unavailability of some image. Disable logging on the
compose logger while this previous pull is being done.
What does this PR do?
Disables logging on errors happening when trying to pull images on
integration tests.
Note: Docker compose logging is still too verbose, but this is a collateral effect
of the test runner. This will improve after #16883.
Why is it important?
Errors when pulling images on integration tests are ignored, because
the image can still be built, but they are still logged, what is misleading.
See for example this thread: #19739 (comment)
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesI have added tests that prove my fix is effective or that my feature worksI have added an entry inCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Logs
Before, if an image is not available, but it can be built, and the test fails for other reason, this is logged, what is confusing.
After this change no errors are logged by the pull if the test fails, logs regarding the later build are still logged: