From c979178674acd94367e53d423de62178f0e77a96 Mon Sep 17 00:00:00 2001 From: Steve Fink Date: Fri, 11 Apr 2025 03:51:19 +0000 Subject: [PATCH] Bug 1959786 - Ignore chunking in test_fuzzy.py r=taskgraph-reviewers,jmaher Differential Revision: https://phabricator.services.mozilla.com/D245130 --- tools/tryselect/test/test_fuzzy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/tryselect/test/test_fuzzy.py b/tools/tryselect/test/test_fuzzy.py index d8f180a332e7..93b160d7f3f2 100644 --- a/tools/tryselect/test/test_fuzzy.py +++ b/tools/tryselect/test/test_fuzzy.py @@ -160,7 +160,12 @@ def test_query_tags(run_mach, capfd, tag): index = output.find(delim) result = json.loads(output[index + len(delim) :]) tasks = result["parameters"]["try_task_config"]["tasks"] - assert sorted(tasks) == sorted(expected) + + # If enough test files change, the test-verify task may get chunked. + def canonical(tasks): + return sorted(t.rstrip("-*") for t in tasks) + + assert canonical(tasks) == canonical(expected) @pytest.mark.skipif(os.name == "nt", reason="fzf not installed on host")