feat(worker): add the vbs remote-execution worker client
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 9s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s

This commit is contained in:
faumaray committed 2026-12-05 11:18:22 +03:00
1 parent 1ae72e4d07
commit 0674b7f9fe
10 files changed
+423 -1

No files matched your search

+19
View File
@@ -1174,4 +1174,23 @@ std::size_t StateStore::recorded_action_count() const {
return db ? db->actions.size() : 0;
}
Void::Result::Result<std::string, Void::Result::Error>
StateStore::export_action_record_json(std::string_view action_key) const {
auto lock = Platform::FileLock::acquire(lock_file_, Platform::LockMode::Shared);
if (!lock) {
return std::unexpected{lock.error()};
}
auto db = load_db_locked();
if (!db) {
return std::unexpected{db.error()};
}
const auto it = db->actions.find(std::string{action_key});
if (it == db->actions.end()) {
return std::unexpected{
make_error(Void::System::SystemErrorCode::not_found,
std::format("no local action record for '{}'", action_key))};
}
return serialize_action(it->second);
}
} // namespace Void::Build::State