Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix container build logging #26050

Merged
merged 1 commit into from Jun 10, 2022

Conversation

knutwannheden
Copy link
Contributor

In Quarkus 2.10.CR1, the container build (e.g. Docker) performed by Quarkus does not log any output anymore. This appears to be caused by the refactoring in commit 418d986, as the Runnable#run() method is never called in ExecUtil#exec() on the Runnable returned by outputFilterFunction.

In Quarkus 2.10.CR1, the container build (e.g. Docker) performed by Quarkus does not log any output anymore. This appears to be caused by the refactoring in commit 418d986, as the `Runnable#run()` method is never called in `ExecUtil#exec()` on the `Runnable` returned by `outputFilterFunction`.
@knutwannheden
Copy link
Contributor Author

knutwannheden commented Jun 10, 2022

I didn't really look at what exactly the referenced commit does. I just noticed that the call of the run() method appears to be missing. On the 2.9 branch the situation is the same. There the corresponding commit is 3556287. On 2.8 and older branches the problem doesn't exist.

@knutwannheden
Copy link
Contributor Author

/cc @geoand

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@geoand geoand added triage/backport? triage/waiting-for-ci Ready to merge when CI successfully finishes labels Jun 10, 2022
@knutwannheden
Copy link
Contributor Author

In our case this fix is in fact very important. When the stdout and stderr isn't consumed, the process will at some point just hang. Presumably because the allocated buffer has been filled. This is only problematic when there is a lot of output.

@quarkus-bot
Copy link

quarkus-bot bot commented Jun 10, 2022

Failing Jobs - Building 0ca82fd

Status Name Step Failures Logs Raw logs
Gradle Tests - JDK 11 Windows Build Failures Logs Raw logs

Full information is available in the Build summary check run.

Failures

⚙️ Gradle Tests - JDK 11 Windows #

- Failing: integration-tests/gradle 

📦 integration-tests/gradle

io.quarkus.gradle.devmode.QuarkusDevDependencyDevModeTest.main line 14 - More details - Source on GitHub

org.awaitility.core.ConditionTimeoutException: Condition with lambda expression in io.quarkus.test.devmode.util.DevModeTestUtils that uses java.util.function.Supplier, java.util.function.Supplierjava.util.concurrent.atomic.AtomicReference, java.util.concurrent.atomic.AtomicReferencejava.lang.String, java.lang.Stringboolean was not fulfilled within 1 minutes.
	at org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
	at org.awaitility.core.CallableCondition.await(CallableCondition.java:78)

@gsmet gsmet merged commit ff91abc into quarkusio:main Jun 10, 2022
@quarkus-bot quarkus-bot bot added this to the 2.11 - main milestone Jun 10, 2022
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jun 10, 2022
@gsmet
Copy link
Member

gsmet commented Jun 10, 2022

Thanks for testing and for the quick fix!

@knutwannheden knutwannheden deleted the fix-docker-build-logging branch June 11, 2022 10:58
@knutwannheden
Copy link
Contributor Author

@gsmet Since this bug is also present in 2.9, should the triage/backport-2.9? label also be added?

@geoand
Copy link
Contributor

geoand commented Jun 13, 2022

There will be no more 2.9 releases (unless something goes very wrong) now that we have a first 2.10 release out

@knutwannheden
Copy link
Contributor Author

There will be no more 2.9 releases (unless something goes very wrong) now that we have a first 2.10 release out

Thanks for the clarification. Since the label was mentioned only 4 days ago I thought it may still be relevant :-)

@gsmet gsmet modified the milestones: 2.11 - main, 2.10.0.Final Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants