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

Failure to stream logs from a build environment job #37441

Open
joaoe opened this issue Sep 18, 2024 · 1 comment · May be fixed by #37442
Open

Failure to stream logs from a build environment job #37441

joaoe opened this issue Sep 18, 2024 · 1 comment · May be fixed by #37442
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@joaoe
Copy link

joaoe commented Sep 18, 2024

  • Package: package: azure-ai-ml
  • Version: 1.20.0
  • OS: Windows
  • Python version: 3.11

Describe the bug
In my project I create an environment which build a docker image

ml_client = MLClient(...)
ctx = BuildContext(path=".", dockerfile_path="Dockerfile")
env = Environment(name="myimg", build=ctx)
ml_client.environments.create_or_update(env)

with some work I find the job name of the relevant job that is running the docker build command, then I call

ml_client.jobs.stream(build_job_name)

This will correctly wait for the job to complete and print a status or error message when done. Meanwhile I don't see anything else, like the docker build log.

To Reproduce
Steps to reproduce the behavior:

  1. invoke ml_client.jobs.stream(build_job_name) with a docker image build job in the prepare_image experiment
  2. should print the full docker build log

Expected behavior
See above.

Additional context

After debugging I found two main bugs: 1. a mismatch of uri_folder to UriFolder values used as enums and 2. incorrectly parsing the credentials to access the std_log.txt file.
Will send a patch.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Sep 18, 2024
@joaoe joaoe linked a pull request Sep 18, 2024 that will close this issue
6 tasks
@xiangyan99 xiangyan99 added Machine Learning Service Attention Workflow: This issue is responsible by Azure service team. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Sep 18, 2024
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Sep 18, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-ml-sdk @azureml-github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Machine Learning needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants