RHEL-8.9.0-updates-20231112.4 - 2023-11-12 #2519
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Run Edge ARM64 Test on RHEL 9.3 | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
pr-info: | |
if: ${{ github.event.issue.pull_request && | |
(endsWith(github.event.comment.body, '/arm-rhel-9-3-all') || | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-commit') || | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-installer') || | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-raw') || | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-simplified') || | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-ignition')) }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Query author repository permissions | |
uses: octokit/[email protected] | |
id: user_permission | |
with: | |
route: GET /repos/${{ github.repository }}/collaborators/${{ github.event.sender.login }}/permission | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# restrict running of tests to users with admin or write permission for the repository | |
# see https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#get-repository-permissions-for-a-user | |
- name: Check if user does have correct permissions | |
if: contains('admin write', fromJson(steps.user_permission.outputs.data).permission) | |
id: check_user_perm | |
run: | | |
echo "User '${{ github.event.sender.login }}' has permission '${{ fromJson(steps.user_permission.outputs.data).permission }}' allowed values: 'admin', 'write'" | |
echo "allowed_user=true" >> $GITHUB_OUTPUT | |
- name: Get information for pull request | |
uses: octokit/[email protected] | |
id: pr-api | |
with: | |
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.issue.number }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
outputs: | |
allowed_user: ${{ steps.check_user_perm.outputs.allowed_user }} | |
sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }} | |
pre-arm-all-93: | |
needs: pr-info | |
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-all') }} | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: arm-all-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Runner has been deploying...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
arm-all-93: | |
needs: [pr-info, pre-arm-all-93] | |
runs-on: [kite, aarch64, beaker, fedora-37] | |
timeout-minutes: 420 | |
env: | |
STATUS_NAME: arm-all-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Test has been running...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.pr-info.outputs.sha }} | |
fetch-depth: 0 | |
- name: Setup arm runner | |
run: tools/deploy_bare.sh | |
timeout-minutes: 10 | |
- name: Set private key permission to 600 | |
run: sudo chmod 600 key/ostree_key | |
- name: run arm-commit.sh | |
run: ./arm-commit.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 60 | |
- name: run arm-installer.sh | |
if: always() | |
run: ./arm-installer.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} | |
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} | |
timeout-minutes: 120 | |
- name: run arm-raw.sh | |
if: always() | |
run: ./arm-raw.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
timeout-minutes: 90 | |
- name: run arm-simplified.sh | |
if: always() | |
run: ./arm-simplified.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 150 | |
- name: run arm-ignition.sh | |
if: always() | |
run: ./arm-ignition.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 120 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: arm-all-93 | |
path: | | |
*.json | |
*.log | |
pre-arm-commit-93: | |
needs: pr-info | |
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-commit') }} | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: arm-commit-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Runner has been deploying...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
arm-commit-93: | |
needs: [pr-info, pre-arm-commit-93] | |
runs-on: [kite, aarch64, beaker, fedora-37] | |
env: | |
STATUS_NAME: arm-commit-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Test has been running...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.pr-info.outputs.sha }} | |
fetch-depth: 0 | |
- name: Setup arm runner | |
run: tools/deploy_bare.sh | |
timeout-minutes: 10 | |
- name: Set private key permission to 600 | |
run: sudo chmod 600 key/ostree_key | |
- name: run arm-commit.sh | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
run: ./arm-commit.sh rhel-9-3 | |
timeout-minutes: 60 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: arm-commit-93 | |
path: | | |
*.json | |
*.log | |
pre-arm-installer-93: | |
needs: pr-info | |
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-installer') }} | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: arm-installer-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Runner has been deploying...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
arm-installer-93: | |
needs: [pr-info, pre-arm-installer-93] | |
runs-on: [kite, aarch64, beaker, fedora-37] | |
env: | |
STATUS_NAME: arm-installer-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Test has been running...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.pr-info.outputs.sha }} | |
fetch-depth: 0 | |
- name: Setup arm runner | |
run: tools/deploy_bare.sh | |
timeout-minutes: 10 | |
- name: Set private key permission to 600 | |
run: sudo chmod 600 key/ostree_key | |
- name: run arm-installer.sh | |
run: ./arm-installer.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} | |
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} | |
timeout-minutes: 120 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: arm-installer-93 | |
path: | | |
*.json | |
*.log | |
pre-arm-raw-93: | |
needs: pr-info | |
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-raw') }} | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: arm-raw-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Runner has been deploying...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
arm-raw-93: | |
needs: [pr-info, pre-arm-raw-93] | |
runs-on: [kite, aarch64, beaker, fedora-37] | |
env: | |
STATUS_NAME: arm-raw-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Test has been running...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.pr-info.outputs.sha }} | |
fetch-depth: 0 | |
- name: Setup arm runner | |
run: tools/deploy_bare.sh | |
timeout-minutes: 10 | |
- name: Set private key permission to 600 | |
run: sudo chmod 600 key/ostree_key | |
- name: run arm-raw.sh | |
run: ./arm-raw.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | |
timeout-minutes: 90 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: arm-raw-93 | |
path: | | |
*.json | |
*.log | |
pre-arm-simplified-93: | |
needs: pr-info | |
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-simplified') }} | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: arm-simplified-installer-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Runner has been deploying...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
arm-simplified-93: | |
needs: [pr-info, pre-arm-simplified-93] | |
runs-on: [kite, aarch64, beaker, fedora-37] | |
env: | |
STATUS_NAME: arm-simplified-installer-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Test has been running...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.pr-info.outputs.sha }} | |
fetch-depth: 0 | |
- name: Setup arm runner | |
run: tools/deploy_bare.sh | |
timeout-minutes: 10 | |
- name: Set private key permission to 600 | |
run: sudo chmod 600 key/ostree_key | |
- name: run arm-simplified.sh | |
run: ./arm-simplified.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 150 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: arm-simplified-installer-93 | |
path: | | |
*.json | |
*.log | |
pre-arm-ignition-93: | |
needs: pr-info | |
if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && | |
endsWith(github.event.comment.body, '/arm-rhel-9-3-ignition') }} | |
runs-on: ubuntu-latest | |
env: | |
STATUS_NAME: arm-ignition-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Runner has been deploying...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
arm-ignition-93: | |
needs: [pr-info, pre-arm-ignition-93] | |
runs-on: [kite, aarch64, beaker, fedora-37] | |
env: | |
STATUS_NAME: arm-ignition-93 | |
steps: | |
- name: Create in-progress status | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: pending | |
description: 'Test has been running...' | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ needs.pr-info.outputs.sha }} | |
fetch-depth: 0 | |
- name: Setup arm runner | |
run: tools/deploy_bare.sh | |
timeout-minutes: 10 | |
- name: Set private key permission to 600 | |
run: sudo chmod 600 key/ostree_key | |
- name: run arm-ignition.sh | |
run: ./arm-ignition.sh rhel-9-3 | |
env: | |
DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} | |
timeout-minutes: 120 | |
- name: Set non cancelled result status | |
if: ${{ !cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: ${{ job.status }} | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set cancelled result status | |
if: ${{ cancelled() }} | |
uses: octokit/[email protected] | |
with: | |
route: 'POST /repos/${{ github.repository }}/statuses/${{ needs.pr-info.outputs.sha }}' | |
context: ${{ env.STATUS_NAME }} | |
state: error | |
target_url: 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: arm-ignition-93 | |
path: | | |
*.json | |
*.log |