show `-rs` to show skip reasons (#30318)

This commit is contained in:
Arthur 2024-04-23 08:05:42 +02:00 committed by GitHub
parent e74d793a3c
commit 6c1295a0d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -142,7 +142,7 @@ class CircleCIJob:
test_command = "" test_command = ""
if self.command_timeout: if self.command_timeout:
test_command = f"timeout {self.command_timeout} " test_command = f"timeout {self.command_timeout} "
test_command += f"python -m pytest --junitxml=test-results/junit.xml -n {self.pytest_num_workers} " + " ".join(pytest_flags) test_command += f"python -m pytest -rs --junitxml=test-results/junit.xml -n {self.pytest_num_workers} " + " ".join(pytest_flags)
if self.parallelism == 1: if self.parallelism == 1:
if self.tests_to_run is None: if self.tests_to_run is None:
@ -196,7 +196,7 @@ class CircleCIJob:
test_command = "" test_command = ""
if self.timeout: if self.timeout:
test_command = f"timeout {self.timeout} " test_command = f"timeout {self.timeout} "
test_command += f"python -m pytest -n {self.pytest_num_workers} " + " ".join(pytest_flags) test_command += f"python -m pytest -rs -n {self.pytest_num_workers} " + " ".join(pytest_flags)
test_command += " $(cat splitted_tests.txt)" test_command += " $(cat splitted_tests.txt)"
if self.marker is not None: if self.marker is not None:
test_command += f" -m {self.marker}" test_command += f" -m {self.marker}"

View File

@ -80,7 +80,7 @@ jobs:
- name: Run all tests on GPU - name: Run all tests on GPU
working-directory: /transformers working-directory: /transformers
run: python3 -m pytest -v --make-reports=${{ inputs.machine_type }}_tests_gpu_${{ matrix.folders }} tests/${{ matrix.folders }} run: python3 -m pytest -rs -v --make-reports=${{ inputs.machine_type }}_tests_gpu_${{ matrix.folders }} tests/${{ matrix.folders }}
- name: Failure short reports - name: Failure short reports
if: ${{ failure() }} if: ${{ failure() }}

View File

@ -86,7 +86,7 @@ jobs:
- name: Run FA2 tests - name: Run FA2 tests
id: run_fa2_tests id: run_fa2_tests
run: run:
pytest -m "flash_attn_test" --make-reports=${{ matrix.model-name }}_fa2_tests/ tests/${{ matrix.model-name }}/test_modeling_* pytest -rs -m "flash_attn_test" --make-reports=${{ matrix.model-name }}_fa2_tests/ tests/${{ matrix.model-name }}/test_modeling_*
- name: "Test suite reports artifacts: ${{ matrix.model-name }}_fa2_tests" - name: "Test suite reports artifacts: ${{ matrix.model-name }}_fa2_tests"
if: ${{ always() }} if: ${{ always() }}
@ -108,7 +108,7 @@ jobs:
id: run_integration_tests id: run_integration_tests
if: always() if: always()
run: run:
pytest -k "IntegrationTest" --make-reports=tests_integration_${{ matrix.model-name }} tests/${{ matrix.model-name }}/test_modeling_* pytest -rs -k "IntegrationTest" --make-reports=tests_integration_${{ matrix.model-name }} tests/${{ matrix.model-name }}/test_modeling_*
- name: "Test suite reports artifacts: tests_integration_${{ matrix.model-name }}" - name: "Test suite reports artifacts: tests_integration_${{ matrix.model-name }}"
if: ${{ always() }} if: ${{ always() }}