diff --git a/.github/workflows/go_waku_daily.yml b/.github/workflows/go_waku_daily.yml index 73dedb2436..7697c05b36 100644 --- a/.github/workflows/go_waku_daily.yml +++ b/.github/workflows/go_waku_daily.yml @@ -16,6 +16,4 @@ jobs: with: node1: "harbor.status.im/wakuorg/go-waku:latest" node2: "harbor.status.im/wakuorg/go-waku:latest" - - - + caller: "go" diff --git a/.github/workflows/interop_tests.yml b/.github/workflows/interop_tests.yml new file mode 100644 index 0000000000..863681716d --- /dev/null +++ b/.github/workflows/interop_tests.yml @@ -0,0 +1,33 @@ +name: On Demand Interop Tests + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: false + +on: + workflow_dispatch: + inputs: + node1: + required: true + description: "Node that usually publishes messages. Used for all tests" + type: string + default: "harbor.status.im/wakuorg/go-waku:latest" + node2: + required: true + description: "Node that usually queries for published messages. Used for all tests" + type: string + default: "harbor.status.im/wakuorg/nwaku:latest" + additional_nodes: + required: false + description: "Additional optional nodes used in e2e tests, separated by ," + type: string + default: "harbor.status.im/wakuorg/nwaku:latest,harbor.status.im/wakuorg/go-waku:latest,harbor.status.im/wakuorg/nwaku:latest" + +jobs: + test-common: + uses: ./.github/workflows/test_common.yml + secrets: inherit + with: + node1: ${{ inputs.node1 }} + node2: ${{ inputs.node2 }} + additional_nodes: ${{ inputs.additional_nodes }} diff --git a/.github/workflows/nim_waku_daily.yml b/.github/workflows/nim_waku_daily.yml index aae683ae74..4870eaedc0 100644 --- a/.github/workflows/nim_waku_daily.yml +++ b/.github/workflows/nim_waku_daily.yml @@ -16,6 +16,4 @@ jobs: with: node1: "harbor.status.im/wakuorg/nwaku:latest" node2: "harbor.status.im/wakuorg/nwaku:latest" - - - + caller: "nim" diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 8654d04962..25c2bbc673 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -18,13 +18,17 @@ on: description: "Additional optional nodes used in e2e tests, separated by ," type: string default: "harbor.status.im/wakuorg/nwaku:latest,harbor.status.im/wakuorg/go-waku:latest,harbor.status.im/wakuorg/nwaku:latest" - + caller: + required: false + description: "Workflow caller. Used in reporting" + type: string env: FORCE_COLOR: "1" NODE_1: ${{ inputs.node1 }} NODE_2: ${{ inputs.node2 }} ADDITIONAL_NODES: ${{ inputs.additional_nodes }} + CALLER: ${{ inputs.caller || 'manual' }} jobs: @@ -59,7 +63,7 @@ jobs: id: allure-report with: allure_results: allure-results - gh_pages: gh-pages + gh_pages: gh-pages/${{ env.CALLER }} allure_history: allure-history keep_reports: 30 @@ -70,6 +74,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages publish_dir: allure-history + destination_dir: ${{ env.CALLER }} - name: Create job summary if: always() @@ -81,7 +86,7 @@ jobs: echo "- **Node2**: ${{ env.NODE_2 }}" >> $GITHUB_STEP_SUMMARY echo "- **Additonal Nodes**: ${{ env.ADDITIONAL_NODES }}" >> $GITHUB_STEP_SUMMARY echo "## Test Results" >> $GITHUB_STEP_SUMMARY - echo "Allure report will be available at: https://waku-org.github.io/waku-interop-tests/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY + echo "Allure report will be available at: https://waku-org.github.io/waku-interop-tests/${{ env.CALLER }}/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY { echo 'JOB_SUMMARY<