1 # Any copyright is dedicated to the public domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
5 from mozunit
import main
7 pytestmark
= pytest
.mark
.slow
9 "head_repository": "https://hg.mozilla.org/integration/autoland",
10 "project": "autoland",
11 # These ensure this isn't considered a backstop. The pushdate must
12 # be slightly higher than the one in data/pushes.json, and
13 # pushlog_id must not be a multiple of 10.
14 "pushdate": 1593029536,
19 def test_generate_graph(optimized_task_graph
):
20 """Simply tests that generating the graph does not fail."""
21 assert len(optimized_task_graph
.tasks
) > 0
24 @pytest.mark
.parametrize(
28 lambda t
: t
.kind
== "build" and "fuzzing" in t
.attributes
["build_platform"],
29 id="no fuzzing builds",
32 lambda t
: t
.kind
== "build" and "ccov" in t
.attributes
["build_platform"],
37 def test_tasks_are_not_scheduled(
38 optimized_task_graph
, filter_tasks
, print_dependents
, func
40 """Ensure the specified tasks are not scheduled on autoland."""
41 tasks
= [t
.label
for t
in filter_tasks(optimized_task_graph
, func
)]
43 print_dependents(optimized_task_graph
, t
)
47 if __name__
== "__main__":