Skip to content

Commit

Permalink
[QE] fix github action error imported by 0b4c663
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyLuLiu authored and anjannath committed Nov 18, 2024
1 parent ca6e2d1 commit b6d4459
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/linux-qe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
commit_sha=$(cat gh_context.json | jq -r '.event.pull_request.head.sha')
fi
echo "commit_sha=${commit_sha}" >> "$GITHUB_ENV"
mkdir ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
cd ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
# the target can only be accessed through a bastion (which can only be accessed from self-hosted runner)
# as so we need to map the ssh-agent from the host to the containers used to access the target host
Expand All @@ -43,7 +41,6 @@ jobs:
ssh-add id_rsa
- name: reserve machine from testing farm
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
env:
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }}
PULL_SECRET: ${{ secrets.PULL_SECRET }}
Expand Down Expand Up @@ -72,15 +69,13 @@ jobs:
exit
- name: Download linux binary
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
uses: actions/download-artifact@v4
with:
name: linux-binary
run-id: ${{inputs.trigger-workflow-run-id}}
github-token: ${{ github.token }}

- name: Download qe oci image
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
id: download-qe-oci-image-artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -104,7 +99,6 @@ jobs:
-d "${data}"
- name: Install CRC on host
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
run: |
podman run --rm -d --privileged --name crc-linux-install-${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}} \
-e TARGET_HOST=$(cat host) \
Expand All @@ -129,7 +123,6 @@ jobs:
podman logs -f crc-linux-install-${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
- name: Run CRC ${{inputs.qe-type}} test
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
run: |
# load image
podman load -i crc-${{inputs.qe-type}}-linux-arm64.tar
Expand Down Expand Up @@ -161,7 +154,6 @@ jobs:
podman logs -f crc-${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
- name: Test Report
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
id: test-report
uses: mikepenz/action-junit-report@v4
if: always()
Expand All @@ -173,7 +165,6 @@ jobs:
report_paths: '**/*.xml'

- name: Upload e2e results
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
uses: actions/upload-artifact@v4
if: always()
with:
Expand Down Expand Up @@ -205,13 +196,10 @@ jobs:
- name: Return machine and clear env
env:
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }}
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
run: |
export TESTING_FARM_API_TOKEN=${TESTING_FARM_API_TOKEN}
testing-farm cancel $(cat requestid)
kill $(cat ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}/ssh_agent_pid)
cd ..
rm -r ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}

0 comments on commit b6d4459

Please sign in to comment.