diff --git a/.github/workflows/rhel-9-5.yml b/.github/workflows/rhel-9-5.yml new file mode 100644 index 000000000..99b6c4b98 --- /dev/null +++ b/.github/workflows/rhel-9-5.yml @@ -0,0 +1,1289 @@ +--- +name: Run Edge Test on RHEL 9.5.0 + +on: + issue_comment: + types: + - created + +jobs: + pr-info: + if: ${{ github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-virt') || + endsWith(github.event.comment.body, '/test-rhel-9-5-ng') || + endsWith(github.event.comment.body, '/test-rhel-9-5-raw') || + endsWith(github.event.comment.body, '/test-rhel-9-5-ami') || + endsWith(github.event.comment.body, '/test-rhel-9-5-arm-ami') || + endsWith(github.event.comment.body, '/test-rhel-9-5-simplified') || + endsWith(github.event.comment.body, '/test-rhel-9-5-fdo-aio') || + endsWith(github.event.comment.body, '/test-rhel-9-5-9to9') || + endsWith(github.event.comment.body, '/test-rhel-9-5-8to9') || + endsWith(github.event.comment.body, '/test-rhel-9-5-ignition') || + endsWith(github.event.comment.body, '/test-rhel-9-5-minimal') || + endsWith(github.event.comment.body, '/test-rhel-9-5-vsphere') || + endsWith(github.event.comment.body, '/test-rhel-9-5-pulp') || + endsWith(github.event.comment.body, '/test-rhel-9-5-fdo-db') || + endsWith(github.event.comment.body, '/test-rhel-9-5-arm-minimal')) }} + runs-on: ubuntu-latest + steps: + - name: Query author repository permissions + uses: octokit/request-action@v2.x + 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/request-action@v2.x + 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-edge-commit-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-virt')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-commit-9.5 + + 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-95: + needs: [pr-info, pre-edge-commit-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-commit-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-installer-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-ng')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-installer-9.5 + + 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-95: + needs: [pr-info, pre-edge-installer-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-installer-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-raw-image-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-raw')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-raw-image-9.5 + + 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-95: + needs: [pr-info, pre-edge-raw-image-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-raw-image-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-ami-image-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-ami')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-ami-image-9.5 + + 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-95: + needs: [pr-info, pre-edge-ami-image-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, medium] + env: + STATUS_NAME: edge-ami-image-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-simplified-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-simplified')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-simplified-installer-9.5 + + 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-95: + needs: [pr-info, pre-edge-simplified-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-simplified-installer-9.5 + + 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-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.5 + path: | + *.json + *.log + + pre-edge-8to9-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-8to9')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-8to9-9.5 + + 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-95: + needs: [pr-info, pre-edge-8to9-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-8to9-9.5 + + 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-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.5 + path: | + *.json + *.log + + pre-edge-9to9-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-9to9')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-9to9-9.5 + + 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-95: + needs: [pr-info, pre-edge-9to9-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-9to9-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-ignition-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-ignition')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-ignition-9.5 + + 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-95: + needs: [pr-info, pre-edge-ignition-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-ignition-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-minimal-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-minimal')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-minimal-9.5 + + 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-95: + needs: [pr-info, pre-edge-minimal-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-minimal-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-minimal-arm-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-arm-minimal')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-minimal-arm-9.5 + + 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-95: + needs: [pr-info, pre-edge-minimal-arm-95] + runs-on: [kite, aarch64, beaker, rhel-9-5] + env: + STATUS_NAME: edge-minimal-arm-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-ami-arm-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-arm-ami')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-ami-arm-9.5 + + 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-95: + needs: [pr-info, pre-edge-ami-arm-95] + runs-on: [kite, aarch64, beaker-vm, rhel-9-5] + env: + STATUS_NAME: edge-ami-arm-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-vsphere-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-vsphere')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-vsphere-9.5 + + 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-95: + needs: [pr-info, pre-edge-vsphere-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-vsphere-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-fdo-aio-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-fdo-aio')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-fdo-aio-9.5 + + 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-95: + needs: [pr-info, pre-edge-fdo-aio-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-fdo-aio-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-fdo-db-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-fdo-db')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-fdo-db-9.5 + + 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-95: + needs: [pr-info, pre-edge-fdo-db-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-fdo-db-9.5 + + 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.5 + path: | + *.json + *.log + + pre-edge-pulp-95: + needs: pr-info + if: ${{ needs.pr-info.outputs.allowed_user == 'true' && github.event.issue.pull_request && + (endsWith(github.event.comment.body, '/test-rhel-9-5') || + endsWith(github.event.comment.body, '/test-rhel-9-5-pulp')) }} + runs-on: ubuntu-latest + env: + STATUS_NAME: edge-pulp-9.5 + + 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-95: + needs: [pr-info, pre-edge-pulp-95] + runs-on: [kite, x86_64, rhos-01, rhel-9-5, large] + env: + STATUS_NAME: edge-pulp-9.5 + + 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.5 + path: | + *.json + *.log diff --git a/.github/workflows/trigger-9.yml b/.github/workflows/trigger-9.yml index a5eff3e94..4fcd654f9 100644 --- a/.github/workflows/trigger-9.yml +++ b/.github/workflows/trigger-9.yml @@ -13,7 +13,8 @@ env: COMPOSE_URL_90: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/updates/RHEL-9" COMPOSE_URL_92: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/updates/RHEL-9" COMPOSE_URL_93: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/updates/RHEL-9" - COMPOSE_URL_94: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/RHEL-9" + COMPOSE_URL_94: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/updates/RHEL-9" + COMPOSE_URL_95: "http://${{ secrets.DOWNLOAD_NODE }}/rhel-9/nightly/RHEL-9" jobs: check-compose: @@ -190,11 +191,53 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Check RHEL 9.5 compose + id: check_compose_id_95 + run: | + curl -s ${COMPOSE_URL_95}/latest-RHEL-9.5.0/STATUS --output STATUS_95 + STATUS_95=$(cat STATUS_95) + if [[ "$STATUS_95" == "FINISHED" ]]; then + curl -s ${COMPOSE_URL_95}/latest-RHEL-9.5.0/COMPOSE_ID --output COMPOSE_ID_95 + COMPOSE_ID_95=$(cat COMPOSE_ID_95) + TESTED_COMPOSE_95=( $( cat compose/compose.95 ) ) + if [[ " ${TESTED_COMPOSE_95[*]} " =~ "$COMPOSE_ID_95" ]]; then + COMPOSE_ID_95="false" + fi + else + COMPOSE_ID_95="false" + fi + + if [[ "$COMPOSE_ID_95" != "false" ]]; then + gh pr list -R virt-s1/rhel-edge --state open --json title --jq '.[].title' > PR_LIST_95 + PR_LIST_95=$(cat PR_LIST_95) + if [[ $PR_LIST_95 == *"$COMPOSE_ID_95"* ]]; then + echo "pr_running_95=true" >> $GITHUB_OUTPUT + else + echo "pr_running_95=false" >> $GITHUB_OUTPUT + fi + + OSBUILD_VERSION_95=$(curl -s "${COMPOSE_URL_95}/${COMPOSE_ID_95}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">osbuild-[0-9].*<" | tr -d "><") + OSBUILD_COMPOSER_VERSION_95=$(curl -s "${COMPOSE_URL_95}/${COMPOSE_ID_95}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">osbuild-composer-[0-9].*<" | tr -d "><") + COMPOSER_CLI_VERSION_95=$(curl -s "${COMPOSE_URL_95}/${COMPOSE_ID_95}/compose/AppStream/x86_64/os/Packages/" | grep -ioE ">weldr-client-[0-9].*<" | tr -d "><") + echo "osbuild_version_95=$OSBUILD_VERSION_95" >> $GITHUB_OUTPUT + echo "osbuild_composer_version_95=$OSBUILD_COMPOSER_VERSION_95" >> $GITHUB_OUTPUT + echo "composer_cli_version_95=$COMPOSER_CLI_VERSION_95" >> $GITHUB_OUTPUT + else + echo "osbuild_version_95=Null" >> $GITHUB_OUTPUT + echo "osbuild_composer_version_95=Null" >> $GITHUB_OUTPUT + echo "composer_cli_version_95=Null" >> $GITHUB_OUTPUT + fi + + echo "rhel95_compose=$COMPOSE_ID_95" >> $GITHUB_OUTPUT + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + outputs: rhel90_compose: ${{ steps.check_compose_id_90.outputs.rhel90_compose }} rhel92_compose: ${{ steps.check_compose_id_92.outputs.rhel92_compose }} rhel93_compose: ${{ steps.check_compose_id_93.outputs.rhel93_compose }} rhel94_compose: ${{ steps.check_compose_id_94.outputs.rhel94_compose }} + rhel95_compose: ${{ steps.check_compose_id_95.outputs.rhel95_compose }} osbuild_version_90: ${{ steps.check_compose_id_90.outputs.osbuild_version_90 }} osbuild_composer_version_90: ${{ steps.check_compose_id_90.outputs.osbuild_composer_version_90 }} composer_cli_version_90: ${{ steps.check_compose_id_90.outputs.composer_cli_version_90 }} @@ -207,10 +250,14 @@ jobs: osbuild_version_94: ${{ steps.check_compose_id_94.outputs.osbuild_version_94 }} osbuild_composer_version_94: ${{ steps.check_compose_id_94.outputs.osbuild_composer_version_94 }} composer_cli_version_94: ${{ steps.check_compose_id_94.outputs.composer_cli_version_94 }} + osbuild_version_95: ${{ steps.check_compose_id_95.outputs.osbuild_version_95 }} + osbuild_composer_version_95: ${{ steps.check_compose_id_95.outputs.osbuild_composer_version_95 }} + composer_cli_version_95: ${{ steps.check_compose_id_95.outputs.composer_cli_version_95 }} pr_running_90: ${{ steps.check_compose_id_90.outputs.pr_running_90 }} pr_running_92: ${{ steps.check_compose_id_92.outputs.pr_running_92 }} pr_running_93: ${{ steps.check_compose_id_93.outputs.pr_running_93 }} pr_running_94: ${{ steps.check_compose_id_94.outputs.pr_running_94 }} + pr_running_95: ${{ steps.check_compose_id_95.outputs.pr_running_95 }} rhel-9-0: needs: check-compose @@ -455,3 +502,64 @@ jobs: project-name: RHEL Compose Test column-name: RHEL-9-4 issue-number: ${{ steps.cpr.outputs.pull-request-number }} + + rhel-9-5: + needs: check-compose + if: ${{ needs.check-compose.outputs.rhel95_compose != 'false' && needs.check-compose.outputs.pr_running_95 == 'false' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Add new compose id in compose.95 + run: | + compose_id="${{ needs.check-compose.outputs.rhel95_compose }}" + echo $compose_id >> compose/compose.95 + cat compose/compose.95 + + - name: Get current date + id: date + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT + + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "${{ needs.check-compose.outputs.rhel95_compose }} - ${{ steps.date.outputs.date }}" + committer: cloudkitebot + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + branch: cpr + branch-suffix: random + delete-branch: true + title: "${{ needs.check-compose.outputs.rhel95_compose }} - ${{ steps.date.outputs.date }}" + labels: auto-merge,RHEL-9.5.0 + body: | + RHEL 9.5 compose ${{ needs.check-compose.outputs.rhel95_compose }} + - Date: ${{ steps.date.outputs.date }} + - Packages: + - ${{ needs.check-compose.outputs.osbuild_version_95 }} + - ${{ needs.check-compose.outputs.osbuild_composer_version_95 }} + - ${{ needs.check-compose.outputs.composer_cli_version_95 }} + + - name: Enable Pull Request Automerge + if: steps.cpr.outputs.pull-request-operation == 'created' + uses: peter-evans/enable-pull-request-automerge@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} + merge-method: rebase + + - name: Add a comment to trigger test workflow + uses: peter-evans/create-or-update-comment@v1 + with: + token: ${{ secrets.PAT }} + issue-number: ${{ steps.cpr.outputs.pull-request-number }} + body: /test-rhel-9-5 + + - name: Create a project card to track compose test result + uses: peter-evans/create-or-update-project-card@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + project-name: RHEL Compose Test + column-name: RHEL-9-5 + issue-number: ${{ steps.cpr.outputs.pull-request-number }} diff --git a/compose/compose.95 b/compose/compose.95 new file mode 100644 index 000000000..e69de29bb