diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-30 10:29:03 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-30 14:17:46 +0200 |
commit | 7208a562340074935a9cd119569d8007b6897777 (patch) | |
tree | 77005c2a1742612ecb00b1516cba24e439749f90 /test/end-to-end/serve-service/TARGETS | |
parent | 67cc02e4a9a3af7038ebef1245aacf8895a26573 (diff) | |
download | justbuild-7208a562340074935a9cd119569d8007b6897777.tar.gz |
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.
Diffstat (limited to 'test/end-to-end/serve-service/TARGETS')
-rw-r--r-- | test/end-to-end/serve-service/TARGETS | 15 |
1 files changed, 15 insertions, 0 deletions
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" |