This commit is contained in:
Ashwin Bharambe 2025-07-29 17:36:53 -07:00
parent 42592217ca
commit 6f2e5647bf
2 changed files with 9 additions and 9 deletions

View file

@ -40,7 +40,7 @@ jobs:
discover-tests: discover-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
test-type: ${{ steps.generate-matrix.outputs.test-type }} test-types: ${{ steps.generate-test-types.outputs.test-types }}
rerecord-tests: ${{ steps.check-rerecord-tests.outputs.rerecord-tests }} rerecord-tests: ${{ steps.check-rerecord-tests.outputs.rerecord-tests }}
steps: steps:
@ -54,7 +54,7 @@ jobs:
TEST_TYPES=$(find tests/integration -maxdepth 1 -mindepth 1 -type d -printf "%f\n" | 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)$" |
sort | jq -R -s -c 'split("\n")[:-1]') sort | jq -R -s -c 'split("\n")[:-1]')
echo "test-type=$TEST_TYPES" >> $GITHUB_OUTPUT echo "test-types=$TEST_TYPES" >> $GITHUB_OUTPUT
- name: Check if re-record-tests label exists - name: Check if re-record-tests label exists
id: check-rerecord-tests id: check-rerecord-tests
@ -105,7 +105,7 @@ jobs:
- name: Run Integration Tests for All Types (Recording Mode) - name: Run Integration Tests for All Types (Recording Mode)
uses: ./.github/actions/run-integration-tests uses: ./.github/actions/run-integration-tests
with: with:
test-types: ${{ needs.discover-tests.outputs.test-type }} test-types: ${{ needs.discover-tests.outputs.test-types }}
stack-config: 'ci-tests' stack-config: 'ci-tests'
provider: ${{ inputs.test-provider }} provider: ${{ inputs.test-provider }}
inference-mode: 'record' inference-mode: 'record'
@ -181,7 +181,7 @@ jobs:
- name: Run Integration Tests (Replay Mode) - name: Run Integration Tests (Replay Mode)
uses: ./.github/actions/run-integration-tests uses: ./.github/actions/run-integration-tests
with: with:
test-types: ${{ needs.discover-tests.outputs.test-type }} test-types: ${{ needs.discover-tests.outputs.test-types }}
stack-config: ${{ matrix.client-type == 'library' && 'ci-tests' || 'server:ci-tests' }} stack-config: ${{ matrix.client-type == 'library' && 'ci-tests' || 'server:ci-tests' }}
provider: ${{ matrix.provider }} provider: ${{ matrix.provider }}
inference-mode: 'replay' inference-mode: 'replay'
@ -196,7 +196,7 @@ jobs:
if: ${{ failure() }} if: ${{ failure() }}
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with: with:
name: test-logs-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.provider }}-${{ matrix.client-type }}-${{ matrix.test-type }}-${{ matrix.python-version }}-${{ matrix.client-version }} name: test-logs-${{ github.run_id }}-${{ github.run_attempt }}-${{ matrix.provider }}-${{ matrix.client-type }}-${{ matrix.python-version }}-${{ matrix.client-version }}
path: | path: |
*.log *.log
retention-days: 1 retention-days: 1