Format M11 cellular code with clang-format 19
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m52s
Foundation / checks (client) (push) Failing after 4m25s
Foundation / checks (network) (push) Failing after 3m2s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 5m47s
Foundation / checks (postgres) (push) Canceled after 1m24s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m52s
Foundation / checks (client) (push) Failing after 4m25s
Foundation / checks (network) (push) Failing after 3m2s
Foundation / checks (tsan) (push) Failing after 33s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 5m47s
Foundation / checks (postgres) (push) Canceled after 1m24s
This commit is contained in:
@@ -204,11 +204,11 @@ provision_cellular_region(Postgres& owner, const FilesystemObjectStore& objects,
|
||||
std::uint64_t frame, const server::CellularLives& opening, Uuid commit,
|
||||
const Sha256Digest& build, std::chrono::milliseconds timeout);
|
||||
[[nodiscard]] std::expected<PublishedCellularBatch, CellularPublicationFailure>
|
||||
publish_cellular_batch(Postgres& db, const FilesystemObjectStore& objects,
|
||||
const LeaseGrant& lease, const CommittedCheckpoint& predecessor,
|
||||
const server::CellularBatch& batch, const server::CellularLives& candidate,
|
||||
Uuid commit, const Sha256Digest& build,
|
||||
std::chrono::milliseconds timeout, const PublishHooks& hooks = {},
|
||||
publish_cellular_batch(Postgres& db, const FilesystemObjectStore& objects, const LeaseGrant& lease,
|
||||
const CommittedCheckpoint& predecessor, const server::CellularBatch& batch,
|
||||
const server::CellularLives& candidate, Uuid commit,
|
||||
const Sha256Digest& build, std::chrono::milliseconds timeout,
|
||||
const PublishHooks& hooks = {},
|
||||
std::span<const server::CellularActionRecord> actions = {});
|
||||
[[nodiscard]] std::expected<CommittedCheckpoint, CellularPublicationFailure>
|
||||
retry_cellular_prepared(Postgres& db, const CellularPreparedCommit& prepared,
|
||||
@@ -218,8 +218,7 @@ resolve_cellular_prepared(Postgres& db, const CellularPreparedCommit& prepared,
|
||||
std::chrono::milliseconds timeout);
|
||||
[[nodiscard]] std::expected<RecoveredCellularCheckpoint, RecoveryFailure>
|
||||
recover_cellular_checkpoint(Postgres& db, const FilesystemObjectStore& objects, RegionKey key,
|
||||
const LeaseGrant& lease,
|
||||
std::span<const Sha256Digest> retained_builds,
|
||||
const LeaseGrant& lease, std::span<const Sha256Digest> retained_builds,
|
||||
std::chrono::milliseconds timeout);
|
||||
|
||||
// After an `unknown` publication: resolve exactly the prepared bytes. A committed
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#include "evo/persistence/region_lease.hpp"
|
||||
#include "evo/processes/environmental_community.hpp"
|
||||
#include "evo/processes/lineage_region.hpp"
|
||||
#include "evo/server/lifecycle/cellular_lives.hpp"
|
||||
#include "evo/server/lifecycle/cellular_batch.hpp"
|
||||
#include "evo/server/lifecycle/cellular_lives.hpp"
|
||||
#include "evo/server/lifecycle/primitive_batch.hpp"
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
@@ -97,7 +97,7 @@ inline constexpr std::size_t max_lineage_payload_bytes = processes::max_lineage_
|
||||
return profile == CheckpointProfile::environmental_v1 ? max_environmental_payload_bytes
|
||||
: profile == CheckpointProfile::environmental_lineage_v1 ? max_lineage_payload_bytes
|
||||
: profile == CheckpointProfile::primitive_lives_v1 ? server::max_primitive_lives_bytes
|
||||
: profile == CheckpointProfile::cellular_lives_v1 ? server::max_cellular_lives_bytes
|
||||
: profile == CheckpointProfile::cellular_lives_v1 ? server::max_cellular_lives_bytes
|
||||
: 0;
|
||||
}
|
||||
inline constexpr std::uint64_t max_checkpoint_ticks = 64;
|
||||
@@ -159,6 +159,5 @@ restore_lineage_payload(std::span<const std::uint8_t> payload, const CheckpointM
|
||||
restore_primitive_payload(std::span<const std::uint8_t> payload,
|
||||
const CheckpointManifest& manifest);
|
||||
[[nodiscard]] std::expected<std::unique_ptr<server::CellularLives>, CheckpointError>
|
||||
restore_cellular_payload(std::span<const std::uint8_t> payload,
|
||||
const CheckpointManifest& manifest);
|
||||
restore_cellular_payload(std::span<const std::uint8_t> payload, const CheckpointManifest& manifest);
|
||||
} // namespace evo::persistence
|
||||
|
||||
@@ -82,8 +82,7 @@ publish_region_checkpoint(Postgres& db, std::span<const std::uint8_t> manifest,
|
||||
publish_cellular_checkpoint(Postgres& db, std::span<const std::uint8_t> manifest,
|
||||
std::span<const std::uint8_t> decisions,
|
||||
std::span<const std::uint8_t> actions,
|
||||
std::span<const std::uint8_t> trace,
|
||||
std::chrono::milliseconds timeout);
|
||||
std::span<const std::uint8_t> trace, std::chrono::milliseconds timeout);
|
||||
|
||||
enum class Resolution : std::uint8_t {
|
||||
committed, // Exact bytes are durable; receipt holds the head. Grants no authority.
|
||||
@@ -107,13 +106,10 @@ resolve_region_commit(Postgres& db, RegionKey key, const Uuid& commit,
|
||||
std::span<const std::uint8_t> actions, std::chrono::milliseconds timeout);
|
||||
|
||||
// Schema v20 resolution also compares the immutable profile-4 cellular action block.
|
||||
[[nodiscard]] std::expected<ResolvedCommit, LeaseStoreFailure>
|
||||
resolve_cellular_region_commit(Postgres& db, RegionKey key, const Uuid& commit,
|
||||
std::span<const std::uint8_t> manifest,
|
||||
std::span<const std::uint8_t> decisions,
|
||||
std::span<const std::uint8_t> actions,
|
||||
std::span<const std::uint8_t> trace,
|
||||
std::chrono::milliseconds timeout);
|
||||
[[nodiscard]] std::expected<ResolvedCommit, LeaseStoreFailure> resolve_cellular_region_commit(
|
||||
Postgres& db, RegionKey key, const Uuid& commit, std::span<const std::uint8_t> manifest,
|
||||
std::span<const std::uint8_t> decisions, std::span<const std::uint8_t> actions,
|
||||
std::span<const std::uint8_t> trace, std::chrono::milliseconds timeout);
|
||||
|
||||
// Load the immutable action block for a committed profile-4 link under the current lease.
|
||||
// Empty means this commit has no cellular publication row; a missing row for a progressing
|
||||
@@ -146,9 +142,8 @@ struct CommittedActionRecord {
|
||||
friend bool operator==(const CommittedActionRecord&, const CommittedActionRecord&) = default;
|
||||
};
|
||||
[[nodiscard]] std::expected<std::optional<CommittedActionRecord>, LeaseStoreFailure>
|
||||
find_region_action_record(Postgres& db, RegionKey key, const LeaseGrant& lease,
|
||||
const Uuid& account, std::uint64_t action_id,
|
||||
std::chrono::milliseconds timeout);
|
||||
find_region_action_record(Postgres& db, RegionKey key, const LeaseGrant& lease, const Uuid& account,
|
||||
std::uint64_t action_id, std::chrono::milliseconds timeout);
|
||||
// The same for several (account, action) pairs in one statement, answered in order
|
||||
// (M10.9d, ADR-0097). Empty asks nothing.
|
||||
struct ActionRef {
|
||||
@@ -160,8 +155,7 @@ find_region_actions(Postgres& db, RegionKey key, const LeaseGrant& lease,
|
||||
std::span<const ActionRef> actions, std::chrono::milliseconds timeout);
|
||||
[[nodiscard]] std::expected<std::vector<std::optional<CommittedActionRecord>>, LeaseStoreFailure>
|
||||
find_region_action_records(Postgres& db, RegionKey key, const LeaseGrant& lease,
|
||||
std::span<const ActionRef> actions,
|
||||
std::chrono::milliseconds timeout);
|
||||
std::span<const ActionRef> actions, std::chrono::milliseconds timeout);
|
||||
|
||||
struct CommittedDecision {
|
||||
std::uint64_t commit_sequence{};
|
||||
|
||||
Reference in New Issue
Block a user