From 06d8e3c6398e7a374e23e7c89cefd7658b8a7def Mon Sep 17 00:00:00 2001 From: dberenbaum Date: Tue, 9 May 2023 07:47:45 -0400 Subject: [PATCH] add random seed to benchmark stories --- dvc/testing/benchmarks/cli/stories/test_modify_data.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dvc/testing/benchmarks/cli/stories/test_modify_data.py b/dvc/testing/benchmarks/cli/stories/test_modify_data.py index 1ccff734e..cbb0d11cf 100644 --- a/dvc/testing/benchmarks/cli/stories/test_modify_data.py +++ b/dvc/testing/benchmarks/cli/stories/test_modify_data.py @@ -14,6 +14,7 @@ import pytest @pytest.mark.skipif(sys.version_info < (3, 10), reason="requires 3.10 glob.glob") def test_partial_add(bench_dvc, tmp_dir, dvc, dataset, remote): + random.seed(4231) # Move some files to create a partial dataset os.makedirs("partial-copy") for f in glob.glob("*", root_dir=dataset, recursive=True): # type: ignore[call-arg] @@ -36,6 +37,7 @@ def test_partial_add(bench_dvc, tmp_dir, dvc, dataset, remote): @pytest.mark.skipif(sys.version_info < (3, 10), reason="requires 3.10 glob.glob") def test_partial_remove(bench_dvc, tmp_dir, dvc, dataset, remote): + random.seed(5232) # Add/push full dataset dvc.add(str(dataset)) dvc.push()