Add upload-llm-artifacts common template step + pipelineArtifact output#47805
Open
ReilleyMilne wants to merge 3 commits into
Open
Add upload-llm-artifacts common template step + pipelineArtifact output#47805ReilleyMilne wants to merge 3 commits into
ReilleyMilne wants to merge 3 commits into
Conversation
benbp
approved these changes
Jul 1, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR wires up collection and upload of test result files as "LLM Artifacts" so downstream LLM tooling (e.g. GitHub Copilot) can analyze CI test runs. It invokes the existing language-agnostic eng/common/pipelines/templates/steps/upload-llm-artifacts.yml staging template from the shared build-test.yml, and declares a templateContext.outputs pipeline artifact in the CI test job so the staged files are published when present.
Changes:
- Invoke
upload-llm-artifacts.ymlafterPublishTestResults@2inbuild-test.yml, scoped to$(Build.SourcesDirectory)/sdkwith the Python glob*test*.xml. - Add a
templateContext.outputspipelineArtifactinci.tests.ymlthat publishes thellm-artifactsstaging directory (per-job/attempt name), gated onuploadLlmArtifacts == 'true'with SBOM disabled.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| eng/pipelines/templates/steps/build-test.yml | Adds the LLM-artifact staging template call after test-result publication; staging runs before code coverage publish. |
| eng/pipelines/templates/jobs/ci.tests.yml | Declares the pipeline artifact output that uploads the staged llm-artifacts directory, conditioned on the runtime uploadLlmArtifacts variable. |
Comment on lines
+189
to
+192
| - template: /eng/common/pipelines/templates/steps/upload-llm-artifacts.yml | ||
| parameters: | ||
| TestResultsGlob: '*test*.xml' | ||
| SearchFolder: '$(Build.SourcesDirectory)/sdk' |
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.
This pull request introduces a new pipeline step to collect and upload test result files as "LLM Artifacts" to support downstream LLM tooling (such as GitHub Copilot) for test analysis. The changes add a reusable, language-agnostic template for staging test result files and update the CI test job to use this template and publish the artifacts when available.