Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6c1295a0
"docs/vscode:/vscode.git/clone" did not exist on "3b4d3d09fd8cee2b4cc2fdd7c12ea51ca147c6cc"
Unverified
Commit
6c1295a0
authored
Apr 23, 2024
by
Arthur
Committed by
GitHub
Apr 23, 2024
Browse files
show `-rs` to show skip reasons (#30318)
parent
e74d793a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.circleci/create_circleci_config.py
.circleci/create_circleci_config.py
+2
-2
.github/workflows/model_jobs.yml
.github/workflows/model_jobs.yml
+1
-1
.github/workflows/push-important-models.yml
.github/workflows/push-important-models.yml
+2
-2
No files found.
.circleci/create_circleci_config.py
View file @
6c1295a0
...
@@ -142,7 +142,7 @@ class CircleCIJob:
...
@@ -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:
...
@@ -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
}
"
...
...
.github/workflows/model_jobs.yml
View file @
6c1295a0
...
@@ -80,7 +80,7 @@ jobs:
...
@@ -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() }}
...
...
.github/workflows/push-important-models.yml
View file @
6c1295a0
...
@@ -86,7 +86,7 @@ jobs:
...
@@ -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:
...
@@ -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() }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment