Bug 1822393 - Set the source and target compatibility compile options for non-GeckoVi...
[gecko.git] / taskcluster / test / test_autoland.py
blob05d181620aa90e18f16ce73bf4d7920394b65f62
1 # Any copyright is dedicated to the public domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
4 import pytest
5 from mozunit import main
7 pytestmark = pytest.mark.slow
8 PARAMS = {
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,
15 "pushlog_id": "2",
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(
25 "func",
27 pytest.param(
28 lambda t: t.kind == "build" and "fuzzing" in t.attributes["build_platform"],
29 id="no fuzzing builds",
31 pytest.param(
32 lambda t: t.kind == "build" and "ccov" in t.attributes["build_platform"],
33 id="no ccov builds",
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)]
42 for t in tasks:
43 print_dependents(optimized_task_graph, t)
44 assert tasks == []
47 if __name__ == "__main__":
48 main()