"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "79d08997f163ff36e3772ceac96937ebde3bb56f"
Unverified Commit 4e36a6cd authored by amyeroberts's avatar amyeroberts Committed by GitHub
Browse files

Mark two logger tests as flaky (#28458)

* Mark two logger tests as flaky

* Add description to is_flaky
parent 07bdbebb
...@@ -43,6 +43,7 @@ from transformers.testing_utils import ( ...@@ -43,6 +43,7 @@ from transformers.testing_utils import (
USER, USER,
CaptureLogger, CaptureLogger,
TestCasePlus, TestCasePlus,
is_flaky,
is_staging_test, is_staging_test,
require_accelerate, require_accelerate,
require_flax, require_flax,
...@@ -288,6 +289,9 @@ class ModelUtilsTest(TestCasePlus): ...@@ -288,6 +289,9 @@ class ModelUtilsTest(TestCasePlus):
self.assertIsNotNone(model) self.assertIsNotNone(model)
@is_flaky(
description="Capturing logs is flaky: https://app.circleci.com/pipelines/github/huggingface/transformers/81004/workflows/4919e5c9-0ea2-457b-ad4f-65371f79e277/jobs/1038999"
)
def test_model_from_pretrained_with_different_pretrained_model_name(self): def test_model_from_pretrained_with_different_pretrained_model_name(self):
model = T5ForConditionalGeneration.from_pretrained(TINY_T5) model = T5ForConditionalGeneration.from_pretrained(TINY_T5)
self.assertIsNotNone(model) self.assertIsNotNone(model)
...@@ -1002,6 +1006,9 @@ class ModelUtilsTest(TestCasePlus): ...@@ -1002,6 +1006,9 @@ class ModelUtilsTest(TestCasePlus):
# Should only complain about the missing bias # Should only complain about the missing bias
self.assertListEqual(load_info["missing_keys"], ["decoder.bias"]) self.assertListEqual(load_info["missing_keys"], ["decoder.bias"])
@is_flaky(
description="Capturing logs is flaky: https://app.circleci.com/pipelines/github/huggingface/transformers/81004/workflows/4919e5c9-0ea2-457b-ad4f-65371f79e277/jobs/1038999"
)
def test_unexpected_keys_warnings(self): def test_unexpected_keys_warnings(self):
model = ModelWithHead(PretrainedConfig()) model = ModelWithHead(PretrainedConfig())
logger = logging.get_logger("transformers.modeling_utils") logger = logging.get_logger("transformers.modeling_utils")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment