You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The toolrunner does not properly buffer the stdline and errline. Specifically, when the toolrunner receives 'stdout' or 'stderr' data from the child process, it discards all the data after the last new line character.
This has implications for the AzureCLI@2 task which is listening to the errline event to implements its failOnStandardError functionality. When the standard error stream does not contain any newlines (or the wrong type e.g. lf endings on Windows) the errline event never fires due to the incorrect buffering.
Expected behaviour
The toolrunner should correctly buffer all of the stdout and stderr data and emit stdline and errline events for all lines of data.
Environment
azure-pipelines-task-lib version: 4.10.1
Issue Description
The toolrunner does not properly buffer the
stdline
anderrline
. Specifically, when the toolrunner receives 'stdout' or 'stderr' data from the child process, it discards all the data after the last new line character.This has implications for the AzureCLI@2 task which is listening to the
errline
event to implements itsfailOnStandardError
functionality. When the standard error stream does not contain any newlines (or the wrong type e.g.lf
endings on Windows) theerrline
event never fires due to the incorrect buffering.Expected behaviour
The toolrunner should correctly buffer all of the stdout and stderr data and emit
stdline
anderrline
events for all lines of data.Actual behaviour
The
stdline
anderrline
are missing data.Steps to reproduce
Here is an example script to reproduce the issue:
Logs
N/A
The text was updated successfully, but these errors were encountered: