Skip to content

Commit b6d4459

Browse files
lilyLuLiuanjannath
authored andcommitted
[QE] fix github action error imported by 0b4c663
1 parent ca6e2d1 commit b6d4459

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/linux-qe-template.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ jobs:
3131
commit_sha=$(cat gh_context.json | jq -r '.event.pull_request.head.sha')
3232
fi
3333
echo "commit_sha=${commit_sha}" >> "$GITHUB_ENV"
34-
mkdir ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
35-
cd ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
3634
3735
# the target can only be accessed through a bastion (which can only be accessed from self-hosted runner)
3836
# as so we need to map the ssh-agent from the host to the containers used to access the target host
@@ -43,7 +41,6 @@ jobs:
4341
ssh-add id_rsa
4442
4543
- name: reserve machine from testing farm
46-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
4744
env:
4845
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }}
4946
PULL_SECRET: ${{ secrets.PULL_SECRET }}
@@ -72,15 +69,13 @@ jobs:
7269
exit
7370
7471
- name: Download linux binary
75-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
7672
uses: actions/download-artifact@v4
7773
with:
7874
name: linux-binary
7975
run-id: ${{inputs.trigger-workflow-run-id}}
8076
github-token: ${{ github.token }}
8177

8278
- name: Download qe oci image
83-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
8479
id: download-qe-oci-image-artifact
8580
uses: actions/download-artifact@v4
8681
with:
@@ -104,7 +99,6 @@ jobs:
10499
-d "${data}"
105100
106101
- name: Install CRC on host
107-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
108102
run: |
109103
podman run --rm -d --privileged --name crc-linux-install-${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}} \
110104
-e TARGET_HOST=$(cat host) \
@@ -129,7 +123,6 @@ jobs:
129123
podman logs -f crc-linux-install-${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
130124
131125
- name: Run CRC ${{inputs.qe-type}} test
132-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
133126
run: |
134127
# load image
135128
podman load -i crc-${{inputs.qe-type}}-linux-arm64.tar
@@ -161,7 +154,6 @@ jobs:
161154
podman logs -f crc-${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
162155
163156
- name: Test Report
164-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
165157
id: test-report
166158
uses: mikepenz/action-junit-report@v4
167159
if: always()
@@ -173,7 +165,6 @@ jobs:
173165
report_paths: '**/*.xml'
174166

175167
- name: Upload e2e results
176-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
177168
uses: actions/upload-artifact@v4
178169
if: always()
179170
with:
@@ -205,13 +196,10 @@ jobs:
205196
- name: Return machine and clear env
206197
env:
207198
TESTING_FARM_API_TOKEN: ${{ secrets.TESTING_FARM_API_TOKEN }}
208-
working-directory: ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
209199
run: |
210200
export TESTING_FARM_API_TOKEN=${TESTING_FARM_API_TOKEN}
211201
testing-farm cancel $(cat requestid)
212202
kill $(cat ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}/ssh_agent_pid)
213-
cd ..
214-
rm -r ${{ env.commit_sha }}-${{inputs.qe-type}}-${{inputs.preset}}
215203
216204
217205

0 commit comments

Comments
 (0)