tests: xfail experiments-related flakey tests

This commit is contained in:
Saugat Pachhai (सौगात)
2023-01-06 18:59:53 +05:45
committed by skshetry
parent bfb6a32b51
commit 3dfdd577e7
2 changed files with 24 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import json
import pytest
pytestmark = pytest.mark.xfail(
raises=(
# looks like dvc-task is not saving json atomically
json.JSONDecodeError,
# needs investigation, maybe a file locking issue?
PermissionError,
),
strict=False,
reason="See https://github.com/iterative/dvc/issues/8570",
)
@@ -4,6 +4,8 @@ import os
import stat
from textwrap import dedent
import dulwich.errors
import dulwich.file
import pytest
from funcy import first
@@ -137,6 +139,14 @@ def test_apply(tmp_dir, scm, dvc, exp_stage):
assert (tmp_dir / "metrics.yaml").read_text().strip() == "foo: 3"
@pytest.mark.xfail(
raises=(
dulwich.errors.CommitError,
dulwich.file.FileLocked,
),
strict=False,
reason="See https://github.com/iterative/dvc/issues/8570",
)
def test_apply_failed(tmp_dir, scm, dvc, failed_exp_stage, test_queue):
from dvc.exceptions import InvalidArgumentError