From 1d47b03cd5fb5eada24b4b346a312490aa939c69 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Fri, 8 Dec 2023 17:15:57 +0200 Subject: [PATCH] bench: mark test_get/import as flaky (#10148) Sometimes seeing those error out in 2.x and early 3.x with: ``` ERROR: unexpected error - [Errno 95] no more link types left to try out: [Errno 95] Operation not supported ``` It seems like we've fixed it at some point, but I was not able to quickly find a link. --- dvc/testing/benchmarks/cli/commands/test_get.py | 4 ++++ dvc/testing/benchmarks/cli/commands/test_import.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dvc/testing/benchmarks/cli/commands/test_get.py b/dvc/testing/benchmarks/cli/commands/test_get.py index 806b44399..1eb6deb31 100644 --- a/dvc/testing/benchmarks/cli/commands/test_get.py +++ b/dvc/testing/benchmarks/cli/commands/test_get.py @@ -1,3 +1,7 @@ +import pytest + + +@pytest.mark.flaky(max_runs=3, min_passes=1) def test_get(bench_dvc, tmp_dir, scm, dvc, make_dataset, remote): dataset = make_dataset( cache=False, files=False, dvcfile=True, commit=True, remote=True diff --git a/dvc/testing/benchmarks/cli/commands/test_import.py b/dvc/testing/benchmarks/cli/commands/test_import.py index c40733e39..2580ec5a5 100644 --- a/dvc/testing/benchmarks/cli/commands/test_import.py +++ b/dvc/testing/benchmarks/cli/commands/test_import.py @@ -1,3 +1,7 @@ +import pytest + + +@pytest.mark.flaky(max_runs=3, min_passes=1) def test_import(bench_dvc, tmp_dir, scm, dvc, make_dataset, remote): dataset = make_dataset( cache=False, files=False, dvcfile=True, commit=True, remote=True