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

[Bug] version 0.13.0 writes to STDERR breaking build pipelines #811

Closed
aweiker opened this issue Oct 4, 2019 · 3 comments
Closed

[Bug] version 0.13.0 writes to STDERR breaking build pipelines #811

aweiker opened this issue Oct 4, 2019 · 3 comments
Labels
Area: ProToCol The bugs under ProToCol Team bug

Comments

@aweiker
Copy link

aweiker commented Oct 4, 2019

Describe the bug
As of version 0.13.0 of azure-devops a message is written to STDERR for every command that is executed. As a result I had to change all of our build scripts to redirect STDERR to /dev/null whenever executing any of these commands.

For example just

To Reproduce

Azure-Devops extension version:

azure-cli                         2.0.74
command-modules-nspkg              2.0.3
core                              2.0.74
nspkg                              3.0.4
telemetry                          1.0.3

Extensions:
azure-devops                      0.13.0
interactive                        0.4.3

Steps to reproduce the behavior:

az pipelines list --organization https://dev.azure.com/ME/ --project "TEST" --query "[].{name: name, id: id}"

Expected behavior
Provide a list of projects with nothing written to STDERR

@aweiker aweiker added Area: ProToCol The bugs under ProToCol Team bug labels Oct 4, 2019
@atbagga
Copy link
Collaborator

atbagga commented Oct 4, 2019

Thanks for reporting the issue.

Looks like this is due to the new Preview feature in Azure-CLI which we included in this release to mark the commands as preview. This should be happening only for preview commands.

Will take a look at it on priority.

@atbagga
Copy link
Collaborator

atbagga commented Oct 7, 2019

@aweiker While I am following up with the Knack/Azure-CLI teams for the behavior, it looks correct to me that a preview command sends out a warning that it might change. It is on the author of the script to allow warnings if some one intentionally wants to use the preview functionality.

Script should fail/pass depending on the exit code rather than stderr. Fail on stderr is more like treat warning as error which you cannot if you are using a preview command in Azure-CLI.

Powershell Task in Azure-Pipelines-

image

@atbagga
Copy link
Collaborator

atbagga commented Oct 9, 2019

@aweiker The Knack/Azure-CLI team came back with the same response as I suggested above. I see there are already issues filed there for other commands.

Since this behaviour is consistent with the Azure-CLI framework, I am closing this issue.

Feel free to follow up here or on Azure-CLI issue if you have some feedback.

@atbagga atbagga closed this as completed Oct 9, 2019
@atbagga atbagga unpinned this issue Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ProToCol The bugs under ProToCol Team bug
Projects
None yet
Development

No branches or pull requests

2 participants