From 9819cf40d3f1e9e11326c7fa0eed5125a7947020 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 19:10:57 +0000 Subject: [PATCH 1/2] Initial plan From db16704daf17bae20cbdd5170963eafba27baa8b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 30 Mar 2026 19:17:42 +0000 Subject: [PATCH 2/2] Fix network isolation: remove package installation steps from 1ES runner workflows Agent-Logs-Url: https://github.com/microsoft/azure-linux-image-tools/sessions/35c94823-9252-4094-9b23-5f484d51ea15 Co-authored-by: liulanze <86434077+liulanze@users.noreply.github.com> --- .github/workflows/tests-functional.yml | 46 ------------------- .../workflows/tests-vmtests-osmodifier.yml | 46 ------------------- .github/workflows/tests-vmtests.yml | 46 ------------------- 3 files changed, 138 deletions(-) diff --git a/.github/workflows/tests-functional.yml b/.github/workflows/tests-functional.yml index a19c81929..231494c92 100644 --- a/.github/workflows/tests-functional.yml +++ b/.github/workflows/tests-functional.yml @@ -18,9 +18,6 @@ on: required: true type: string -env: - EXPECTED_GO_VERSION: "1.25.0" - jobs: tests-functional: name: Functional test suite - ${{ inputs.testDistro }} on ${{ inputs.hostDistro }} ${{ inputs.hostArch }} @@ -33,55 +30,12 @@ jobs: id-token: write environment: public steps: - - name: setup go 1.x - uses: actions/setup-go@v6 - with: - go-version: "~${{ env.EXPECTED_GO_VERSION }}" - - name: Checkout uses: actions/checkout@v6 with: path: repo persist-credentials: false - - name: Install prerequisites (AZL3) - if: inputs.hostDistro == 'azl3' - run: | - set -eux - - # Install Image Customizer prerequisities. - PACKAGES="qemu-img rpm coreutils util-linux systemd openssl \ - sed createrepo_c squashfs-tools cdrkit e2fsprogs dosfstools \ - xfsprogs btrfs-progs zstd veritysetup grub2 binutils lsof \ - git azure-cli systemd-ukify" - - # grub2-pc is only available on x86. - if [[ "$HOST_ARCH" == "amd64" ]]; then - PACKAGES+=" grub2-pc" - fi - - sudo ./repo/.github/workflows/scripts/retry.sh 5 5 \ - tdnf install -y $PACKAGES - - sudo tdnf list installed - env: - HOST_ARCH: ${{ inputs.hostArch }} - - - name: Install prerequisites (Ubuntu 24.04) - if: inputs.hostDistro == 'ubuntu2404' - run: | - set -eux - - # Install Image Customizer prerequisities. - sudo apt list --installed - sudo apt update -y - - sudo apt -y install qemu-utils rpm coreutils util-linux mount fdisk udev openssl \ - sed createrepo-c squashfs-tools genisoimage e2fsprogs dosfstools \ - xfsprogs btrfs-progs zstd cryptsetup-bin grub2-common binutils lsof systemd-ukify - - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - - name: Azure Login uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0 with: diff --git a/.github/workflows/tests-vmtests-osmodifier.yml b/.github/workflows/tests-vmtests-osmodifier.yml index fad9c3b23..318fa0c52 100644 --- a/.github/workflows/tests-vmtests-osmodifier.yml +++ b/.github/workflows/tests-vmtests-osmodifier.yml @@ -15,9 +15,6 @@ on: required: true type: string -env: - EXPECTED_GO_VERSION: "1.25.0" - jobs: tests-osmodifier: name: Tests osmodifier VMTests suite - ${{ inputs.hostDistro }} ${{ inputs.hostArch }} @@ -30,55 +27,12 @@ jobs: id-token: write environment: public steps: - - name: Setup Go toolchain - uses: actions/setup-go@v6 - with: - go-version: "~${{ env.EXPECTED_GO_VERSION }}" - - name: Checkout uses: actions/checkout@v6 with: path: repo persist-credentials: false - - name: Install prerequisites (AZL3) - if: inputs.hostDistro == 'azl3' - run: | - set -eux - - sudo ./repo/.github/workflows/scripts/retry.sh 5 5 \ - tdnf install -y \ - libvirt libvirt-daemon libvirt-daemon-config-network \ - libvirt-daemon-kvm libvirt-devel qemu-kvm qemu-img python3-libvirt \ - python3-devel edk2-ovmf \ - azure-cli - - sudo tdnf list installed - - sudo systemctl restart libvirtd - sudo systemctl status libvirtd - - - name: Install prerequisites (Ubuntu 24.04) - if: inputs.hostDistro == 'ubuntu2404' - run: | - set -eux - - sudo apt update -y - sudo apt -y install python3-venv python3-pip python3-dev \ - libvirt-dev libvirt-daemon libvirt-daemon-system libvirt-clients \ - qemu-kvm virt-manager - - # Install arm64 specific - if [[ "$HOST_ARCH" == "arm64" ]]; then - sudo apt -y install qemu-system-arm qemu-efi-aarch64 ovmf seabios - fi - - sudo apt list --installed - - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - env: - HOST_ARCH: ${{ inputs.hostArch }} - - name: Azure Login uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0 with: diff --git a/.github/workflows/tests-vmtests.yml b/.github/workflows/tests-vmtests.yml index aae2b4c5f..f8c6915a6 100644 --- a/.github/workflows/tests-vmtests.yml +++ b/.github/workflows/tests-vmtests.yml @@ -15,9 +15,6 @@ on: required: true type: string -env: - EXPECTED_GO_VERSION: "1.25.0" - jobs: tests-vmtests: name: Tests imagecustomizer VMTests suite - ${{ inputs.hostDistro }} ${{ inputs.hostArch }} @@ -30,55 +27,12 @@ jobs: id-token: write environment: public steps: - - name: setup go 1.x - uses: actions/setup-go@v6 - with: - go-version: "~${{ env.EXPECTED_GO_VERSION }}" - - name: Checkout uses: actions/checkout@v6 with: path: repo persist-credentials: false - - name: Install prerequisites (AZL3) - if: inputs.hostDistro == 'azl3' - run: | - set -eux - - sudo ./repo/.github/workflows/scripts/retry.sh 5 5 \ - tdnf install -y \ - libvirt libvirt-daemon libvirt-daemon-config-network \ - libvirt-daemon-kvm libvirt-devel qemu-kvm qemu-img python3-libvirt \ - python3-devel edk2-ovmf \ - azure-cli - - sudo tdnf list installed - - sudo systemctl restart libvirtd - sudo systemctl status libvirtd - - - name: Install prerequisites (Ubuntu 24.04) - if: inputs.hostDistro == 'ubuntu2404' - run: | - set -eux - - sudo apt update -y - sudo apt -y install python3-venv python3-pip python3-dev \ - libvirt-dev libvirt-daemon libvirt-daemon-system libvirt-clients \ - qemu-kvm virt-manager - - # Install arm64 specific - if [[ "$HOST_ARCH" == "arm64" ]]; then - sudo apt -y install qemu-system-arm qemu-efi-aarch64 ovmf seabios - fi - - sudo apt list --installed - - curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash - env: - HOST_ARCH: ${{ inputs.hostArch }} - - name: Azure Login uses: azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43 # v3.0.0 with: