Skip to content

Fix quickstart notebook race in Actions build job#3979

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-build-job-one-more-time
Draft

Fix quickstart notebook race in Actions build job#3979
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-build-job-one-more-time

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 2, 2026

The build job in tutorials-get-started-notebooks-quickstart failed because the notebook attempted to fetch/deploy a registered model before the training job had finished registering it. This change removes that race by making notebook execution wait for job completion.

  • Root cause addressed

    • quickstart.ipynb submitted a training job and immediately queried ml_client.models.list(...), which intermittently hit ModelNotFound in CI.
  • Notebook execution ordering

    • Updated the job submission cell in tutorials/get-started-notebooks/quickstart.ipynb to retain the returned job and stream it to completion before model lookup.
  • Behavioral impact

    • Model listing/deployment steps now run only after the training run reaches terminal state, preventing transient CI failures in the build job.
returned_job = ml_client.create_or_update(job)
ml_client.jobs.stream(returned_job.name)

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build Fix quickstart notebook race in Actions build job Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants