From cda4f2546c550a732c40b66be9c1c5a5700aca20 Mon Sep 17 00:00:00 2001 From: Yi He Date: Wed, 15 May 2024 17:09:15 +0800 Subject: [PATCH] ci: move rhel9.4 test to testing-farm --- .fmf/version | 1 + .github/workflows/rhel-9-4.yml | 1273 +------------------------------- tmt/plans/edge-test.fmf | 105 +++ tmt/tests/edge-test.fmf | 2 + tmt/tests/test.sh | 40 + 5 files changed, 189 insertions(+), 1232 deletions(-) create mode 100644 .fmf/version create mode 100644 tmt/plans/edge-test.fmf create mode 100644 tmt/tests/edge-test.fmf create mode 100755 tmt/tests/test.sh diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.github/workflows/rhel-9-4.yml b/.github/workflows/rhel-9-4.yml index 4029ccf21..276eeb73e 100644 --- a/.github/workflows/rhel-9-4.yml +++ b/.github/workflows/rhel-9-4.yml @@ -9,22 +9,7 @@ on: jobs: pr-info: if: ${{ github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-virt') || - endsWith(github.event.comment.body, '/test-rhel-9-4-ng') || - endsWith(github.event.comment.body, '/test-rhel-9-4-raw') || - endsWith(github.event.comment.body, '/test-rhel-9-4-ami') || - endsWith(github.event.comment.body, '/test-rhel-9-4-arm-ami') || - endsWith(github.event.comment.body, '/test-rhel-9-4-simplified') || - endsWith(github.event.comment.body, '/test-rhel-9-4-fdo-aio') || - endsWith(github.event.comment.body, '/test-rhel-9-4-9to9') || - endsWith(github.event.comment.body, '/test-rhel-9-4-8to9') || - endsWith(github.event.comment.body, '/test-rhel-9-4-ignition') || - endsWith(github.event.comment.body, '/test-rhel-9-4-minimal') || - endsWith(github.event.comment.body, '/test-rhel-9-4-vsphere') || - endsWith(github.event.comment.body, '/test-rhel-9-4-pulp') || - endsWith(github.event.comment.body, '/test-rhel-9-4-fdo-db') || - endsWith(github.event.comment.body, '/test-rhel-9-4-arm-minimal')) }} + (endsWith(github.event.comment.body, '/test-rhel-9-4')) }} runs-on: ubuntu-latest steps: - name: Query author repository permissions @@ -35,14 +20,13 @@ jobs: 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/request-action@v2.x id: pr-api @@ -54,1236 +38,61 @@ jobs: outputs: allowed_user: ${{ steps.check_user_perm.outputs.allowed_user }} sha: ${{ fromJson(steps.pr-api.outputs.data).head.sha }} + ref: ${{ fromJson(steps.pr-api.outputs.data).head.ref }} + repo_url: ${{ fromJson(steps.pr-api.outputs.data).head.repo.html_url }} - pre-edge-commit-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-virt')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-commit-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-commit-94: - needs: [pr-info, pre-edge-commit-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-commit-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree.sh - run: ./ostree.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 60 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-commit-9.4 - path: | - *.json - *.log - - pre-edge-installer-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-ng')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-installer-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-installer-94: - needs: [pr-info, pre-edge-installer-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-installer-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-ng.sh - run: ./ostree-ng.sh - env: - OCP4_TOKEN: ${{ secrets.OCP4_TOKEN }} - QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }} - QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 120 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-installer-9.4 - path: | - *.json - *.log - - pre-edge-raw-image-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-raw')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-raw-image-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-raw-image-94: - needs: [pr-info, pre-edge-raw-image-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-raw-image-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-raw-image.sh - run: ./ostree-raw-image.sh - env: - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 90 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-raw-image-9.4 - path: | - *.json - *.log - - pre-edge-ami-image-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-ami')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-ami-image-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-ami-image-94: - needs: [pr-info, pre-edge-ami-image-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, medium] - env: - STATUS_NAME: edge-ami-image-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-ami-image.sh - run: ./ostree-ami-image.sh - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 90 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-ami-image-9.4 - path: | - *.json - *.log - - pre-edge-simplified-94: + edge-rhel-94-x86: needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-simplified')) }} + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request }} + continue-on-error: true runs-on: ubuntu-latest - env: - STATUS_NAME: edge-simplified-installer-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-simplified-94: - needs: [pr-info, pre-edge-simplified-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-simplified-installer-9.4 steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: ref: ${{ needs.pr-info.outputs.sha }} fetch-depth: 0 - - name: run ostree-simplified-installer.sh - run: ./ostree-simplified-installer.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - POSTGRES_MANUFACTURER_DATABASE_URL: "postgresql://postgres:foobar@192.168.200.2/postgres" - POSTGRES_OWNER_DATABASE_URL: "postgresql://postgres:foobar@192.168.200.2/postgres" - POSTGRES_RENDEZVOUS_DATABASE_URL: "postgresql://postgres:foobar@192.168.200.2/postgres" - timeout-minutes: 150 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-simplified-installer-9.4 - path: | - *.json - *.log - - pre-edge-8to9-94: + - name: Run the tests + uses: sclorg/testing-farm-as-github-action@v2 + with: + compose: RHEL-9.4.0-Nightly + arch: x86_64 + api_key: ${{ secrets.TF_API_KEY }} + git_url: ${{ needs.pr-info.outputs.repo_url }} + git_ref: ${{ needs.pr-info.outputs.ref }} + update_pull_request_status: true + pull_request_status_name: "edge-rhel-9.4-x86" + tmt_plan_regex: edge-x86 + tf_scope: private + secrets: "DOWNLOAD_NODE=${{ secrets.DOWNLOAD_NODE }};OCP4_TOKEN=${{ secrets.OCP4_TOKEN }};QUAY_USERNAME=${{ secrets.QUAY_USERNAME }};QUAY_PASSWORD=${{ secrets.QUAY_PASSWORD }};DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }};DOCKERHUB_PASSWORD=${{ secrets.DOCKERHUB_PASSWORD }};AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }};GOVC_URL=${{ secrets.GOVC_URL }};GOVC_USERNAME=${{ secrets.GOVC_USERNAME }};GOVC_PASSWORD=${{ secrets.GOVC_PASSWORD }}" + variables: "ARCH=x86_64;AWS_DEFAULT_REGION=us-east-1;GOVC_INSECURE=1" + + edge-rhel-94-arm: needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-8to9')) }} + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request }} + continue-on-error: true runs-on: ubuntu-latest - env: - STATUS_NAME: edge-8to9-9.4 steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-8to9-94: - needs: [pr-info, pre-edge-8to9-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-8to9-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: ref: ${{ needs.pr-info.outputs.sha }} fetch-depth: 0 - - name: run ostree-8-to-9.sh - run: ./ostree-8-to-9.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 90 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-8to9-9.4 - path: | - *.json - *.log - - pre-edge-9to9-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-9to9')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-9to9-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-9to9-94: - needs: [pr-info, pre-edge-9to9-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-9to9-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-9-to-9.sh - run: ./ostree-9-to-9.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 90 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-9to9-9.4 - path: | - *.json - *.log - - pre-edge-ignition-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-ignition')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-ignition-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-ignition-94: - needs: [pr-info, pre-edge-ignition-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-ignition-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-ignition.sh - run: ./ostree-ignition.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 120 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-ignition-9.4 - path: | - *.json - *.log - - pre-edge-minimal-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-minimal')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-minimal-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-minimal-94: - needs: [pr-info, pre-edge-minimal-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-minimal-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run minimal-raw.sh - run: ./minimal-raw.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 60 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-minimal-9.4 - path: | - *.json - *.log - - pre-edge-minimal-arm-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-arm-minimal')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-minimal-arm-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-minimal-arm-94: - needs: [pr-info, pre-edge-minimal-arm-94] - runs-on: [kite, aarch64, beaker, rhel-9-4] - env: - STATUS_NAME: edge-minimal-arm-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run minimal-raw.sh - run: ./minimal-raw.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 90 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-minimal-arm-9.4 - path: | - *.json - *.log - - pre-edge-ami-arm-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-arm-ami')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-ami-arm-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-ami-arm-94: - needs: [pr-info, pre-edge-ami-arm-94] - runs-on: [kite, aarch64, beaker-vm, rhel-9-4] - env: - STATUS_NAME: edge-ami-arm-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-ami-image.sh - run: ./ostree-ami-image.sh - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 90 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-ami-arm-9.4 - path: | - *.json - *.log - - pre-edge-vsphere-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-vsphere')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-vsphere-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-vsphere-94: - needs: [pr-info, pre-edge-vsphere-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-vsphere-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-vsphere.sh - run: ./ostree-vsphere.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - GOVC_URL: ${{ secrets.GOVC_URL }} - GOVC_USERNAME: ${{ secrets.GOVC_USERNAME }} - GOVC_PASSWORD: ${{ secrets.GOVC_PASSWORD }} - GOVC_INSECURE: 1 - timeout-minutes: 120 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-vsphere-9.4 - path: | - *.json - *.log - - pre-edge-fdo-aio-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-fdo-aio')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-fdo-aio-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-fdo-aio-94: - needs: [pr-info, pre-edge-fdo-aio-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-fdo-aio-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-fdo-aio.sh - run: ./ostree-fdo-aio.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 150 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-fdo-aio-9.4 - path: | - *.json - *.log - - pre-edge-fdo-db-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-fdo-db')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-fdo-db-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-fdo-db-94: - needs: [pr-info, pre-edge-fdo-db-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-fdo-db-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-fdo-db.sh - run: ./ostree-fdo-db.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 150 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-fdo-db-9.4 - path: | - *.json - *.log - - pre-edge-pulp-94: - needs: pr-info - if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && - (endsWith(github.event.comment.body, '/test-rhel-9-4') || - endsWith(github.event.comment.body, '/test-rhel-9-4-pulp')) }} - runs-on: ubuntu-latest - env: - STATUS_NAME: edge-pulp-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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 }} - - edge-pulp-94: - needs: [pr-info, pre-edge-pulp-94] - runs-on: [kite, x86_64, rhos-01, rhel-9-4, large] - env: - STATUS_NAME: edge-pulp-9.4 - - steps: - - name: Create in-progress status - uses: octokit/request-action@v2.x - 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: run ostree-pulp.sh - run: ./ostree-pulp.sh - env: - DOWNLOAD_NODE: ${{ secrets.DOWNLOAD_NODE }} - timeout-minutes: 150 - - - name: Set non cancelled result status - if: ${{ !cancelled() }} - uses: octokit/request-action@v2.x - 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/request-action@v2.x - 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: edge-pulp-9.4 - path: | - *.json - *.log + - name: Run the tests + uses: sclorg/testing-farm-as-github-action@v2 + with: + compose: RHEL-9.4.0-Nightly + arch: aarch64 + api_key: ${{ secrets.TF_API_KEY }} + git_url: ${{ needs.pr-info.outputs.repo_url }} + git_ref: ${{ needs.pr-info.outputs.ref }} + update_pull_request_status: true + pull_request_status_name: "edge-rhel-9.4-arm" + tmt_plan_regex: edge-arm + tf_scope: private + secrets: "DOWNLOAD_NODE=${{ secrets.DOWNLOAD_NODE }};OCP4_TOKEN=${{ secrets.OCP4_TOKEN }};QUAY_USERNAME=${{ secrets.QUAY_USERNAME }};QUAY_PASSWORD=${{ secrets.QUAY_PASSWORD }};DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }};DOCKERHUB_PASSWORD=${{ secrets.DOCKERHUB_PASSWORD }};AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }};AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }};GOVC_URL=${{ secrets.GOVC_URL }};GOVC_USERNAME=${{ secrets.GOVC_USERNAME }};GOVC_PASSWORD=${{ secrets.GOVC_PASSWORD }}" + variables: "ARCH=aarch64;AWS_DEFAULT_REGION=us-east-1;GOVC_INSECURE=1" diff --git a/tmt/plans/edge-test.fmf b/tmt/plans/edge-test.fmf new file mode 100644 index 000000000..64526f3be --- /dev/null +++ b/tmt/plans/edge-test.fmf @@ -0,0 +1,105 @@ +summary: Edge test plan +discover: + how: fmf + test: edge-test +execute: + how: tmt +provision: + hardware: + virtualization: + is-supported: true + cpu: + processors: ">= 2" + memory: ">= 6 GB" + +/edge-x86-commit: + summary: Test edge commit + environment+: + TEST_CASE: edge-commit + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-installer: + summary: Test edge installer image + environment+: + TEST_CASE: edge-installer + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-raw-image: + summary: Test edge raw image + environment+: + TEST_CASE: edge-raw-image + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-simplified-installer: + summary: Test edge simplified installer image + environment+: + TEST_CASE: edge-simplified-installer + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-fdo-aio: + summary: Test edge with fdo aio service + environment+: + TEST_CASE: edge-fdo-aio + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-fdo-db: + summary: Test edge with fdo package with db + environment+: + TEST_CASE: edge-fdo-db + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-ignition: + summary: Test edge ignition feature + environment+: + TEST_CASE: edge-ignition + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-pulp: + summary: Test edge pulp feature + environment+: + TEST_CASE: edge-pulp + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-vsphere: + summary: Test edge vsphere image + environment+: + TEST_CASE: edge-vsphere + adjust+: + - when: arch != x86_64 + enabled: false + +/edge-x86-ami-image: + summary: Test edge ami image + environment+: + TEST_CASE: edge-ami-image + +/edge-x86-minimal: + summary: Test edge minimal raw image + environment+: + TEST_CASE: edge-minimal + +/edge-arm-ami-image: + summary: Test edge ami image + environment+: + TEST_CASE: edge-ami-image + +/edge-arm-minimal: + summary: Test edge minimal raw image + environment+: + TEST_CASE: edge-minimal diff --git a/tmt/tests/edge-test.fmf b/tmt/tests/edge-test.fmf new file mode 100644 index 000000000..48ef4ca71 --- /dev/null +++ b/tmt/tests/edge-test.fmf @@ -0,0 +1,2 @@ +test: ./test.sh +duration: 150m diff --git a/tmt/tests/test.sh b/tmt/tests/test.sh new file mode 100755 index 000000000..64153aca6 --- /dev/null +++ b/tmt/tests/test.sh @@ -0,0 +1,40 @@ +#!/bin/bash +set -euox pipefail + +cd ../../ || exit 1 + +function run_tests() { + if [ "$TEST_CASE" = "edge-commit" ]; then + ./ostree.sh + elif [ "$TEST_CASE" = "edge-installer" ]; then + ./ostree-ng.sh + elif [ "$TEST_CASE" = "edge-raw-image" ]; then + ./ostree-raw-image.sh + elif [ "$TEST_CASE" = "edge-ami-image" ]; then + ./ostree-ami-image.sh + elif [ "$TEST_CASE" = "edge-simplified-installer" ]; then + ./ostree-simplified-installer.sh + elif [ "$TEST_CASE" = "edge-vsphere" ]; then + ./ostree-vsphere.sh + elif [ "$TEST_CASE" = "edge-fdo-aio" ]; then + ./ostree-fdo-aio.sh + elif [ "$TEST_CASE" = "edge-fdo-db" ]; then + ./ostree-fdo-db.sh + elif [ "$TEST_CASE" = "edge-ignition" ]; then + ./ostree-ignition.sh + elif [ "$TEST_CASE" = "edge-pulp" ]; then + ./ostree-pulp.sh + elif [ "$TEST_CASE" = "edge-minimal" ]; then + ./minimal-raw.sh + elif [ "$TEST_CASE" = "edge-8to9" ]; then + ./ostree-8-to-9.sh + elif [ "$TEST_CASE" = "edge-9to9" ]; then + ./ostree-9-to-9.sh + else + echo "Error: Test case $TEST_CASE not found!" + exit 1 + fi +} + +run_tests +exit 0