Giter VIP home page Giter VIP logo

Comments (6)

yonzhan avatar yonzhan commented on July 26, 2024

Thank you for opening this issue, we will look into it.

from azure-cli-extensions.

diondrapeck avatar diondrapeck commented on July 26, 2024

@eddmik

Thanks for bringing this to our attention. Those class messages are not errors, they're log warnings. All of our experimental classes are marked with a decorator to let users know that they are experimental, so that they don't use them in prod builds, or at the very least are cautious about doing so. This handled by a call to Python's logger and Python sends all logs to stderr; however, the --only-show-errors flag is implemented by Azure CLI (not our ml extension) and Azure CLI's own documentation explicitly says here that experimental warnings should be swallowed by that flag, so I'll assign this back to them to look at.

@yonzhan I've removed the ml labels

from azure-cli-extensions.

bebound avatar bebound commented on July 26, 2024

@diondrapeck I think from knack.log import get_logger's logger works with --only-show-errors.

@eddmik It is not recommended to use failOnStderr to determine the pipeline failure. See Azure/azure-cli#18372

from azure-cli-extensions.

eddmik avatar eddmik commented on July 26, 2024

@bebound thank you for your comment, I have read the comments, however it is only in the case where --debug is used it does not make sense to use the failOnStderr: true, in our case my understanding is, it makes sense to use failOnStderr: true in combination with --only-show-errors (See. Azure/azure-cli/issues/18372#issuecomment) please correct me if I am wrong. Otherwise how would you see that the job is failed?

from azure-cli-extensions.

diondrapeck avatar diondrapeck commented on July 26, 2024

@bebound Gotcha. I just checked and knack isn't GA yet, so due to Azure SDK for Python guidelines, we can't depend on it in our GA ML SDK (which the ml CLI extension is built on top of).

from azure-cli-extensions.

bebound avatar bebound commented on July 26, 2024

@bebound thank you for your comment, I have read the comments, however it is only in the case where --debug is used it does not make sense to use the failOnStderr: true, in our case my understanding is, it makes sense to use failOnStderr: true in combination with --only-show-errors (See. Azure/azure-cli/issues/18372#issuecomment) please correct me if I am wrong. Otherwise how would you see that the job is failed?

Use $LASTEXITCODE instead. The --only=show-errors option may not be reliable as any CLI dependency could write to stderr and interrupt your pipeline.

from azure-cli-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.