Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .pipelines/multitenancy/swiftv2-manifold-e2e.stages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
parameters:
name: ""
dependsOn: ""

stages:
- stage: manifolde2e
displayName: E2E - AKS Swiftv2 Manifold
variables:
TAG: $[ stageDependencies.setup.env.outputs['EnvironmentalVariables.Tag'] ]
IMAGE_REPO_PATH: $[ format('{0}/', stageDependencies.setup.env.outputs['EnvironmentalVariables.imageRepositoryPath']) ]
${{ if eq(parameters.dependsOn, 'publish') }}:
IMAGE_REPO_PATH_REF: 'azure-'
${{ else }}:
IMAGE_REPO_PATH_REF: $(IMAGE_REPO_PATH)
Comment on lines +11 to +14
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain the flow on how this works?

Copy link
Contributor Author

@sharifnasser sharifnasser Nov 27, 2025

Choose a reason for hiding this comment

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

This template is shared by PR Pipeline (pipeline.yaml) and the ACN Test Unofficial pipeline (run-pipeline.yaml). I'm doing this so I can pass the right prefix to Singularity Runners when pulling CNS/CNI images. Example: acnpublic.azurecr.io/azure-cns:vX.x.x-xx

ACN Test Unofficial publishes to IMAGE_REPO_PATH artifact/dd590928-4e04-48cb-9d3d-ee06c5f0e17f/buddy which is used as: acnpublic.azurecr.io/ artifact/dd590928-4e04-48cb-9d3d-ee06c5f0e17f/buddy/ cns:vX.x.x-xx

PR Pipeline has a null value for IMAGE_REPO_PATH so it's replaced by: acnpublic.azurecr.io/ azure- cns:vX.x.x-xx

In the case of including it in the Official Build pipeline, it publishes to IMAGE_REPO_PATH 'artifact/dd590928-4e04-48cb-9d3d-ee06c5f0e17f/official', which would be used as:
acnpublic.azurecr.io/ artifact/dd590928-4e04-48cb-9d3d-ee06c5f0e17f/official/ cns:vX.x.x-xx

Bold section is what is used as the cnscniImagePrefix in Singularity Runners

dependsOn:
- ${{ parameters.dependsOn }}
- setup
jobs:
- job: ${{ parameters.name }}
displayName: AKS Swiftv2 Multitenancy Manifold E2E Test Suite - (${{ parameters.name }})
timeoutInMinutes: 210
pool:
name: $(BUILD_POOL_NAME_DEFAULT)
isCustom: true
type: linux
steps:
- task: TriggerBuild@3
inputs:
buildDefinition: '391699'
templateParameters: 'useAcnPublic: true, cnscniversion: $(TAG), cnscniversionwindows: $(TAG), cnscniImagePrefix: $(IMAGE_REPO_PATH_REF)'
useSameBranch: false
queueBuildForUserThatTriggeredBuild: true
branchToUse: 'refs/heads/sharifna/runner/release-gate'
Copy link
Contributor Author

@sharifnasser sharifnasser Nov 20, 2025

Choose a reason for hiding this comment

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

Need to change this to master branch once Runners pipeline changes are merged.

waitForQueuedBuildsToFinish: true
authenticationMethod: 'OAuth Token'

7 changes: 7 additions & 0 deletions .pipelines/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,13 @@ stages:
dependsOn: ["test"]
scaleup: 50

- ${{ if eq(variables['Build.Reason'], 'Schedule') }}:
# AKS Swiftv2 Singularity E2E tests
- template: multitenancy/swiftv2-manifold-e2e.stages.yaml
parameters:
name: "swiftv2_manifold_e2e"
dependsOn: publish

- stage: delete
displayName: Delete Clusters
condition: always()
Expand Down
7 changes: 6 additions & 1 deletion .pipelines/run-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,12 @@ stages:
vmSize: Standard_B2ms
dependsOn: manifests
scaleup: 50


# AKS Swiftv2 Singularity E2E tests
- template: multitenancy/swiftv2-manifold-e2e.stages.yaml
parameters:
name: "swiftv2_manifold_e2e"
dependsOn: manifests

- stage: delete
displayName: Delete Clusters
Expand Down
Loading