Skip to content

Conversation

@suneelyadava
Copy link

🔍 Description

Added pipeline along with auto fetch of build ids and publishing the result to Dashboard!

Why is this PR needed?

This PR will address following.

1- A new pipeline which will pull build ID of ARM/AMD prod image run and call the trident run.
2- Trident test runs will publish the artifact
3- New pipeline will download junit test result and call template to upload to test result DB dashboard.
4- Also provide a feature to toggle bare metal test.

@suneelyadava suneelyadava requested a review from a team as a code owner August 10, 2025 14:01
- key: ob_outputDirectory
value: $(Build.ArtifactStagingDirectory)/e2e
steps:
- template: e2e-template.yml
Copy link
Member

@bfjelds bfjelds Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e template is its own stage, you can't call it from steps or jobs. also, please call trident-platform-cicd-template.yml rather than e2e template.

see trident-cicd for how: https://github.com/microsoft/trident/blob/user/bfjelds/enable-idc-testing-artifact/.pipelines/trident-cicd.yml for how

@@ -0,0 +1,51 @@
# .pipelines/trident-pr-e2e-auto.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be called something like trident-cicd-for-azl, it isn't a pr-e2e test.

displayName: "Resolve run IDs (tag: ${{ parameters.baseImgTag }})"
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)

Copy link
Member

@bfjelds bfjelds Aug 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

stage 1 should call this to create an artifact with the build ids:

       - template: stages/base_image_config/create-base-image-config-artifact.yml
        parameters:
          baseimgBuildType: dev
          baseImagePipelineBuildId: $(ResolvedBaseImagePipelineBuildId)
          baseImageArm64PipelineBuildId: $(ResolvedBaseImageArm64PipelineBuildId)

AUTH="Authorization: Bearer $(System.AccessToken)"
ACCEPT="Accept: application/json; api-version=7.1-preview.7"

fetch_latest_with_tag () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this code make sure that these builds are related to eachother? it seems like it is just finding the most recent.

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.

3 participants