Skip to content

[CI] LoggedExecFuncTest failed tasks output logged to console when spooling true failing #119509

Open
@elasticsearchmachine

Description

Build Scans:

Reproduction Line:

null

Applicable branches:
8.16

Reproduces locally?:
N/A

Failure History:
See dashboard

Failure Message:

org.spockframework.runtime.ConditionNotSatisfiedError: Condition not satisfied:

normalized(givenOutput).contains(normalized(expected))
|          |            |        |          |
|          |            false    |          No such file or directory
|          |                     No such file or directory
|          Calculating task graph as no cached configuration is available for tasks: loggedExec
|          Could not read error output of command 'ls'.
|          java.io.IOException: Stream Closed
|          	at java.base/java.io.FileOutputStream.writeBytes(Native Method)
|          	at java.base/java.io.FileOutputStream.write(FileOutputStream.java:349)
|          	at org.elasticsearch.gradle.LazyFileOutputStream.write(LazyFileOutputStream.java:58)
|          	at org.gradle.process.internal.streams.ExecOutputHandleRunner.writeBuffer(ExecOutputHandleRunner.java:97)
|          	at org.gradle.process.internal.streams.ExecOutputHandleRunner.lambda$forwardContent$0(ExecOutputHandleRunner.java:81)
|          	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:75)
|          	at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:80)
|          	at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:64)
|          	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
|          	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
|          	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
|          	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
|          	at java.base/java.lang.Thread.run(Thread.java:833)
|           
|          > Task :loggedExec FAILED
|          Output for ls:
|          ls: 
|           
|          FAILURE: Build failed with an exception.
|           
|          * What went wrong:
|          Execution failed for task ':loggedExec'.
|          > Process 'ls [wtf]' finished with non-zero exit value 2
|           
|          * Try:
|          > Run with --stacktrace option to get the stack trace.
|          > Run with --info or --debug option to get more log output.
|          > Run with --scan to get full insights.
|          > Get more help at https://help.gradle.org.
|           
|          BUILD FAILED in 489ms
|          1 actionable task: 1 executed
|          Configuration cache entry stored.
Calculating task graph as no cached configuration is available for tasks: loggedExec
Could not read error output of command 'ls'.
java.io.IOException: Stream Closed
	at java.base/java.io.FileOutputStream.writeBytes(Native Method)
	at java.base/java.io.FileOutputStream.write(FileOutputStream.java:349)
	at org.elasticsearch.gradle.LazyFileOutputStream.write(LazyFileOutputStream.java:58)
	at org.gradle.process.internal.streams.ExecOutputHandleRunner.writeBuffer(ExecOutputHandleRunner.java:97)
	at org.gradle.process.internal.streams.ExecOutputHandleRunner.lambda$forwardContent$0(ExecOutputHandleRunner.java:81)
	at org.gradle.internal.operations.CurrentBuildOperationRef.with(CurrentBuildOperationRef.java:75)
	at org.gradle.process.internal.streams.ExecOutputHandleRunner.forwardContent(ExecOutputHandleRunner.java:80)
	at org.gradle.process.internal.streams.ExecOutputHandleRunner.run(ExecOutputHandleRunner.java:64)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
	at org.gradle.internal.concurrent.AbstractManagedExecutor$1.run(AbstractManagedExecutor.java:48)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)
 
> Task :loggedExec FAILED
Output for ls:
ls: 
 
FAILURE: Build failed with an exception.
 
* What went wrong:
Execution failed for task ':loggedExec'.
> Process 'ls [wtf]' finished with non-zero exit value 2
 
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
 
BUILD FAILED in 489ms
1 actionable task: 1 executed
Configuration cache entry stored.

Issue Reasons:

  • [8.16] 2 failures in test failed tasks output logged to console when spooling true (6.9% fail rate in 29 executions)

Note:
This issue was created using new test triage automation. Please report issues or feedback to es-delivery.

Metadata

Assignees

No one assigned

    Labels

    :Delivery/BuildBuild or test infrastructure>test-failureTriaged test failures from CITeam:DeliveryMeta label for Delivery teamneeds:riskRequires assignment of a risk label (low, medium, blocker)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions