From 58fccb87cdb713e0fc2d8f7a51537c126b0e3fff Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Tue, 24 Oct 2023 12:37:42 -0400 Subject: [PATCH 1/2] testing9 --- .github/workflows/integrated-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integrated-test.yml b/.github/workflows/integrated-test.yml index 8c21a28551..72cdec650d 100644 --- a/.github/workflows/integrated-test.yml +++ b/.github/workflows/integrated-test.yml @@ -25,7 +25,7 @@ permissions: jobs: - integration-tests: #testing + integration-tests: #test runs-on: ubuntu-latest steps: - name: Install xpath From bd0d05a39a16771afa05d5390b0599f0c678528d Mon Sep 17 00:00:00 2001 From: Atif Ali Date: Tue, 24 Oct 2023 13:13:05 -0400 Subject: [PATCH 2/2] testing9 --- .github/workflows/ci-build-image.yml | 10 -------- .github/workflows/pr-ci.yml | 35 +++++++++++++++++----------- 2 files changed, 21 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci-build-image.yml b/.github/workflows/ci-build-image.yml index 5d6f24cde9..920d0632a1 100644 --- a/.github/workflows/ci-build-image.yml +++ b/.github/workflows/ci-build-image.yml @@ -92,13 +92,3 @@ jobs: - uses: skjolber/maven-cache-github-action@v1 with: step: save - - integration-tests: - needs: [build-image] - if: ${{ !inputs.skip-itests && !inputs.run-tests-only }} - strategy: - matrix: - arch: [amd64, arm64] - uses: ./.github/workflows/integrated-test.yml - with: - build-arch: ${{ matrix.arch }} diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml index 1dcd6639e1..3139ec5eb6 100644 --- a/.github/workflows/pr-ci.yml +++ b/.github/workflows/pr-ci.yml @@ -92,10 +92,21 @@ jobs: body: commentBody }); + build-image: + needs: [checkout-branch] + if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test') + strategy: + matrix: + arch: [amd64, arm64] + uses: ./.github/workflows/ci-build-image.yml + with: + build-arch: ${{ matrix.arch }} + checkout-repo: ${{ needs.checkout-branch.outputs.PR_repo }} + checkout-ref: ${{ needs.checkout-branch.outputs.PR_head_ref }} + push-to-ghcr: runs-on: ubuntu-latest - if: startsWith(github.event.comment.body, '/build_test') - needs: [checkout-branch] + needs: [checkout-branch, build-image] strategy: matrix: arch: [amd64, arm64] @@ -135,7 +146,6 @@ jobs: comment-image: runs-on: ubuntu-latest - if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test') needs: [push-to-ghcr] env: amd64_image: ${{ needs.push-to-ghcr.outputs.amd64_image }} @@ -165,20 +175,17 @@ jobs: CRYOSTAT_IMAGE=${{ env.arm64_image }} sh smoketest.sh ``` - build-and-test: - needs: [code-analysis, checkout-branch] - if: github.event.issue.pull_request && startsWith(github.event.comment.body, '/build_test') + integration-test: + needs: [checkout-branch, push-to-ghcr] strategy: matrix: arch: [amd64, arm64] - uses: ./.github/workflows/ci-build-image.yml + uses: ./.github/workflows/integrated-test.yml with: build-arch: ${{ matrix.arch }} - checkout-repo: ${{ needs.checkout-branch.outputs.PR_repo }} - checkout-ref: ${{ needs.checkout-branch.outputs.PR_head_ref }} - skip-itests: ${{ matrix.arch != 'amd64' }} - -# Add a new step to use /retest + pr-number: ${{ github.event.issue.number }} + sha-value: ${{ needs.checkout-branch.outputs.PR_head_sha }} + retest-integration: needs: [checkout-branch] if: contains(github.event.comment.body, '/retest') @@ -191,9 +198,9 @@ jobs: pr-number: ${{ github.event.issue.number }} sha-value: ${{ needs.checkout-branch.outputs.PR_head_sha }} - build-and-test-pass: + integration-test-pass: runs-on: ubuntu-latest - needs: [build-and-test] + needs: [build-image] steps: - name: Leave Actions Run Comment uses: actions/github-script@v6