Skip to content
Merged
Changes from all commits
Commits
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
23 changes: 19 additions & 4 deletions .github/workflows/linux_job_v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ jobs:
# Will be blank outside of this
PR_NUMBER: ${{ github.event.pull_request.number }}
SCRIPT: ${{ inputs.script }}
ALPINE_IMAGE: ${{ startsWith(inputs.runner, 'linux.arm64') && 'arm64v8/alpine' || startsWith(inputs.runner, 'linux.idc') && 'alpine' || '308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine' }}
filter: ${{ inputs.checkout-mode == 'blobless' && 'blob:none' || inputs.checkout-mode == 'treeless' && 'tree:0' || null }}
runs-on: ${{ inputs.runner }}
# TODO: Eventually this should run in a container, we need to make a container that matches up
Expand Down Expand Up @@ -311,13 +312,27 @@ jobs:
uses: ./test-infra/.github/actions/chown-directory
with:
directory: ${{ github.workspace }}/${{ env.repository }}
ALPINE_IMAGE: ${{ startsWith(inputs.runner, 'linux.arm64') && 'arm64v8/alpine' || startsWith(inputs.runner, 'linux.idc') && 'alpine' || '308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine' }}
ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }}

- name: Chown runner temp
# Not all of ${RUNNER_TEMP} — a container-issued chown lands on a subordinate
# UID under rootless docker, locking the runner out of _github_workflow/.
- name: Chown runner artifacts dir
uses: ./test-infra/.github/actions/chown-directory
with:
directory: ${{ runner.temp }}
ALPINE_IMAGE: ${{ startsWith(inputs.runner, 'linux.arm64') && 'arm64v8/alpine' || startsWith(inputs.runner, 'linux.idc') && 'alpine' || '308535385114.dkr.ecr.us-east-1.amazonaws.com/tool/alpine' }}
directory: ${{ env.RUNNER_ARTIFACT_DIR }}
ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }}

- name: Chown runner docs dir
uses: ./test-infra/.github/actions/chown-directory
with:
directory: ${{ env.RUNNER_DOCS_DIR }}
ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }}

- name: Chown runner test results dir
uses: ./test-infra/.github/actions/chown-directory
with:
directory: ${{ env.RUNNER_TEST_RESULTS_DIR }}
ALPINE_IMAGE: ${{ env.ALPINE_IMAGE }}

- name: Prepare artifacts for upload
if: always()
Expand Down
Loading