Azure / Azure/azure-sdk-for-python

Failure to stream logs from a build environment job

Offen
#37,441 3 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @achauhan-scc Auf GitHub ansehen
Client customer-reported feature-request Machine Learning needs-team-attention Service Attention
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T.
Gemergte PRs (30 T.)
217

Beschreibung

- **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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.