Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
93983b67
Unverified
Commit
93983b67
authored
Jul 24, 2024
by
Dhruv Nair
Committed by
GitHub
Jul 24, 2024
Browse files
[CI] Skip flaky download tests in PR CI (#8945)
update
parent
41b705f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
tests/models/test_modeling_common.py
tests/models/test_modeling_common.py
+1
-0
tests/pipelines/test_pipelines.py
tests/pipelines/test_pipelines.py
+2
-0
No files found.
tests/models/test_modeling_common.py
View file @
93983b67
...
...
@@ -124,6 +124,7 @@ class ModelUtilsTest(unittest.TestCase):
if
p1
.
data
.
ne
(
p2
.
data
).
sum
()
>
0
:
assert
False
,
"Parameters not the same!"
@
unittest
.
skip
(
"Flaky behaviour on CI. Re-enable after migrating to new runners"
)
@
unittest
.
skipIf
(
torch_device
==
"mps"
,
reason
=
"Test not supported for MPS."
)
def
test_one_request_upon_cached
(
self
):
use_safetensors
=
False
...
...
tests/pipelines/test_pipelines.py
View file @
93983b67
...
...
@@ -146,6 +146,7 @@ class CustomPipeline(DiffusionPipeline):
class
DownloadTests
(
unittest
.
TestCase
):
@
unittest
.
skip
(
"Flaky behaviour on CI. Re-enable after migrating to new runners"
)
def
test_one_request_upon_cached
(
self
):
# TODO: For some reason this test fails on MPS where no HEAD call is made.
if
torch_device
==
"mps"
:
...
...
@@ -191,6 +192,7 @@ class DownloadTests(unittest.TestCase):
assert
"scheduler"
in
os
.
listdir
(
cached_folder
)
assert
"feature_extractor"
in
os
.
listdir
(
cached_folder
)
@
unittest
.
skip
(
"Flaky behaviour on CI. Re-enable after migrating to new runners"
)
def
test_less_downloads_passed_object_calls
(
self
):
# TODO: For some reason this test fails on MPS where no HEAD call is made.
if
torch_device
==
"mps"
:
...
...
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