From ea527c5e06850770fd01f06f3a81a2693ba5e077 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Thu, 31 Jul 2025 14:59:44 -0700 Subject: [PATCH] disable post-training, fix artifact name --- .github/actions/run-and-record-tests/action.yml | 10 +++++++++- .github/workflows/integration-tests.yml | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/actions/run-and-record-tests/action.yml b/.github/actions/run-and-record-tests/action.yml index 333b6b99f..cde9c85ae 100644 --- a/.github/actions/run-and-record-tests/action.yml +++ b/.github/actions/run-and-record-tests/action.yml @@ -188,11 +188,19 @@ runs: run: | sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true + - name: Set artifact name + shell: bash + run: | + # Replace colons with dashes in stack-config for artifact naming + suffix="${{ inputs.stack-config }}" + suffix="${suffix//:/-}" + echo "ARTIFACT_NAME_SUFFIX=$suffix" >> $GITHUB_ENV + - name: Upload logs if: ${{ always() }} uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: - name: ${{ inputs.inference-mode }}-logs-${{ github.run_id }}-${{ github.run_attempt || '' }}-${{ inputs.provider }}-${{ inputs.run-vision-tests }}-${{ inputs.stack-config }} + name: logs-${{ github.run_id }}-${{ github.run_attempt || '' }}-${{ inputs.provider }}-${{ inputs.run-vision-tests }}-${{ env.ARTIFACT_NAME_SUFFIX }} path: | *.log retention-days: 1 diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 38729645f..4729c5b36 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -51,8 +51,9 @@ jobs: id: generate-test-types run: | # Get test directories dynamically, excluding non-test directories + # NOTE: we are excluding post_training since the tests take too long TEST_TYPES=$(find tests/integration -maxdepth 1 -mindepth 1 -type d -printf "%f\n" | - grep -Ev "^(__pycache__|fixtures|test_cases|recordings)$" | + grep -Ev "^(__pycache__|fixtures|test_cases|recordings|post_training)$" | sort | jq -R -s -c 'split("\n")[:-1]') echo "test-types=$TEST_TYPES" >> $GITHUB_OUTPUT