Skip to content

Commit

Permalink
don't run with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Jan 24, 2025
1 parent ddbfdf3 commit b4061d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions eng/pipeline/stages/run-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ stages:
}
eng/run.ps1 cmdscan -envprefix GO_CMDSCAN_RULE_ -successvar TEST_BUILDER_SUCCESSFUL -- `
$env:SUDO_CMD pwsh eng/run.ps1 run-builder -test `
pwsh eng/run.ps1 run-builder -test `
-builder '${{ parameters.builder.os }}-${{ parameters.builder.arch }}-${{ parameters.builder.config }}' `
$(if ('${{ parameters.builder.experiment }}') { '-experiment'; '${{ parameters.builder.experiment }}' }) `
$(if ('${{ parameters.builder.fips }}') { '-fipsmode' })
Expand All @@ -291,10 +291,6 @@ stages:
${{ else }}:
displayName: Test (🔁 ${{ attempt }})
name: test_${{ attempt }}
env:
${{ if and(eq(parameters.builder.os, 'linux'), eq(parameters.builder.fips, true)) }}:
# FIPS mode may require sudo to enable system-wide FIPS mode.
SUDO_CMD: 'sudo'
# Run unless a previous retry was successful or something catastrophic happens.
# Note: test failure returns success, so it doesn't count as catastrophic.
condition: and(ne(variables['TEST_BUILDER_SUCCESSFUL'], 'true'), succeeded())
Expand Down

0 comments on commit b4061d6

Please sign in to comment.