diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-10 10:23:13 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-10 11:10:02 +0200 |
commit | 0afc1de20d04a62306084fc0355d7754ad7edf44 (patch) | |
tree | 88a21cc9766568e0611bbbd348a141452ecd1f6a /test/end-to-end/EXPRESSIONS | |
parent | 2e953b04bbd8e619172c9d0eeafd0342700d6ee9 (diff) | |
download | justbuild-0afc1de20d04a62306084fc0355d7754ad7edf44.tar.gz |
tests with infrastructure: keep remote build root
Often outputs are only referenced as blobs but not downloaded to the
working directory of the test. This can make it hard to understand
errors, as the respective artifacts are not available for inspection.
This is even more important in case of tests with a provided serve
endpoint as then even the error message of a failed serve build is
only referenced as blob. Solve this by keeping the local build root
of the remote-execution service using the fact that all objects are
transferred between the serve endpoint and the client go through
the remote-execution endpoint.
Diffstat (limited to 'test/end-to-end/EXPRESSIONS')
-rw-r--r-- | test/end-to-end/EXPRESSIONS | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/end-to-end/EXPRESSIONS b/test/end-to-end/EXPRESSIONS index 345b6069..711b1d94 100644 --- a/test/end-to-end/EXPRESSIONS +++ b/test/end-to-end/EXPRESSIONS @@ -12,6 +12,7 @@ , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" , "TIMEOUT_SCALE" + , "TEST_STANDALONE_SERVE" ] , "imports": { "artifacts_list": ["@", "rules", "", "field_artifacts_list"] @@ -82,6 +83,13 @@ ] } ] + , [ "out_dirs" + , { "type": "if" + , "cond": {"type": "var", "name": "TEST_STANDALONE_SERVE"} + , "then": ["serve"] + , "else": ["remote"] + } + ] , [ "inputs" , { "type": "map_union" , "$1": @@ -125,6 +133,7 @@ , "then": { "type": "ACTION" , "outs": {"type": "var", "name": "outs"} + , "out_dirs": {"type": "var", "name": "out_dirs"} , "inputs": {"type": "var", "name": "inputs"} , "cmd": {"type": "var", "name": "cmd"} , "env": {"type": "var", "name": "test_env"} @@ -151,6 +160,7 @@ , "else": { "type": "ACTION" , "outs": {"type": "var", "name": "outs"} + , "out_dirs": {"type": "var", "name": "out_dirs"} , "inputs": {"type": "var", "name": "inputs"} , "cmd": {"type": "var", "name": "cmd"} , "env": {"type": "var", "name": "test_env"} @@ -187,6 +197,7 @@ , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" , "TIMEOUT_SCALE" + , "TEST_STANDALONE_SERVE" ] , "imports": {"action": "test-action"} , "expression": |