From bcd0e66fed9b30e95d3f18570040a9a78791b9e3 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 14:35:57 +0000 Subject: [PATCH 01/11] ci: enable all E2E scenarios in ADO pipeline Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 66 +++++++++++++++++++++++++++++++--------- 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 8330c763..28dc1c9d 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -3,7 +3,7 @@ pr: none parameters: - name: approveAzureResources - displayName: Approve billable baseline E2E provisioning and cleanup in the test subscription + displayName: Approve billable provisioning and cleanup for all five E2E scenarios in the test subscription type: boolean default: false @@ -11,19 +11,54 @@ pool: vmImage: ubuntu-24.04 jobs: - - job: baseline_e2e - displayName: Shared-VNet baseline E2E + - job: e2e + displayName: Fleet networking E2E condition: and(succeeded(), ${{ eq(parameters.approveAzureResources, true) }}) - timeoutInMinutes: 300 + strategy: + matrix: + shared_vnet_atm: + SCENARIO: atm + AZURE_NETWORK_SETTING: shared-vnet + ENABLE_TRAFFIC_MANAGER: 'true' + ENABLE_AZURE_FRONT_DOOR: 'false' + E2E_JOB_TIMEOUT: 300 + E2E_TEST_TIMEOUT: 60 + peered_vnet: + SCENARIO: peered + AZURE_NETWORK_SETTING: peered-vnet + ENABLE_TRAFFIC_MANAGER: 'false' + ENABLE_AZURE_FRONT_DOOR: 'false' + E2E_JOB_TIMEOUT: 300 + E2E_TEST_TIMEOUT: 60 + dynamic_ip_allocation: + SCENARIO: dynamic + AZURE_NETWORK_SETTING: dynamic-ip-allocation + ENABLE_TRAFFIC_MANAGER: 'false' + ENABLE_AZURE_FRONT_DOOR: 'false' + E2E_JOB_TIMEOUT: 300 + E2E_TEST_TIMEOUT: 60 + unsupported: + SCENARIO: unsupported + AZURE_NETWORK_SETTING: unsupported + ENABLE_TRAFFIC_MANAGER: 'false' + ENABLE_AZURE_FRONT_DOOR: 'false' + E2E_JOB_TIMEOUT: 300 + E2E_TEST_TIMEOUT: 60 + shared_vnet_afd: + SCENARIO: afd + AZURE_NETWORK_SETTING: shared-vnet + ENABLE_TRAFFIC_MANAGER: 'false' + ENABLE_AZURE_FRONT_DOOR: 'true' + E2E_JOB_TIMEOUT: 900 + E2E_TEST_TIMEOUT: 610 + timeoutInMinutes: $[variables['E2E_JOB_TIMEOUT']] cancelTimeoutInMinutes: 30 variables: AZURE_SUBSCRIPTION_ID: '8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8' - AZURE_RESOURCE_GROUP: 'fleet-ado-$(Build.BuildId)-$(System.JobAttempt)' - AZURE_NETWORK_SETTING: shared-vnet - ENABLE_TRAFFIC_MANAGER: 'false' - ENABLE_AZURE_FRONT_DOOR: 'false' + AZURE_RESOURCE_GROUP: 'fleet-ado-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' + ENABLE_AFD_PRIVATE_LINK_AUTO_APPROVAL: '$(ENABLE_AZURE_FRONT_DOOR)' RETAIN_AFD_E2E_SETUP: 'false' - BUILDX_BUILDER_NAME: 'fleet-e2e-$(Build.BuildId)-$(System.JobAttempt)' + BUILDX_BUILDER_NAME: 'fleet-e2e-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' KUBECONFIG: '$(Agent.TempDirectory)/fleet-e2e-kubeconfig' LOG_DIR: '$(Build.ArtifactStagingDirectory)/agent-logs' steps: @@ -59,7 +94,7 @@ jobs: timeoutInMinutes: 15 - task: AzureCLI@2 - displayName: Set up baseline E2E environment + displayName: Set up E2E environment timeoutInMinutes: 180 inputs: azureSubscription: 'aks fleetnetworking' @@ -94,8 +129,8 @@ jobs: timeoutInMinutes: 5 - task: AzureCLI@2 - displayName: Run baseline E2E tests - timeoutInMinutes: 60 + displayName: Run E2E tests + timeoutInMinutes: $[variables['E2E_TEST_TIMEOUT']] inputs: azureSubscription: 'aks fleetnetworking' scriptType: bash @@ -105,6 +140,9 @@ jobs: keepAzSessionActive: true inlineScript: | set -euo pipefail + if [[ "$ENABLE_TRAFFIC_MANAGER" == true || "$ENABLE_AZURE_FRONT_DOOR" == true ]]; then + sleep 5m + fi make e2e-tests env: AZURE_TOKEN_CREDENTIALS: AzureCLICredential @@ -126,7 +164,7 @@ jobs: timeoutInMinutes: 5 inputs: targetPath: '$(LOG_DIR)' - artifact: 'baseline-e2e-$(System.JobAttempt)' + artifact: 'e2e-$(SCENARIO)-$(System.JobAttempt)' - task: AzureCLI@2 displayName: Clean up this run's resource group @@ -141,7 +179,7 @@ jobs: keepAzSessionActive: true inlineScript: | set -euo pipefail - expected="fleet-ado-$BUILD_BUILDID-$SYSTEM_JOBATTEMPT" + expected="fleet-ado-$BUILD_BUILDID-$SCENARIO-$SYSTEM_JOBATTEMPT" if [[ "$AZURE_RESOURCE_GROUP" != "$expected" ]]; then echo "error: refusing cleanup outside this run's resource group" >&2 exit 1 From 11e933d13603c3acfb24f594e2e2b855166d5f4a Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 14:47:48 +0000 Subject: [PATCH 02/11] fix: resolve ADO E2E timeouts at compile time Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 293 ++++++++++++++++++++------------------- 1 file changed, 148 insertions(+), 145 deletions(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 28dc1c9d..ac71e238 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -6,16 +6,9 @@ parameters: displayName: Approve billable provisioning and cleanup for all five E2E scenarios in the test subscription type: boolean default: false - -pool: - vmImage: ubuntu-24.04 - -jobs: - - job: e2e - displayName: Fleet networking E2E - condition: and(succeeded(), ${{ eq(parameters.approveAzureResources, true) }}) - strategy: - matrix: + - name: scenarios + type: object + default: shared_vnet_atm: SCENARIO: atm AZURE_NETWORK_SETTING: shared-vnet @@ -51,149 +44,159 @@ jobs: ENABLE_AZURE_FRONT_DOOR: 'true' E2E_JOB_TIMEOUT: 900 E2E_TEST_TIMEOUT: 610 - timeoutInMinutes: $[variables['E2E_JOB_TIMEOUT']] - cancelTimeoutInMinutes: 30 - variables: - AZURE_SUBSCRIPTION_ID: '8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8' - AZURE_RESOURCE_GROUP: 'fleet-ado-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' - ENABLE_AFD_PRIVATE_LINK_AUTO_APPROVAL: '$(ENABLE_AZURE_FRONT_DOOR)' - RETAIN_AFD_E2E_SETUP: 'false' - BUILDX_BUILDER_NAME: 'fleet-e2e-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' - KUBECONFIG: '$(Agent.TempDirectory)/fleet-e2e-kubeconfig' - LOG_DIR: '$(Build.ArtifactStagingDirectory)/agent-logs' - steps: - - checkout: self - persistCredentials: false - - - bash: | - set -euo pipefail - version=$(awk '$1 == "go" {print $2}' go.mod) - test -n "$version" - echo "##vso[task.setvariable variable=GoVersion]$version" - displayName: Read Go version from go.mod - - task: GoTool@0 - inputs: - version: '$(GoVersion)' +pool: + vmImage: ubuntu-24.04 - - bash: | - set -euo pipefail - for tool in az docker helm kubectl jq yq make timeout; do - command -v "$tool" - done - go version - docker info - df -h / - docker system df - helm version --short - kubectl version --client - yq --version - go mod download - mkdir -p "$LOG_DIR" - displayName: Check E2E prerequisites - timeoutInMinutes: 15 +jobs: + - ${{ each scenario in parameters.scenarios }}: + - job: ${{ scenario.key }} + displayName: Fleet networking E2E (${{ scenario.value.SCENARIO }}) + condition: and(succeeded(), ${{ eq(parameters.approveAzureResources, true) }}) + timeoutInMinutes: ${{ scenario.value.E2E_JOB_TIMEOUT }} + cancelTimeoutInMinutes: 30 + variables: + ${{ insert }}: ${{ scenario.value }} + AZURE_SUBSCRIPTION_ID: '8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8' + AZURE_RESOURCE_GROUP: 'fleet-ado-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' + ENABLE_AFD_PRIVATE_LINK_AUTO_APPROVAL: '$(ENABLE_AZURE_FRONT_DOOR)' + RETAIN_AFD_E2E_SETUP: 'false' + BUILDX_BUILDER_NAME: 'fleet-e2e-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' + KUBECONFIG: '$(Agent.TempDirectory)/fleet-e2e-kubeconfig' + LOG_DIR: '$(Build.ArtifactStagingDirectory)/agent-logs' + steps: + - checkout: self + persistCredentials: false - - task: AzureCLI@2 - displayName: Set up E2E environment - timeoutInMinutes: 180 - inputs: - azureSubscription: 'aks fleetnetworking' - scriptType: bash - scriptLocation: inlineScript - addSpnToEnvironment: false - visibleAzLogin: false - keepAzSessionActive: true - inlineScript: | + - bash: | set -euo pipefail - actual=$(az account show --query id -o tsv) - if [[ "$actual" != "$AZURE_SUBSCRIPTION_ID" ]]; then - echo "error: service connection subscription does not match the E2E subscription" >&2 - exit 1 - fi - exists=$(az group exists --subscription "$AZURE_SUBSCRIPTION_ID" -n "$AZURE_RESOURCE_GROUP") - if [[ "$exists" != false ]]; then - echo "error: refusing to reuse resource group $AZURE_RESOURCE_GROUP" >&2 - exit 1 - fi - echo "##vso[task.setvariable variable=e2eResourcesStarted]true" - make e2e-setup + version=$(awk '$1 == "go" {print $2}' go.mod) + test -n "$version" + echo "##vso[task.setvariable variable=GoVersion]$version" + displayName: Read Go version from go.mod - - bash: | - set -euo pipefail - df -h / - docker buildx du --builder "$BUILDX_BUILDER_NAME" - docker buildx rm "$BUILDX_BUILDER_NAME" - docker system df - df -h / - displayName: Release image build cache before Go tests - timeoutInMinutes: 5 + - task: GoTool@0 + inputs: + version: '$(GoVersion)' - - task: AzureCLI@2 - displayName: Run E2E tests - timeoutInMinutes: $[variables['E2E_TEST_TIMEOUT']] - inputs: - azureSubscription: 'aks fleetnetworking' - scriptType: bash - scriptLocation: inlineScript - addSpnToEnvironment: false - visibleAzLogin: false - keepAzSessionActive: true - inlineScript: | + - bash: | set -euo pipefail - if [[ "$ENABLE_TRAFFIC_MANAGER" == true || "$ENABLE_AZURE_FRONT_DOOR" == true ]]; then - sleep 5m - fi - make e2e-tests - env: - AZURE_TOKEN_CREDENTIALS: AzureCLICredential + for tool in az docker helm kubectl jq yq make timeout; do + command -v "$tool" + done + go version + docker info + df -h / + docker system df + helm version --short + kubectl version --client + yq --version + go mod download + mkdir -p "$LOG_DIR" + displayName: Check E2E prerequisites + timeoutInMinutes: 15 + + - task: AzureCLI@2 + displayName: Set up E2E environment + timeoutInMinutes: 180 + inputs: + azureSubscription: 'aks fleetnetworking' + scriptType: bash + scriptLocation: inlineScript + addSpnToEnvironment: false + visibleAzLogin: false + keepAzSessionActive: true + inlineScript: | + set -euo pipefail + actual=$(az account show --query id -o tsv) + if [[ "$actual" != "$AZURE_SUBSCRIPTION_ID" ]]; then + echo "error: service connection subscription does not match the E2E subscription" >&2 + exit 1 + fi + exists=$(az group exists --subscription "$AZURE_SUBSCRIPTION_ID" -n "$AZURE_RESOURCE_GROUP") + if [[ "$exists" != false ]]; then + echo "error: refusing to reuse resource group $AZURE_RESOURCE_GROUP" >&2 + exit 1 + fi + echo "##vso[task.setvariable variable=e2eResourcesStarted]true" + make e2e-setup - - bash: | - set -euo pipefail - mkdir -p "$LOG_DIR" - printf 'subscription=%s\nresourceGroup=%s\ncommit=%s\n' \ - "$AZURE_SUBSCRIPTION_ID" "$AZURE_RESOURCE_GROUP" "$BUILD_SOURCEVERSION" \ - > "$LOG_DIR/environment.txt" - make e2e-collect-logs - displayName: Collect agent logs - condition: and(always(), eq(variables['e2eResourcesStarted'], 'true')) - timeoutInMinutes: 5 + - bash: | + set -euo pipefail + df -h / + docker buildx du --builder "$BUILDX_BUILDER_NAME" + docker buildx rm "$BUILDX_BUILDER_NAME" + docker system df + df -h / + displayName: Release image build cache before Go tests + timeoutInMinutes: 5 - - task: PublishPipelineArtifact@1 - displayName: Publish agent logs - condition: and(always(), eq(variables['e2eResourcesStarted'], 'true')) - timeoutInMinutes: 5 - inputs: - targetPath: '$(LOG_DIR)' - artifact: 'e2e-$(SCENARIO)-$(System.JobAttempt)' + - task: AzureCLI@2 + displayName: Run E2E tests + timeoutInMinutes: ${{ scenario.value.E2E_TEST_TIMEOUT }} + inputs: + azureSubscription: 'aks fleetnetworking' + scriptType: bash + scriptLocation: inlineScript + addSpnToEnvironment: false + visibleAzLogin: false + keepAzSessionActive: true + inlineScript: | + set -euo pipefail + if [[ "$ENABLE_TRAFFIC_MANAGER" == true || "$ENABLE_AZURE_FRONT_DOOR" == true ]]; then + sleep 5m + fi + make e2e-tests + env: + AZURE_TOKEN_CREDENTIALS: AzureCLICredential - - task: AzureCLI@2 - displayName: Clean up this run's resource group - condition: and(always(), eq(variables['e2eResourcesStarted'], 'true')) - timeoutInMinutes: 20 - inputs: - azureSubscription: 'aks fleetnetworking' - scriptType: bash - scriptLocation: inlineScript - addSpnToEnvironment: false - visibleAzLogin: false - keepAzSessionActive: true - inlineScript: | + - bash: | set -euo pipefail - expected="fleet-ado-$BUILD_BUILDID-$SCENARIO-$SYSTEM_JOBATTEMPT" - if [[ "$AZURE_RESOURCE_GROUP" != "$expected" ]]; then - echo "error: refusing cleanup outside this run's resource group" >&2 - exit 1 - fi - az account set --subscription "$AZURE_SUBSCRIPTION_ID" - exists=$(az group exists --subscription "$AZURE_SUBSCRIPTION_ID" -n "$expected") - if [[ "$exists" == false ]]; then - echo "Resource group $expected is already absent." - exit 0 - fi - group=$(az group show --subscription "$AZURE_SUBSCRIPTION_ID" -n "$expected" -o json) - jq -e --arg id "/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$expected" \ - '(.id | ascii_downcase) == ($id | ascii_downcase) and .tags.source == "fleet-networking"' \ - <<<"$group" > /dev/null - make e2e-cleanup - az group wait --subscription "$AZURE_SUBSCRIPTION_ID" -n "$expected" \ - --deleted --interval 15 --timeout 900 + mkdir -p "$LOG_DIR" + printf 'subscription=%s\nresourceGroup=%s\ncommit=%s\n' \ + "$AZURE_SUBSCRIPTION_ID" "$AZURE_RESOURCE_GROUP" "$BUILD_SOURCEVERSION" \ + > "$LOG_DIR/environment.txt" + make e2e-collect-logs + displayName: Collect agent logs + condition: and(always(), eq(variables['e2eResourcesStarted'], 'true')) + timeoutInMinutes: 5 + + - task: PublishPipelineArtifact@1 + displayName: Publish agent logs + condition: and(always(), eq(variables['e2eResourcesStarted'], 'true')) + timeoutInMinutes: 5 + inputs: + targetPath: '$(LOG_DIR)' + artifact: 'e2e-$(SCENARIO)-$(System.JobAttempt)' + + - task: AzureCLI@2 + displayName: Clean up this run's resource group + condition: and(always(), eq(variables['e2eResourcesStarted'], 'true')) + timeoutInMinutes: 20 + inputs: + azureSubscription: 'aks fleetnetworking' + scriptType: bash + scriptLocation: inlineScript + addSpnToEnvironment: false + visibleAzLogin: false + keepAzSessionActive: true + inlineScript: | + set -euo pipefail + expected="fleet-ado-$BUILD_BUILDID-$SCENARIO-$SYSTEM_JOBATTEMPT" + if [[ "$AZURE_RESOURCE_GROUP" != "$expected" ]]; then + echo "error: refusing cleanup outside this run's resource group" >&2 + exit 1 + fi + az account set --subscription "$AZURE_SUBSCRIPTION_ID" + exists=$(az group exists --subscription "$AZURE_SUBSCRIPTION_ID" -n "$expected") + if [[ "$exists" == false ]]; then + echo "Resource group $expected is already absent." + exit 0 + fi + group=$(az group show --subscription "$AZURE_SUBSCRIPTION_ID" -n "$expected" -o json) + jq -e --arg id "/subscriptions/$AZURE_SUBSCRIPTION_ID/resourceGroups/$expected" \ + '(.id | ascii_downcase) == ($id | ascii_downcase) and .tags.source == "fleet-networking"' \ + <<<"$group" > /dev/null + make e2e-cleanup + az group wait --subscription "$AZURE_SUBSCRIPTION_ID" -n "$expected" \ + --deleted --interval 15 --timeout 900 From fb0574a0db9f809f5a41ad908a881f0b0a74a491 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 15:25:25 +0000 Subject: [PATCH 03/11] ci: discover and reclaim hosted-agent disk space before E2E Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index ac71e238..2aa41209 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -79,6 +79,30 @@ jobs: inputs: version: '$(GoVersion)' + - bash: | + set -euo pipefail + df -h / + df -i / + docker system df + sudo -A du -xhd1 /usr/local/lib /usr/share /opt + for path in /usr/local/lib/android /usr/share/dotnet; do + if [[ -d "$path" ]]; then + sudo -A du -sh "$path" + else + echo "$path is not installed." + fi + done + displayName: Discover hosted-agent disk usage + timeoutInMinutes: 5 + + - bash: | + set -euo pipefail + echo "Removing unused Android and .NET SDKs from this disposable hosted agent." + sudo -A rm -rf -- /usr/local/lib/android /usr/share/dotnet + df -h / + displayName: Reclaim hosted-agent disk space + timeoutInMinutes: 5 + - bash: | set -euo pipefail for tool in az docker helm kubectl jq yq make timeout; do @@ -92,6 +116,12 @@ jobs: kubectl version --client yq --version go mod download + available_kib=$(df -Pk / | awk 'NR == 2 {print $4}') + echo "Available disk space after dependency download: $available_kib KiB" + if (( available_kib < 30 * 1024 * 1024 )); then + echo "##vso[task.logissue type=error]Need at least 30 GiB free before E2E setup." + exit 1 + fi mkdir -p "$LOG_DIR" displayName: Check E2E prerequisites timeoutInMinutes: 15 From 066e9623f099c37968ef59f7f6ae778eb061a686 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 15:35:51 +0000 Subject: [PATCH 04/11] ci: report disk space without blocking E2E setup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 2aa41209..8400bc30 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -116,12 +116,7 @@ jobs: kubectl version --client yq --version go mod download - available_kib=$(df -Pk / | awk 'NR == 2 {print $4}') - echo "Available disk space after dependency download: $available_kib KiB" - if (( available_kib < 30 * 1024 * 1024 )); then - echo "##vso[task.logissue type=error]Need at least 30 GiB free before E2E setup." - exit 1 - fi + df -h / mkdir -p "$LOG_DIR" displayName: Check E2E prerequisites timeoutInMinutes: 15 From 86d5b7ca5a8225b0757cdbb31f7fe491fe8727c7 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 15:39:27 +0000 Subject: [PATCH 05/11] ci: reclaim unused Swift, Miniconda and Docker images before E2E Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 8400bc30..40b27c15 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -85,7 +85,7 @@ jobs: df -i / docker system df sudo -A du -xhd1 /usr/local/lib /usr/share /opt - for path in /usr/local/lib/android /usr/share/dotnet; do + for path in /usr/local/lib/android /usr/share/dotnet /usr/share/swift /usr/share/miniconda; do if [[ -d "$path" ]]; then sudo -A du -sh "$path" else @@ -97,8 +97,10 @@ jobs: - bash: | set -euo pipefail - echo "Removing unused Android and .NET SDKs from this disposable hosted agent." - sudo -A rm -rf -- /usr/local/lib/android /usr/share/dotnet + echo "Removing unused Android, .NET, Swift and Miniconda tooling from this disposable hosted agent." + sudo -A rm -rf -- /usr/local/lib/android /usr/share/dotnet /usr/share/swift /usr/share/miniconda + docker image prune --all --force + docker system df df -h / displayName: Reclaim hosted-agent disk space timeoutInMinutes: 5 From a417e6a4f5fd7ff4586b7126b691bd4f842231a2 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 15:49:21 +0000 Subject: [PATCH 06/11] fix: normalize ADO E2E feature flags to lowercase Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 40b27c15..a569ece5 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -56,7 +56,10 @@ jobs: timeoutInMinutes: ${{ scenario.value.E2E_JOB_TIMEOUT }} cancelTimeoutInMinutes: 30 variables: - ${{ insert }}: ${{ scenario.value }} + SCENARIO: ${{ scenario.value.SCENARIO }} + AZURE_NETWORK_SETTING: ${{ scenario.value.AZURE_NETWORK_SETTING }} + ENABLE_TRAFFIC_MANAGER: ${{ lower(scenario.value.ENABLE_TRAFFIC_MANAGER) }} + ENABLE_AZURE_FRONT_DOOR: ${{ lower(scenario.value.ENABLE_AZURE_FRONT_DOOR) }} AZURE_SUBSCRIPTION_ID: '8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8' AZURE_RESOURCE_GROUP: 'fleet-ado-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' ENABLE_AFD_PRIVATE_LINK_AUTO_APPROVAL: '$(ENABLE_AZURE_FRONT_DOOR)' From d854e1cdbeb7b7a8eb12c4dd9393af1a90010a49 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 18:00:18 +0000 Subject: [PATCH 07/11] ci: move main and release E2E triggers to Azure Pipelines Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/e2e-tests.yml | 4 ---- .pipeline/e2e-tests.yaml | 8 ++++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index ecb8b5f0..18e9cab3 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -1,10 +1,6 @@ name: E2E Tests on: - push: - branches: - - main - tags: [ 'v*.*.*' ] workflow_dispatch: {} permissions: diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index a569ece5..c346ecb2 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -1,4 +1,8 @@ -trigger: none +trigger: + branches: + include: + - main + - release-* pr: none parameters: @@ -52,7 +56,7 @@ jobs: - ${{ each scenario in parameters.scenarios }}: - job: ${{ scenario.key }} displayName: Fleet networking E2E (${{ scenario.value.SCENARIO }}) - condition: and(succeeded(), ${{ eq(parameters.approveAzureResources, true) }}) + condition: and(succeeded(), or(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), ${{ eq(parameters.approveAzureResources, true) }})) timeoutInMinutes: ${{ scenario.value.E2E_JOB_TIMEOUT }} cancelTimeoutInMinutes: 30 variables: From 0504f1e2b7f94473aa29a0f97b69a19226ad535c Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 18:01:42 +0000 Subject: [PATCH 08/11] ci: match original E2E main and version-tag triggers Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index c346ecb2..a7c0789e 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -2,7 +2,9 @@ trigger: branches: include: - main - - release-* + tags: + include: + - v*.*.* pr: none parameters: From 5f8528df05112ca6616ce55699c4992ae30b440d Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 18:04:14 +0000 Subject: [PATCH 09/11] ci: remove temporary hosted-agent disk discovery Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index a7c0789e..80822178 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -88,22 +88,6 @@ jobs: inputs: version: '$(GoVersion)' - - bash: | - set -euo pipefail - df -h / - df -i / - docker system df - sudo -A du -xhd1 /usr/local/lib /usr/share /opt - for path in /usr/local/lib/android /usr/share/dotnet /usr/share/swift /usr/share/miniconda; do - if [[ -d "$path" ]]; then - sudo -A du -sh "$path" - else - echo "$path is not installed." - fi - done - displayName: Discover hosted-agent disk usage - timeoutInMinutes: 5 - - bash: | set -euo pipefail echo "Removing unused Android, .NET, Swift and Miniconda tooling from this disposable hosted agent." From 82d264b2bac9e623d2b59bebd3feb7094784ca12 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 18:14:34 +0000 Subject: [PATCH 10/11] ci: remove redundant E2E resource approval checkbox Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 80822178..7ae3da13 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -8,10 +8,6 @@ trigger: pr: none parameters: - - name: approveAzureResources - displayName: Approve billable provisioning and cleanup for all five E2E scenarios in the test subscription - type: boolean - default: false - name: scenarios type: object default: @@ -58,7 +54,6 @@ jobs: - ${{ each scenario in parameters.scenarios }}: - job: ${{ scenario.key }} displayName: Fleet networking E2E (${{ scenario.value.SCENARIO }}) - condition: and(succeeded(), or(in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), ${{ eq(parameters.approveAzureResources, true) }})) timeoutInMinutes: ${{ scenario.value.E2E_JOB_TIMEOUT }} cancelTimeoutInMinutes: 30 variables: From 4d482c0a8e750d7b7a335bf1d9837defb54b70a7 Mon Sep 17 00:00:00 2001 From: Wei Weng Date: Thu, 19 Nov 2026 18:16:26 +0000 Subject: [PATCH 11/11] ci: read E2E subscription from ADO pipeline variable Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .pipeline/e2e-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pipeline/e2e-tests.yaml b/.pipeline/e2e-tests.yaml index 7ae3da13..2a9bf5e0 100644 --- a/.pipeline/e2e-tests.yaml +++ b/.pipeline/e2e-tests.yaml @@ -61,7 +61,6 @@ jobs: AZURE_NETWORK_SETTING: ${{ scenario.value.AZURE_NETWORK_SETTING }} ENABLE_TRAFFIC_MANAGER: ${{ lower(scenario.value.ENABLE_TRAFFIC_MANAGER) }} ENABLE_AZURE_FRONT_DOOR: ${{ lower(scenario.value.ENABLE_AZURE_FRONT_DOOR) }} - AZURE_SUBSCRIPTION_ID: '8ecadfc9-d1a3-4ea4-b844-0d9f87e4d7c8' AZURE_RESOURCE_GROUP: 'fleet-ado-$(Build.BuildId)-$(SCENARIO)-$(System.JobAttempt)' ENABLE_AFD_PRIVATE_LINK_AUTO_APPROVAL: '$(ENABLE_AZURE_FRONT_DOOR)' RETAIN_AFD_E2E_SETUP: 'false' @@ -95,6 +94,7 @@ jobs: - bash: | set -euo pipefail + : "${AZURE_SUBSCRIPTION_ID:?Set AZURE_SUBSCRIPTION_ID as a non-secret ADO pipeline variable}" for tool in az docker helm kubectl jq yq make timeout; do command -v "$tool" done