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

[QE] update pr check on linux-arm64 #4570

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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: 16 additions & 7 deletions .github/workflows/linux-qe-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,25 @@ jobs:
statuses: write # needed to update commit status (pending/failure/sucess)
checks: write # as documented in https://github.com/mikepenz/action-junit-report?tab=readme-ov-file#pr-run-permissions
steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Download gh context
id: download-gh-context-artifact
uses: actions/download-artifact@v4
with:
name: gh-context
run-id: ${{inputs.trigger-workflow-run-id}}
github-token: ${{ github.token }}
- name: Download ocp_bundle_v
uses: actions/download-artifact@v4
with:
name: ocp_bundle_v
run-id: ${{inputs.trigger-workflow-run-id}}
github-token: ${{ github.token }}
- name: Download microshift_bundle_v
uses: actions/download-artifact@v4
with:
name: microshift_bundle_v
run-id: ${{inputs.trigger-workflow-run-id}}
github-token: ${{ github.token }}

- name: prepare
run: |
Expand All @@ -52,12 +61,11 @@ jobs:
status_context="${status_context}/Linux-ARM64"
echo "status_context=${status_context}" >> "$GITHUB_ENV"

ocp_version_line=$(cat Makefile | grep "OPENSHIFT_VERSION ?=")
ocp_bundle_v=${ocp_version_line##*= }
ocp_bundle_v=$(cat ocp_bundle_v.json)
echo "ocp_bundle_v=${ocp_bundle_v}" >> "$GITHUB_ENV"
echo "ocp_bundle_v=${ocp_bundle_v}"
microshift_version_line=$(cat Makefile | grep "MICROSHIFT_VERSION ?=")
microshift_bundle_v=${microshift_version_line##*= }

microshift_bundle_v=$(cat microshift_bundle_v.json)
echo "microshift_bundle_v=${microshift_bundle_v}" >> "$GITHUB_ENV"
echo "microshift_bundle_v=${microshift_bundle_v}"

Expand Down Expand Up @@ -128,6 +136,7 @@ jobs:
$ssh_cmd 'mkdir -p /home/crctest/.ssh' < /dev/null
$ssh_cmd 'cp /root/.ssh/authorized_keys /home/crctest/.ssh/' < /dev/null
$ssh_cmd 'chown -R crctest:crctest /home/crctest/.ssh/' < /dev/null
$ssh_cmd 'dnf install podman -y' < /dev/null

# Install CRC on the reserved machine
echo "Start installing crc on reserved machine"
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/windows-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,23 @@ jobs:
with:
name: gh-context
path: gh_context.json
- name: Check out repository code
uses: actions/checkout@v4
- name: Save the bundle version
run: |
ocp_version_line=$(cat Makefile | grep "OPENSHIFT_VERSION ?=")
ocp_bundle_v=${ocp_version_line##*= }
echo $ocp_bundle_v > ocp_bundle_v.json
microshift_version_line=$(cat Makefile | grep "MICROSHIFT_VERSION ?=")
microshift_bundle_v=${microshift_version_line##*= }
echo $microshift_bundle_v > microshift_bundle_v.json
- name: Upload the ocp bundle version artifact
uses: actions/upload-artifact@v4
with:
name: ocp_bundle_v
path: ocp_bundle_v.json
- name: Upload the microshift bundle version artifact
uses: actions/upload-artifact@v4
with:
name: microshift_bundle_v
path: microshift_bundle_v.json
Loading