From 7208a562340074935a9cd119569d8007b6897777 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 30 May 2025 10:29:03 +0200 Subject: Add end-to-end test for serving complex targets Add a test asking serve to provide a target where both, the dependency as well as the action graph has both a wide node (a target with a large number of direct dependencies) as well as a deep node (a node where the chain of dependencies is long). That target is requested serveral times in parallel to verify that such targets can also be served under load. The process actually tested is the `just serve` process implicit to the "with serve" rule. --- test/end-to-end/serve-service/TARGETS | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/end-to-end/serve-service/TARGETS') diff --git a/test/end-to-end/serve-service/TARGETS b/test/end-to-end/serve-service/TARGETS index 4830017c..f31720a6 100644 --- a/test/end-to-end/serve-service/TARGETS +++ b/test/end-to-end/serve-service/TARGETS @@ -159,6 +159,20 @@ , "repos": ["interruption-test (data)"] , "keep-dirs": ["out"] } +, "load test (data)": + { "type": "generic" + , "outs": ["ROOT", "TARGETS"] + , "cmds": ["touch ROOT", "python3 wide-deep-targets.py"] + , "deps": ["wide-deep-targets.py"] + } +, "load test": + { "type": ["end-to-end", "with serve"] + , "name": ["load-test"] + , "test": ["load-test.sh"] + , "deps": [["", "mr-tool-under-test"], ["", "tool-under-test"]] + , "repos": ["load test (data)"] + , "keep-dirs": ["out"] + } , "serve-many-targets (data)": { "type": "install" , "files": {"ROOT": "data/ROOT", "TARGETS": "data/targets/TARGETS.transform"} @@ -191,6 +205,7 @@ , "describe" , "failure-report" , "interruption-test" + , "load test" , "serve-export-deps" , "serve-many-targets" , "serve-query-target-cache-value" -- cgit v1.2.3