From de60598b6c3c6281b83d20464fabdafdbb465607 Mon Sep 17 00:00:00 2001 From: Florin Barbu Date: Fri, 19 Jan 2024 12:56:55 +0200 Subject: [PATCH] Chore/address failures (#14) * address failures * job for interop tests * fix branch name * fix remaining tests * see job name * set caller input * split reports per caller * trigger again * try with publish_dir * small fix * small fix * remove on pr --- .github/workflows/go_waku_daily.yml | 4 +--- .github/workflows/interop_tests.yml | 33 +++++++++++++++++++++++++++ .github/workflows/nim_waku_daily.yml | 4 +--- .github/workflows/test_common.yml | 13 +++++++---- src/env_vars.py | 1 - src/steps/filter.py | 1 - src/steps/relay.py | 6 +++++ src/test_data.py | 4 +--- tests/filter/test_get_messages.py | 7 ++++++ tests/filter/test_multiple_nodes.py | 5 +++- tests/filter/test_subscribe_create.py | 4 +++- tests/filter/test_unsubscribe.py | 7 +++++- tests/relay/test_publish.py | 9 +++++--- tests/relay/test_subscribe.py | 10 -------- 14 files changed, 77 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/interop_tests.yml 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<