From d54731133b8a3ef1e5a4172f72f8671cc48c159f Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Fri, 1 Nov 2024 14:43:18 -0600 Subject: [PATCH] report full path during benchmark --- .github/workflows/benchmark_parallel.yml | 4 ++++ .github/workflows/run_test.yml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/benchmark_parallel.yml b/.github/workflows/benchmark_parallel.yml index 97be14ec31..3ce86db173 100644 --- a/.github/workflows/benchmark_parallel.yml +++ b/.github/workflows/benchmark_parallel.yml @@ -58,6 +58,10 @@ jobs: ref: ${{ inputs.base-branch }} token: ${{ secrets.LASTMJS_GITHUB_TOKEN || github.token }} + - name: Report full path of test + # Just in case the path isn't obvious from the name, this will remove ambiguity + run: echo ${{matrix.test.path}} + - uses: ./.github/actions/setup_node - uses: ./.github/actions/setup_dfx diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index caf6c1ed56..986ac7f355 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -16,7 +16,7 @@ on: jobs: run-test: - name: '${{matrix.tests.name}} | ${{matrix.tests.displayPath}} | ${{matrix.azle_source}}' + name: '${{matrix.test.name}} | ${{matrix.test.displayPath}} | ${{matrix.azle_source}}' runs-on: ${{ matrix.os }} env: ETHEREUM_URL: ${{ secrets.ETHEREUM_URL }} @@ -35,7 +35,7 @@ jobs: os: [ubuntu-latest] azle_source: - ${{ inputs.include_npm == true && 'npm' || 'repo' }} - tests: ${{ fromJSON(inputs.test_infos) }} + test: ${{ fromJSON(inputs.test_infos) }} steps: - uses: actions/checkout@v4 @@ -60,7 +60,7 @@ jobs: - name: Report full path of test # Just in case the path isn't obvious from the name, this will remove ambiguity - run: echo ${{matrix.tests.path}} + run: echo ${{matrix.test.path}} - uses: ./.github/actions/setup_node @@ -82,7 +82,7 @@ jobs: npm run lint shell: bash -l {0} - - name: Run pre-test setup for ${{ matrix.tests.name }} + - name: Run pre-test setup for ${{ matrix.test.name }} run: | npm install @@ -91,17 +91,17 @@ jobs: fi npx azle install-dfx-extension - working-directory: ${{ matrix.tests.path }} + working-directory: ${{ matrix.test.path }} shell: bash -l {0} - name: Start dfx with artificial delay 0 if: ${{ steps.set-conditions.outputs.is_feature_branch_pr == 'true' || steps.set-conditions.outputs.is_feature_branch_draft_pr == 'true' }} - working-directory: ${{ matrix.tests.path }} + working-directory: ${{ matrix.test.path }} run: dfx start --clean --background --host 127.0.0.1:8000 --artificial-delay 0 - name: Start dfx if: ${{ steps.set-conditions.outputs.is_release_branch_pr == 'true' || steps.set-conditions.outputs.is_main_branch_push == 'true' || steps.set-conditions.outputs.is_main_branch_push_from_release_merge == 'true' }} - working-directory: ${{ matrix.tests.path }} + working-directory: ${{ matrix.test.path }} run: dfx start --clean --background --host 127.0.0.1:8000 - name: Calculate number of test runs @@ -136,7 +136,7 @@ jobs: - name: Run tests run: npm test shell: bash -l {0} - working-directory: ${{ matrix.tests.path }} + working-directory: ${{ matrix.test.path }} env: AZLE_PROPTEST_NUM_RUNS: ${{ steps.calc-runs.outputs.runs }} AZLE_PROPTEST_VERBOSE: true