summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-13 10:04:16 +0100
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2023-12-14 17:08:51 +0100
commitce29134d67e1af2c339936af73e4d6a82c8b337e (patch)
treeecaffc876be481daf56891e090f8b222b27c5a60
parentf4b43e21b238e383b171fcd520806d77cffa24dc (diff)
downloadjustbuild-ce29134d67e1af2c339936af73e4d6a82c8b337e.tar.gz
just serve target: Add clarifying comment in shard computation
-rw-r--r--src/buildtool/serve_api/serve_service/target.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/buildtool/serve_api/serve_service/target.cpp b/src/buildtool/serve_api/serve_service/target.cpp
index 8e46b77b..ab4b24d2 100644
--- a/src/buildtool/serve_api/serve_service/target.cpp
+++ b/src/buildtool/serve_api/serve_service/target.cpp
@@ -132,7 +132,11 @@ auto TargetService::ServeTarget(
description["endpoint dispatch list"] = std::move(dispatch_list);
}
- // add backend description to CAS
+ // add backend description to CAS;
+ // we match the sharding strategy from regular just builds, i.e., allowing
+ // fields with invalid UTF-8 characters to be considered for the serialized
+ // JSON description, but using the UTF-8 replacement character to solve any
+ // decoding errors.
auto const description_str = description.dump(
2, ' ', false, nlohmann::json::error_handler_t::replace);
auto execution_backend_dgst =