Repository navigation
Register authored Pipeline Command components before job submission - #14
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…izhu-microsoft-register-command-before-pipeline
# Conflicts: # sdk/ai/azure-ai-projects/README.md # sdk/ai/azure-ai-projects/azure/ai/projects/aio/operations/_patch_jobs_async.py # sdk/ai/azure-ai-projects/azure/ai/projects/operations/_patch_jobs.py
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…u-microsoft-register-command-before-pipeline
…u-microsoft-register-command-before-pipeline
…perations Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…u-microsoft-register-command-before-pipeline # Conflicts: # sdk/ai/azure-ai-projects/CHANGELOG.md # sdk/ai/azure-ai-projects/tests/jobs/test_pipeline_jobs.py
zzn2
marked this pull request as ready for review
December 4, 2026 09:25
…u-microsoft-register-command-before-pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
Function-authored Pipelines currently submit inline Command component definitions after uploading their Code. A Code asset ID identifies source content, not an executable Component version, so uploading the source alone does not establish the executable reference required by the Pipeline backend.
Change
Keep the existing
@component,@pipeline, and submission interfaces. After resolving the existing Code uploads, register each top-level inline Command through the project's Component PUT using its authored name and version and theproperties.componentSpecenvelope. Preserve the service's top-level opaqueidverbatim asjobs.<node>.componentId, removingcomponentonly from a copied submission payload. Ports, bindings, compute, environment, identity, resources, and the reusable authoring object are preserved.The synchronous and asynchronous implementations share this preparation through the existing Pipeline resolver used by both
.pipeline_jobsand.beta.jobs. Registration failures stop submission without an inline fallback. Existing Component IDs and scalar references pass through unchanged; authoring and serialization remain offline, with no default Component GET.Internal generation binding
The package's declared Foundry TypeSpec input at 211fd2c does not declare Component registration. This change therefore includes a self-contained local binding for the existing PUT, with Python
Access.internal, rather than treating this as an emitter omission or downloading the complete service specification. The original packagetsp-location.yamlis unchanged.The narrow generation manifest and lock retain CLI 0.33.1, Azure Python emitter 0.63.10, TypeSpec compiler 1.17.0, and client-generator-core 0.73.1.
typespec/component-registration/generate.ps1usestsp-client updateagainst only the checked-in local input and retains the two unedited generated operation modules. The existing SDK client, configuration, serializer, authentication, and transport pipeline are reused; no public Component operation group or Python runtime dependency is added.Scope and prerequisites
The Component PUT uses its independently established
2026-01-15-previewcontract without changing the root client'sv1default. The project-scoped Component route must be deployed and authorized; this PR does not establish current public canary availability or runtime success. It does not add backend/APIM behavior, nested Pipeline registration, standalone Command component-reference submission, a cache, or a new registration lifecycle. Commands inside nested inline Pipeline components remain inline; only top-level Command nodes are registered.This change targets the unmerged Pipeline authoring branch
feature/azure-ai-projects/training-prpr-2.2.0-pipelines(head of Azure/azure-sdk-for-python#49464) rather than duplicating that feature onto the default branch. It builds on these sibling changes into the same branch, whose commits it already contains so it applies cleanly after them:pipeline_jobssubmission through the existing/jobsAPI