actions / runner-images

GitHub Actions runner images
MIT License
9.17k stars 2.84k forks source link

ToolSet installs arm64 instead of x64 #9683

Closed R4vio closed 1 month ago

R4vio commented 1 month ago

Description

My packer build is failing due to the packages being installed for arm64 while the tests expect an x64 version of npm and go.

Platforms affected

Runner images affected

Image version and build link

Im using tag: ubuntu20/20240324.1

Is it regression?

No

Expected behavior

Downloading x64 go and npm.

Actual behavior

Downloading arm64 go and npm


2024-04-14T21:45:21.9516624Z     azure-arm.build_image: Installing node 16.* x64...
2024-04-14T21:45:21.9520065Z     azure-arm.build_image: Download node-16.20.2-linux-x64.tar.gz
2024-04-14T21:45:21.9522518Z     azure-arm.build_image: Downloading package from https://github.com/actions/node-versions/releases/download/16.20.2-5819740093/node-16.20.2-linux-x64.tar.gz to /tmp/node-16.20.2-linux-x64.tar.gz...
2024-04-14T21:45:22.5294226Z     azure-arm.build_image: Package downloaded in 0.58 seconds
2024-04-14T21:45:22.5295426Z     azure-arm.build_image: Extract node-16.20.2-linux-x64.tar.gz content...
2024-04-14T21:45:24.1766217Z     azure-arm.build_image: Invoke installation script...
2024-04-14T21:45:24.1832724Z     azure-arm.build_image: Check if Node.js hostedtoolcache folder exist...
2024-04-14T21:45:24.1849545Z     azure-arm.build_image: Delete Node.js 16.20.2 if installed
2024-04-14T21:45:24.1850526Z     azure-arm.build_image: Create Node.js 16.20.2 folder
2024-04-14T21:45:24.1859740Z     azure-arm.build_image: Copy Node.js binaries to hostedtoolcache folder
2024-04-14T21:45:25.0311826Z     azure-arm.build_image: Create complete file
2024-04-14T21:45:25.0330310Z     azure-arm.build_image: Installing node 18.* x64...
2024-04-14T21:45:25.0333822Z     azure-arm.build_image: Download node-18.20.2-linux-arm64.tar.gz
2024-04-14T21:45:25.0344733Z     azure-arm.build_image: Downloading package from https://github.com/actions/node-versions/releases/download/18.20.2-8647739097/node-18.20.2-linux-arm64.tar.gz to /tmp/node-18.20.2-linux-arm64.tar.gz...
2024-04-14T21:45:26.9840060Z     azure-arm.build_image: Package downloaded in 1.95 seconds
2024-04-14T21:45:26.9845737Z     azure-arm.build_image: Extract node-18.20.2-linux-arm64.tar.gz content...
2024-04-14T21:45:29.5920674Z     azure-arm.build_image: Invoke installation script...
2024-04-14T21:45:29.5989746Z     azure-arm.build_image: Check if Node.js hostedtoolcache folder exist...
2024-04-14T21:45:29.6010130Z     azure-arm.build_image: Delete Node.js 18.20.2 if installed
2024-04-14T21:45:29.6011153Z     azure-arm.build_image: Create Node.js 18.20.2 folder
2024-04-14T21:45:29.6012200Z     azure-arm.build_image: Copy Node.js binaries to hostedtoolcache folder
2024-04-14T21:45:30.9235602Z     azure-arm.build_image: Create complete file
2024-04-14T21:45:30.9261012Z     azure-arm.build_image: Installing node 20.* x64...
2024-04-14T21:45:30.9263022Z     azure-arm.build_image: Download node-20.12.2-linux-arm64.tar.gz
2024-04-14T21:45:30.9265382Z     azure-arm.build_image: Downloading package from https://github.com/actions/node-versions/releases/download/20.12.2-8647736879/node-20.12.2-linux-arm64.tar.gz to /tmp/node-20.12.2-linux-arm64.tar.gz...
2024-04-14T21:45:32.1215657Z     azure-arm.build_image: Package downloaded in 1.2 seconds
2024-04-14T21:45:32.1216736Z     azure-arm.build_image: Extract node-20.12.2-linux-arm64.tar.gz content...
2024-04-14T21:45:33.2395315Z     azure-arm.build_image: Invoke installation script...
2024-04-14T21:45:33.2468507Z     azure-arm.build_image: Check if Node.js hostedtoolcache folder exist...
2024-04-14T21:45:33.2471442Z     azure-arm.build_image: Delete Node.js 20.12.2 if installed
2024-04-14T21:45:33.2479065Z     azure-arm.build_image: Create Node.js 20.12.2 folder
2024-04-14T21:45:33.4405935Z     azure-arm.build_image: Copy Node.js binaries to hostedtoolcache folder
2024-04-14T21:45:33.6590774Z     azure-arm.build_image: Create complete file
2024-04-14T21:45:33.8922722Z     azure-arm.build_image: Installing go 1.20.* x64...
2024-04-14T21:45:33.8926261Z     azure-arm.build_image: Download go-1.20.14-linux-x64.tar.gz
2024-04-14T21:45:33.8930339Z     azure-arm.build_image: Downloading package from https://github.com/actions/go-versions/releases/download/1.20.14-7809684997/go-1.20.14-linux-x64.tar.gz to /tmp/go-1.20.14-linux-x64.tar.gz...
2024-04-14T21:45:37.6354356Z     azure-arm.build_image: Package downloaded in 3.74 seconds
2024-04-14T21:45:37.6356096Z     azure-arm.build_image: Extract go-1.20.14-linux-x64.tar.gz content...
2024-04-14T21:45:39.7026333Z     azure-arm.build_image: Invoke installation script...
2024-04-14T21:45:39.7092682Z     azure-arm.build_image: Check if Go hostedtoolcache folder exist...
2024-04-14T21:45:39.7101981Z     azure-arm.build_image: Delete Go 1.20.14 if installed
2024-04-14T21:45:39.7114601Z     azure-arm.build_image: Create Go 1.20.14 folder
2024-04-14T21:45:39.7119943Z     azure-arm.build_image: Copy Go binaries to hostedtoolcache folder
2024-04-14T21:45:40.8686585Z     azure-arm.build_image: Create complete file
2024-04-14T21:45:40.8712026Z     azure-arm.build_image: Installing go 1.21.* x64...
2024-04-14T21:45:40.8713581Z     azure-arm.build_image: Download go-1.21.9-linux-arm64.tar.gz
2024-04-14T21:45:40.8716435Z     azure-arm.build_image: Downloading package from https://github.com/actions/go-versions/releases/download/1.21.9-8548849157/go-1.21.9-linux-arm64.tar.gz to /tmp/go-1.21.9-linux-arm64.tar.gz...
2024-04-14T21:45:44.0977945Z     azure-arm.build_image: Package downloaded in 3.23 seconds
2024-04-14T21:45:44.0979269Z     azure-arm.build_image: Extract go-1.21.9-linux-arm64.tar.gz content...
2024-04-14T21:45:46.9530771Z     azure-arm.build_image: Invoke installation script...
2024-04-14T21:45:46.9606102Z     azure-arm.build_image: Check if Go hostedtoolcache folder exist...
2024-04-14T21:45:46.9607817Z     azure-arm.build_image: Delete Go 1.21.9 if installed
2024-04-14T21:45:46.9609279Z     azure-arm.build_image: Create Go 1.21.9 folder
2024-04-14T21:45:46.9620790Z     azure-arm.build_image: Copy Go binaries to hostedtoolcache folder
2024-04-14T21:45:49.0197329Z     azure-arm.build_image: Create complete file
2024-04-14T21:45:49.0221016Z     azure-arm.build_image: Installing go 1.22.* x64...
2024-04-14T21:45:49.0225832Z     azure-arm.build_image: Download go-1.22.2-linux-arm64.tar.gz
2024-04-14T21:45:49.0229443Z     azure-arm.build_image: Downloading package from https://github.com/actions/go-versions/releases/download/1.22.2-8548848001/go-1.22.2-linux-arm64.tar.gz to /tmp/go-1.22.2-linux-arm64.tar.gz...
2024-04-14T21:45:51.4430992Z     azure-arm.build_image: Package downloaded in 2.42 seconds
2024-04-14T21:45:51.4432424Z     azure-arm.build_image: Extract go-1.22.2-linux-arm64.tar.gz content...
2024-04-14T21:45:54.0532121Z     azure-arm.build_image: Invoke installation script...
2024-04-14T21:45:54.0603673Z     azure-arm.build_image: Check if Go hostedtoolcache folder exist...
2024-04-14T21:45:54.0616415Z     azure-arm.build_image: Delete Go 1.22.2 if installed
2024-04-14T21:45:54.0617575Z     azure-arm.build_image: Create Go 1.22.2 folder
2024-04-14T21:45:54.0618739Z     azure-arm.build_image: Copy Go binaries to hostedtoolcache folder
2024-04-14T21:45:57.5360556Z     azure-arm.build_image: Create complete file
2024-04-14T21:45:59.1566422Z ==> azure-arm.build_image: Provisioning with shell script: runner-images/images/ubuntu/templates/../scripts/build/Configure-Toolset.ps1
2024-04-14T21:46:01.0696626Z     azure-arm.build_image: Configure toolcache tools environment...
2024-04-14T21:46:01.0951372Z     azure-arm.build_image: Set go 1.20.* environment variable...
2024-04-14T21:46:01.1323148Z     azure-arm.build_image: GOROOT_1_20_X64=/opt/hostedtoolcache/go/1.20.14/x64
2024-04-14T21:46:01.1324320Z     azure-arm.build_image: Set go 1.21.* environment variable...
2024-04-14T21:46:01.1355073Z     azure-arm.build_image: GOROOT_1_21_X64=/opt/hostedtoolcache/go/1.21.9/x64
2024-04-14T21:46:01.1356546Z     azure-arm.build_image: Set go 1.22.* environment variable...
2024-04-14T21:46:01.1376486Z     azure-arm.build_image: GOROOT_1_22_X64=/opt/hostedtoolcache/go/1.22.2/x64
2024-04-14T21:46:01.1458747Z     azure-arm.build_image: Invoke ln -s /opt/hostedtoolcache/go/1.21.9/x64/bin/* /usr/bin/ command for default go 1.21.* ...
2024-04-14T21:46:01.5113252Z     azure-arm.build_image: Pester v5.5.0
2024-04-14T21:46:01.5300819Z     azure-arm.build_image:
2024-04-14T21:46:01.5302457Z     azure-arm.build_image: Starting discovery in 1 files.
2024-04-14T21:46:01.9966250Z     azure-arm.build_image: Discovery found 57 tests in 436ms.
2024-04-14T21:46:02.0062881Z     azure-arm.build_image: Filter 'FullName' set to ('Toolset').
2024-04-14T21:46:02.0068308Z     azure-arm.build_image: Filters selected 57 tests to run.
2024-04-14T21:46:02.0164048Z     azure-arm.build_image: Running tests.
2024-04-14T21:46:02.0313207Z     azure-arm.build_image:
2024-04-14T21:46:02.0318104Z     azure-arm.build_image: Running tests from '/imagegeneration/tests/Toolset.Tests.ps1'
2024-04-14T21:46:02.1915175Z     azure-arm.build_image: Describing Toolset
2024-04-14T21:46:02.1921692Z     azure-arm.build_image:  Context Python
2024-04-14T21:46:02.3219317Z     azure-arm.build_image:    [+] 3.7.* version folder exists 124ms (82ms|42ms)
2024-04-14T21:46:02.3301176Z     azure-arm.build_image:    [+] Validate python 5ms (3ms|2ms)
2024-04-14T21:46:02.3371246Z     azure-arm.build_image:    [+] Validate bin/pip 4ms (3ms|2ms)
2024-04-14T21:46:02.3451481Z     azure-arm.build_image:    [+] 3.8.* version folder exists 5ms (3ms|2ms)
2024-04-14T21:46:02.3556317Z     azure-arm.build_image:    [+] Validate python 6ms (4ms|2ms)
2024-04-14T21:46:02.4238129Z     azure-arm.build_image:    [+] Validate bin/pip 4ms (3ms|2ms)
2024-04-14T21:46:02.4239262Z     azure-arm.build_image:    [+] 3.9.* version folder exists 5ms (3ms|2ms)
2024-04-14T21:46:02.4242718Z     azure-arm.build_image:    [+] Validate python 4ms (3ms|2ms)
2024-04-14T21:46:02.4244208Z     azure-arm.build_image:    [+] Validate bin/pip 4ms (3ms|2ms)
2024-04-14T21:46:02.4245734Z     azure-arm.build_image:    [+] 3.10.* version folder exists 9ms (6ms|3ms)
2024-04-14T21:46:02.4247309Z     azure-arm.build_image:    [+] Validate python 7ms (4ms|3ms)
2024-04-14T21:46:02.4318807Z     azure-arm.build_image:    [+] Validate bin/pip 7ms (4ms|3ms)
2024-04-14T21:46:02.4329616Z     azure-arm.build_image:    [+] 3.11.* version folder exists 8ms (5ms|3ms)
2024-04-14T21:46:02.4451569Z     azure-arm.build_image:    [+] Validate python 8ms (5ms|3ms)
2024-04-14T21:46:02.4620205Z     azure-arm.build_image:    [+] Validate bin/pip 13ms (10ms|3ms)
2024-04-14T21:46:02.4805102Z     azure-arm.build_image:    [+] 3.12.* version folder exists 10ms (7ms|3ms)
2024-04-14T21:46:02.5252319Z     azure-arm.build_image:    [+] Validate python 16ms (5ms|11ms)
2024-04-14T21:46:02.6115934Z     azure-arm.build_image:    [+] Validate bin/pip 79ms (66ms|13ms)
2024-04-14T21:46:02.6554244Z     azure-arm.build_image:  Context PyPy
2024-04-14T21:46:02.6659974Z     azure-arm.build_image:    [+] 2.7.* version folder exists 10ms (6ms|4ms)
2024-04-14T21:46:02.6768897Z     azure-arm.build_image:    [+] Validate bin/python 7ms (4ms|2ms)
2024-04-14T21:46:02.6889557Z     azure-arm.build_image:    [+] Validate bin/pip 7ms (4ms|3ms)
2024-04-14T21:46:02.6981456Z     azure-arm.build_image:    [+] 3.6.* version folder exists 6ms (4ms|2ms)
2024-04-14T21:46:02.7066062Z     azure-arm.build_image:    [+] Validate bin/python 5ms (3ms|2ms)
2024-04-14T21:46:02.7176703Z     azure-arm.build_image:    [+] Validate bin/pip 6ms (4ms|3ms)
2024-04-14T21:46:02.7300898Z     azure-arm.build_image:    [+] 3.7.* version folder exists 8ms (6ms|3ms)
2024-04-14T21:46:02.7412196Z     azure-arm.build_image:    [+] Validate bin/python 7ms (4ms|3ms)
2024-04-14T21:46:02.7528958Z     azure-arm.build_image:    [+] Validate bin/pip 7ms (4ms|3ms)
2024-04-14T21:46:02.7648169Z     azure-arm.build_image:    [+] 3.8.* version folder exists 8ms (5ms|2ms)
2024-04-14T21:46:02.7725559Z     azure-arm.build_image:    [+] Validate bin/python 5ms (3ms|3ms)
2024-04-14T21:46:02.7793397Z     azure-arm.build_image:    [+] Validate bin/pip 4ms (3ms|2ms)
2024-04-14T21:46:02.7866455Z     azure-arm.build_image:    [+] 3.9.* version folder exists 5ms (3ms|2ms)
2024-04-14T21:46:02.7951031Z     azure-arm.build_image:    [+] Validate bin/python 6ms (4ms|2ms)
2024-04-14T21:46:02.8107537Z     azure-arm.build_image:    [+] Validate bin/pip 11ms (4ms|6ms)
2024-04-14T21:46:02.8231929Z     azure-arm.build_image:    [+] 3.10.* version folder exists 8ms (5ms|3ms)
2024-04-14T21:46:02.8333618Z     azure-arm.build_image:    [+] Validate bin/python 7ms (4ms|3ms)
2024-04-14T21:46:02.8562463Z     azure-arm.build_image:    [+] Validate bin/pip 6ms (4ms|2ms)
2024-04-14T21:46:02.8671405Z     azure-arm.build_image:  Context node
2024-04-14T21:46:02.8785137Z     azure-arm.build_image:    [+] 16.*.* version folder exists 9ms (6ms|4ms)
2024-04-14T21:46:02.8896561Z     azure-arm.build_image:    [+] Validate bin/node 7ms (4ms|3ms)
2024-04-14T21:46:02.9005581Z     azure-arm.build_image:    [+] Validate bin/npm 7ms (4ms|3ms)
2024-04-14T21:46:02.9129432Z     azure-arm.build_image:    [+] 18.*.* version folder exists 8ms (6ms|3ms)
2024-04-14T21:46:03.2476094Z     azure-arm.build_image:    [-] Validate bin/node 232ms (229ms|4ms)
2024-04-14T21:46:03.2746190Z     azure-arm.build_image:     Expected path '/opt/hostedtoolcache/node/18.20.2/x64/bin/node' to exist, but it did not exist.
2024-04-14T21:46:03.2748585Z     azure-arm.build_image:     at $ExecutablePath | Should -Exist, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.2750389Z     azure-arm.build_image:     at <ScriptBlock>, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.2950643Z     azure-arm.build_image:    [-] Validate bin/npm 11ms (8ms|3ms)
2024-04-14T21:46:03.2973109Z     azure-arm.build_image:     Expected path '/opt/hostedtoolcache/node/18.20.2/x64/bin/npm' to exist, but it did not exist.
2024-04-14T21:46:03.2975247Z     azure-arm.build_image:     at $ExecutablePath | Should -Exist, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.2977019Z     azure-arm.build_image:     at <ScriptBlock>, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.3075000Z     azure-arm.build_image:    [+] 20.*.* version folder exists 8ms (5ms|3ms)
2024-04-14T21:46:03.3261243Z     azure-arm.build_image:    [-] Validate bin/node 10ms (8ms|3ms)
2024-04-14T21:46:03.3288915Z     azure-arm.build_image:     Expected path '/opt/hostedtoolcache/node/20.12.2/x64/bin/node' to exist, but it did not exist.
2024-04-14T21:46:03.3290751Z     azure-arm.build_image:     at $ExecutablePath | Should -Exist, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.3291995Z     azure-arm.build_image:     at <ScriptBlock>, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.3456715Z     azure-arm.build_image:    [-] Validate bin/npm 10ms (7ms|2ms)
2024-04-14T21:46:03.3478739Z     azure-arm.build_image:     Expected path '/opt/hostedtoolcache/node/20.12.2/x64/bin/npm' to exist, but it did not exist.
2024-04-14T21:46:03.3480984Z     azure-arm.build_image:     at $ExecutablePath | Should -Exist, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.3485369Z     azure-arm.build_image:     at <ScriptBlock>, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.3578123Z     azure-arm.build_image:  Context go
2024-04-14T21:46:03.3672395Z     azure-arm.build_image:    [+] 1.20.* version folder exists 8ms (5ms|4ms)
2024-04-14T21:46:03.3773398Z     azure-arm.build_image:    [+] Validate bin/go 6ms (4ms|2ms)
2024-04-14T21:46:03.3884115Z     azure-arm.build_image:    [+] 1.21.* version folder exists 7ms (5ms|2ms)
2024-04-14T21:46:03.4211157Z     azure-arm.build_image:    [-] Validate bin/go 24ms (21ms|2ms)
2024-04-14T21:46:03.4293999Z     azure-arm.build_image:     Expected path '/opt/hostedtoolcache/go/1.21.9/x64/bin/go' to exist, but it did not exist.
2024-04-14T21:46:03.4301581Z     azure-arm.build_image:     at $ExecutablePath | Should -Exist, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.4302542Z     azure-arm.build_image:     at <ScriptBlock>, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.4574591Z     azure-arm.build_image:    [+] 1.22.* version folder exists 8ms (5ms|2ms)
2024-04-14T21:46:03.4744608Z     azure-arm.build_image:    [-] Validate bin/go 9ms (7ms|2ms)
2024-04-14T21:46:03.4770281Z     azure-arm.build_image:     Expected path '/opt/hostedtoolcache/go/1.22.2/x64/bin/go' to exist, but it did not exist.
2024-04-14T21:46:03.4773185Z     azure-arm.build_image:     at $ExecutablePath | Should -Exist, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.4774452Z     azure-arm.build_image:     at <ScriptBlock>, /imagegeneration/tests/Toolset.Tests.ps1:58
2024-04-14T21:46:03.4858786Z     azure-arm.build_image:  Context Ruby
2024-04-14T21:46:03.4951555Z     azure-arm.build_image:    [+] 3.0.* version folder exists 8ms (5ms|3ms)
2024-04-14T21:46:03.5029232Z     azure-arm.build_image:    [+] Validate bin/ruby 5ms (3ms|2ms)
2024-04-14T21:46:03.5092580Z     azure-arm.build_image:    [+] 3.1.* version folder exists 4ms (3ms|1ms)
2024-04-14T21:46:03.5144707Z     azure-arm.build_image:    [+] Validate bin/ruby 3ms (2ms|1ms)
2024-04-14T21:46:03.5205463Z     azure-arm.build_image:  Context CodeQL
2024-04-14T21:46:03.5251376Z     azure-arm.build_image:    [+] *.* version folder exists 5ms (3ms|2ms)
2024-04-14T21:46:03.5305322Z     azure-arm.build_image:    [+] Validate codeql/codeql 3ms (2ms|1ms)
2024-04-14T21:46:03.7124606Z     azure-arm.build_image: Tests completed in 2.02s
2024-04-14T21:46:03.7331817Z     azure-arm.build_image: Tests Passed: 51, Failed: 6, Skipped: 0 NotRun: 0```

### Repro steps

Run ./runner-images/images.CI/linux-and-win/build-image.ps1 `
with -TemplatePath ./runner-images/images/ubuntu/templates/ubuntu-20.04.pkr.hcl
MaksimZhukov commented 1 month ago

Hello @R4vio! The fix for the issue was merged, please sync your main branch. Thank you!