Skip to content

Commit f9088e1

Browse files
authored
dvc: rename pipelines.yaml -> dvc.yaml (#3710)
1 parent 71d156a commit f9088e1

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

dvc/dvcfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
DVC_FILE = "Dvcfile"
2929
DVC_FILE_SUFFIX = ".dvc"
30-
PIPELINE_FILE = "pipelines.yaml"
31-
PIPELINE_LOCK = "pipelines.lock"
30+
PIPELINE_FILE = "dvc.yaml"
31+
PIPELINE_LOCK = "dvc.lock"
3232

3333

3434
class LockfileCorruptedError(DvcException):

tests/func/test_data_cloud.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -828,22 +828,22 @@ def test_pipeline_file_target_ops(tmp_dir, dvc, local_remote, run_copy):
828828
assert len(recurse_list_dir(fspath_py35(local_remote))) == 3
829829

830830
clean(outs, dvc)
831-
assert set(dvc.pull(["pipelines.yaml"])["added"]) == {"lorem2", "baz"}
831+
assert set(dvc.pull(["dvc.yaml"])["added"]) == {"lorem2", "baz"}
832832

833833
clean(outs, dvc)
834834
assert set(dvc.pull()["added"]) == set(outs)
835835

836836
# clean everything in remote and push
837837
clean(local_remote.iterdir())
838-
dvc.push(["pipelines.yaml:copy-ipsum-baz"])
838+
dvc.push(["dvc.yaml:copy-ipsum-baz"])
839839
assert len(recurse_list_dir(fspath_py35(local_remote))) == 1
840840

841841
clean(local_remote.iterdir())
842-
dvc.push(["pipelines.yaml"])
842+
dvc.push(["dvc.yaml"])
843843
assert len(recurse_list_dir(fspath_py35(local_remote))) == 2
844844

845845
with pytest.raises(StageNotFound):
846-
dvc.push(["pipelines.yaml:StageThatDoesNotExist"])
846+
dvc.push(["dvc.yaml:StageThatDoesNotExist"])
847847

848848
with pytest.raises(StageNotFound):
849-
dvc.pull(["pipelines.yaml:StageThatDoesNotExist"])
849+
dvc.pull(["dvc.yaml:StageThatDoesNotExist"])

tests/func/test_pipeline.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -278,20 +278,20 @@ def test_pipeline_list_show_multistage(tmp_dir, dvc, run_copy, caplog):
278278
with caplog.at_level(logging.INFO, "dvc"):
279279
command._show("foobar.dvc", False, False, False)
280280
output = caplog.text.splitlines()
281-
assert "pipelines.yaml:copy-foo-bar" in output[0]
281+
assert "dvc.yaml:copy-foo-bar" in output[0]
282282
assert "foobar.dvc" in output[1]
283283

284284
caplog.clear()
285285
with caplog.at_level(logging.INFO, "dvc"):
286-
command._show("pipelines.yaml:copy-foo-bar", False, False, False)
287-
assert "pipelines.yaml:copy-foo-bar" in caplog.text
286+
command._show("dvc.yaml:copy-foo-bar", False, False, False)
287+
assert "dvc.yaml:copy-foo-bar" in caplog.text
288288
assert "foobar.dvc" not in caplog.text
289289

290290
command = CmdPipelineList([])
291291
caplog.clear()
292292
with caplog.at_level(logging.INFO, "dvc"):
293293
command.run()
294-
assert "pipelines.yaml:copy-foo-bar" in caplog.text
294+
assert "dvc.yaml:copy-foo-bar" in caplog.text
295295
assert "foobar.dvc" in caplog.text
296296
assert "1 pipelines in total"
297297

@@ -302,10 +302,10 @@ def test_pipeline_ascii_multistage(tmp_dir, dvc, run_copy):
302302
run_copy("bar", "foobar")
303303
command = CmdPipelineShow([])
304304
nodes, edges, is_tree = command._build_graph("foobar.dvc")
305-
assert set(nodes) == {"pipelines.yaml:copy-foo-bar", "foobar.dvc"}
305+
assert set(nodes) == {"dvc.yaml:copy-foo-bar", "foobar.dvc"}
306306
assert set(edges) == {
307-
("foobar.dvc", "pipelines.yaml:copy-foo-bar"),
307+
("foobar.dvc", "dvc.yaml:copy-foo-bar"),
308308
}
309309

310-
nodes, edges, is_tree = command._build_graph("pipelines.yaml:copy-foo-bar")
311-
assert set(nodes) == {"pipelines.yaml:copy-foo-bar"}
310+
nodes, edges, is_tree = command._build_graph("dvc.yaml:copy-foo-bar")
311+
assert set(nodes) == {"dvc.yaml:copy-foo-bar"}

tests/func/test_repo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ def collect_outs(*args, **kwargs):
8686
"foobar",
8787
"foo",
8888
}
89-
assert collect_outs("pipelines.yaml:copy-foo-foobar", recursive=True) == {
89+
assert collect_outs("dvc.yaml:copy-foo-foobar", recursive=True) == {
9090
"foobar"
9191
}
9292

9393
run_copy("foobar", "baz", name="copy-foobar-baz")
94-
assert collect_outs("pipelines.yaml") == {"foobar", "baz"}
95-
assert collect_outs("pipelines.yaml", with_deps=True) == {
94+
assert collect_outs("dvc.yaml") == {"foobar", "baz"}
95+
assert collect_outs("dvc.yaml", with_deps=True) == {
9696
"foobar",
9797
"baz",
9898
"foo",

tests/func/test_stage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def test_stage_addressing(tmp_dir, dvc, run_copy):
200200
assert stage1.addressing == "bar.dvc"
201201

202202
stage2 = run_copy("bar", "baz", name="copy-bar-baz")
203-
assert stage2.addressing == "pipelines.yaml:copy-bar-baz"
203+
assert stage2.addressing == "dvc.yaml:copy-bar-baz"
204204

205205
folder = tmp_dir / "dir"
206206
folder.mkdir()

tests/func/test_status.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,20 @@ def test_status_on_pipeline_stages(tmp_dir, dvc, run_copy):
7474

7575
stage.cmd = " ".join(stage.cmd.split())
7676
stage.dvcfile._dump_pipeline_file(stage)
77-
assert dvc.status() == {"pipelines.yaml:copy-foo-bar": ["changed command"]}
77+
assert dvc.status() == {"dvc.yaml:copy-foo-bar": ["changed command"]}
7878

7979
# delete outputs
8080
(tmp_dir / "bar").unlink()
8181
assert dvc.status() == {
82-
"pipelines.yaml:copy-foo-bar": [
82+
"dvc.yaml:copy-foo-bar": [
8383
{"changed outs": {"bar": "deleted"}},
8484
"changed command",
8585
]
8686
}
8787
(tmp_dir / "foo").unlink()
8888
assert dvc.status() == {
8989
"foo.dvc": [{"changed outs": {"foo": "deleted"}}],
90-
"pipelines.yaml:copy-foo-bar": [
90+
"dvc.yaml:copy-foo-bar": [
9191
{"changed deps": {"foo": "deleted"}},
9292
{"changed outs": {"bar": "deleted"}},
9393
"changed command",

tests/unit/utils/test_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ def test_resolve_output(inp, out, is_dir, expected, mocker):
138138
@pytest.mark.parametrize(
139139
"inp,out, default",
140140
[
141-
["pipelines.yaml", ("pipelines.yaml", None), None],
142-
["pipelines.yaml:name", ("pipelines.yaml", "name"), None],
143-
[":name", ("pipelines.yaml", "name"), None],
141+
["dvc.yaml", ("dvc.yaml", None), None],
142+
["dvc.yaml:name", ("dvc.yaml", "name"), None],
143+
[":name", ("dvc.yaml", "name"), None],
144144
["stage.dvc", ("stage.dvc", None), None],
145-
["pipelines.yaml:name", ("pipelines.yaml", "name"), None],
145+
["dvc.yaml:name", ("dvc.yaml", "name"), None],
146146
["../models/stage.dvc", ("../models/stage.dvc", None), "def"],
147147
[":name", ("default", "name"), "default"],
148148
[":name", ("default", "name"), "default"],
@@ -154,8 +154,8 @@ def test_parse_target(inp, out, default):
154154

155155
def test_hint_on_lockfile():
156156
with pytest.raises(Exception) as exc:
157-
assert parse_target("pipelines.lock:name")
158-
assert "pipelines.yaml:name" in str(exc.value)
157+
assert parse_target("dvc.lock:name")
158+
assert "dvc.yaml:name" in str(exc.value)
159159

160160

161161
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)