Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sudo From test-binaries.yml #6472

Merged
merged 27 commits into from
Apr 19, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
19c89c7
Update dotnet-monitor-public.yml
kkeirstead Apr 17, 2024
73bd4fe
Update test-binaries.yml
kkeirstead Apr 17, 2024
555c079
Update test-binaries.yml
kkeirstead Apr 18, 2024
f1421b3
Update test-binaries.yml
kkeirstead Apr 18, 2024
e0c814d
Update test-binaries.yml
kkeirstead Apr 18, 2024
551404e
Update test-binaries.yml
kkeirstead Apr 18, 2024
adc7fa3
Update test-binaries.yml
kkeirstead Apr 18, 2024
305a4aa
Update test-binaries.yml
kkeirstead Apr 18, 2024
c9b34af
Update test-binaries.yml
kkeirstead Apr 18, 2024
058b8c7
Update test-binaries.yml
kkeirstead Apr 18, 2024
b92bb48
Update test-binaries.yml
kkeirstead Apr 18, 2024
071a06c
Update test-binaries.yml
kkeirstead Apr 18, 2024
d156ce9
Update test-binaries.yml
kkeirstead Apr 18, 2024
66006ab
Update dotnet-monitor-public.yml
kkeirstead Apr 18, 2024
b0ec001
Update test-binaries.yml
kkeirstead Apr 18, 2024
db0f2f0
Update test-binaries.yml
kkeirstead Apr 18, 2024
56125c6
Update test-binaries.yml
kkeirstead Apr 18, 2024
775f382
Update test-binaries.yml
kkeirstead Apr 18, 2024
10f8d83
Merge branch 'main' into kkeirstead/TestBinariesFailures
kkeirstead Apr 18, 2024
b6bf951
Update test-binaries.yml
kkeirstead Apr 18, 2024
5f4ee59
Update test-binaries.yml
kkeirstead Apr 18, 2024
7cd4ed7
Update test-binaries.yml
kkeirstead Apr 18, 2024
e646b3c
Update test-binaries.yml
kkeirstead Apr 18, 2024
b5cff68
Update test-binaries.yml
kkeirstead Apr 19, 2024
7f979de
Update test-binaries.yml
kkeirstead Apr 19, 2024
0c961f3
Update test-binaries.yml
kkeirstead Apr 19, 2024
babd8e7
Update test-binaries.yml
kkeirstead Apr 19, 2024
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
63 changes: 44 additions & 19 deletions eng/pipelines/jobs/test-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,27 +81,52 @@ jobs:
- ${{ if ne(parameters.osGroup, 'Linux_Musl')}}:
# Linux builds (of all variants) run in Mariner containers and do not include pwsh by default
- ${{ if eq(parameters.osGroup, 'Linux') }}:
- script: sudo -n tdnf install -y --refresh powershell
- script: |
$(Build.SourcesDirectory)/restore.sh
$(Build.SourcesDirectory)/.dotnet/dotnet tool install --global PowerShell
echo "##vso[task.prependpath]/home/cloudtest_azpcontainer/.dotnet/tools"
displayName: Install pwsh

# Calculate the fully qualified Nodejs version first so that any new releases will result in a new cache key
- pwsh: eng/helix/GetNodejsVersion.ps1
-MajorVersion $(NodeMajorVersion)
-TaskVariableName 'FqNodejsVersion'
displayName: Calculate Node.js version

- task: Cache@2
displayName: Node.js Cache
inputs:
# Wrap FqNodejsVersion in quotes to prevent it being interpreted as a file
key: 'nodejs | ${{ parameters.osGroup }} | ${{ parameters.architecture }} | "$(FqNodejsVersion)"'
path: $(HelixNodejsPayloadPath)

- pwsh: eng/helix/InstallNodejs.ps1
-Version $(FqNodejsVersion)
-Architecture ${{ parameters.architecture }}
-DestinationFolder "$(HelixNodejsPayloadPath)"
displayName: Hydrate Node.js Installation
# Calculate the fully qualified Nodejs version first so that any new releases will result in a new cache key
- script: |
pwsh ../eng/helix/GetNodejsVersion.ps1 -MajorVersion $(NodeMajorVersion) -TaskVariableName 'FqNodejsVersion'
displayName: Calculate Node.js version Linux
workingDirectory: "$(Build.SourcesDirectory)/.dotnet"
env:
DOTNET_ROOT: "$(Build.SourcesDirectory)/.dotnet"

- task: Cache@2
displayName: Node.js Cache Linux
inputs:
# Wrap FqNodejsVersion in quotes to prevent it being interpreted as a file
key: 'nodejs | ${{ parameters.osGroup }} | ${{ parameters.architecture }} | "$(FqNodejsVersion)"'
path: $(HelixNodejsPayloadPath)

- script: |
pwsh ../eng/helix/InstallNodejs.ps1 -Version $(FqNodejsVersion) -Architecture ${{ parameters.architecture }} -DestinationFolder "$(HelixNodejsPayloadPath)"
displayName: Hydrate Node.js Installation Linux
workingDirectory: "$(Build.SourcesDirectory)/.dotnet"
env:
DOTNET_ROOT: "$(Build.SourcesDirectory)/.dotnet"

- ${{ else }}:
- pwsh: eng/helix/GetNodejsVersion.ps1
-MajorVersion $(NodeMajorVersion)
-TaskVariableName 'FqNodejsVersion'
displayName: Calculate Node.js version Non-Linux

- task: Cache@2
displayName: Node.js Cache Non-Linux
inputs:
# Wrap FqNodejsVersion in quotes to prevent it being interpreted as a file
key: 'nodejs | ${{ parameters.osGroup }} | ${{ parameters.architecture }} | "$(FqNodejsVersion)"'
path: $(HelixNodejsPayloadPath)

- pwsh: eng/helix/InstallNodejs.ps1
-Version $(FqNodejsVersion)
-Architecture ${{ parameters.architecture }}
-DestinationFolder "$(HelixNodejsPayloadPath)"
displayName: Hydrate Node.js Installation Non-Linux

- ${{ else }}:
- ${{ if ne(parameters.osGroup, 'Windows') }}:
Expand Down