summaryrefslogtreecommitdiff
path: root/test/utils/serve_service/test_runner.py
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-09-12 17:59:20 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-09-15 14:42:47 +0200
commitf821e6b70c59037384ac6afb3a44517fe46953e6 (patch)
tree58334f832d4265afe8552c4cf542dcd41a7e75f6 /test/utils/serve_service/test_runner.py
parent7f5e729b76865bbf01d1405b08f3292cee4e0e20 (diff)
downloadjustbuild-f821e6b70c59037384ac6afb3a44517fe46953e6.tar.gz
just serve: add remote execution endpoint and --fetch-absent option
The serve service will communicate with this endpoint when needed, as well as ensure artifacts it provides are synced with the remote execution CAS, if requested by the client. If just-mr is given the --fetch-absent option, it Always produce present roots irrespective of the 'absent' pragma. For Git repositories marked with the 'absent' pragma, first try to fetch any commit trees provided by the serve endpoint from the execution endpoint CAS, before reverting to a network fetch. Co-authored-by: Klaus Aehlig <klaus.aehlig@huawei.com> Co-authored-by: Alberto Sartori <alberto.sartori@huawei.com>
Diffstat (limited to 'test/utils/serve_service/test_runner.py')
-rwxr-xr-xtest/utils/serve_service/test_runner.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/utils/serve_service/test_runner.py b/test/utils/serve_service/test_runner.py
index 08681646..b043b363 100755
--- a/test/utils/serve_service/test_runner.py
+++ b/test/utils/serve_service/test_runner.py
@@ -62,6 +62,7 @@ if os.path.exists(TEST_SERVE_REPO_2):
SERVE_REPOSITORIES = ";".join([TEST_SERVE_REPO_1, TEST_SERVE_REPO_2])
REMOTE_SERVE_INFO = os.path.join(REMOTE_DIR, "info_serve.json")
+SERVE_LBR = os.path.join(REMOTE_DIR, "serve-build-root")
if os.path.exists(REMOTE_SERVE_INFO):
print(f"Warning: removing unexpected info file {REMOTE_SERVE_INFO}")
@@ -79,7 +80,8 @@ with open(SERVE_CONFIG_FILE, "w") as f:
},
"remote service": {
"info file": REMOTE_SERVE_INFO
- }
+ },
+ "local build root": SERVE_LBR
}))
serve_cmd = ["./bin/just", "serve", SERVE_CONFIG_FILE]