Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/transformers: add baseline checks for test cases #1207

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/_linux_transformers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,19 @@ jobs:
source activate huggingface_transformers_test
cd transformers
python3 -m pytest -rsf --make-reports=$TEST_CASE tests/*.py || true
(cat reports/$TEST_CASE/stats.txt | grep errors) && failed=1
(cat reports/$TEST_CASE/stats.txt | grep "10 failed") || failed=1
[[ "$failed" = 1 ]] && (echo "FAILED_CASES=$FAILED_CASES,$TEST_CASE" >> $GITHUB_ENV) || true
- name: Run tests/benchmark
env:
TEST_CASE: 'tests_benchmark'
run: |
source activate huggingface_transformers_test
cd transformers
python3 -m pytest -rsf --make-reports=$TEST_CASE tests/benchmark || true
(cat reports/$TEST_CASE/stats.txt | grep errors) && failed=1
(cat reports/$TEST_CASE/stats.txt | grep "13 failed") || failed=1
[[ "$failed" = 1 ]] && (echo "FAILED_CASES=$FAILED_CASES,$TEST_CASE" >> $GITHUB_ENV) || true
- name: Run tests/generation
env:
TEST_CASE: 'tests_generation'
Expand All @@ -153,6 +159,9 @@ jobs:
# * torch.distributed.* not yet supported by XPU
pattern="not TestFSDPGeneration"
python3 -m pytest -rsf --make-reports=$TEST_CASE tests/generation -k "$pattern" || true
(cat reports/$TEST_CASE/stats.txt | grep errors) && failed=1
(cat reports/$TEST_CASE/stats.txt | grep "17 failed") || failed=1
[[ "$failed" = 1 ]] && (echo "FAILED_CASES=$FAILED_CASES,$TEST_CASE" >> $GITHUB_ENV) || true
- name: Run tests/models
env:
TEST_CASE: 'tests_models'
Expand All @@ -168,6 +177,10 @@ jobs:
not test_resize_embeddings_untied and \
not test_resize_tokens_embeddings"
python3 -m pytest -rsf --make-reports=$TEST_CASE tests/models -k "$pattern" || true
(cat reports/$TEST_CASE/stats.txt | grep errors) && failed=1
# TODO: establish baseline with failed tests after resolving random failures
#(cat reports/$TEST_CASE/stats.txt | grep "10 failed") || failed=1
[[ "$failed" = 1 ]] && (echo "FAILED_CASES=$FAILED_CASES,$TEST_CASE" >> $GITHUB_ENV) || true
- name: Run tests/pipelines
env:
TEST_CASE: 'tests_pipelines'
Expand All @@ -177,6 +190,9 @@ jobs:
# Some tests are known to fail w/o clear pattern
# TODO: drop ||true after triage and fixes
python3 -m pytest -rsf --make-reports=$TEST_CASE tests/pipelines || true
(cat reports/$TEST_CASE/stats.txt | grep errors) && failed=1
(cat reports/$TEST_CASE/stats.txt | grep "11 failed") || failed=1
[[ "$failed" = 1 ]] && (echo "FAILED_CASES=$FAILED_CASES,$TEST_CASE" >> $GITHUB_ENV) || true
- name: Run tests/trainer
env:
TEST_CASE: 'tests_trainer'
Expand Down