Skip to content

Register authored Pipeline Command components before job submission - #14

Merged
zzn2 merged 15 commits into
feature/azure-ai-projects/training-prpr-2.2.0-pipelinesfrom
zhizhu-microsoft-register-command-before-pipeline
Dec 4, 2026
Merged

zzn2 merged 15 commits into
feature/azure-ai-projects/training-prpr-2.2.0-pipelinesfrom
zhizhu-microsoft-register-command-before-pipeline

Conversation

@zzn2

@zzn2 zzn2 commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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 the properties.componentSpec envelope. Preserve the service's top-level opaque id verbatim as jobs.<node>.componentId, removing component only 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_jobs and .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 package tsp-location.yaml is 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.ps1 uses tsp-client update against 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-preview contract without changing the root client's v1 default. 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:

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
zzn2 and others added 13 commits November 4, 2026 20:18
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
zzn2 marked this pull request as ready for review December 4, 2026 09:25
…u-microsoft-register-command-before-pipeline
@zzn2
zzn2 merged commit 9cb7ec2 into feature/azure-ai-projects/training-prpr-2.2.0-pipelines Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant