Format session window changes
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m50s
Foundation / checks (checks) (push) Failing after 11m2s
Foundation / checks (network) (push) Successful in 9m30s
Foundation / checks (client) (push) Successful in 12m18s
Foundation / checks (tsan) (push) Successful in 7m36s
Foundation / checks (postgres) (push) Failing after 23m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m50s
Foundation / checks (checks) (push) Failing after 11m2s
Foundation / checks (network) (push) Successful in 9m30s
Foundation / checks (client) (push) Successful in 12m18s
Foundation / checks (tsan) (push) Successful in 7m36s
Foundation / checks (postgres) (push) Failing after 23m9s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -483,8 +483,8 @@ template <typename State> int serve(Options& o) {
|
|||||||
admission_name(admitted.error()));
|
admission_name(admitted.error()));
|
||||||
pending.reset();
|
pending.reset();
|
||||||
}
|
}
|
||||||
const bool m10_accepting = m10->accepting(static_cast<std::uint64_t>(
|
const bool m10_accepting = m10->accepting(
|
||||||
std::chrono::duration_cast<std::chrono::seconds>(
|
static_cast<std::uint64_t>(std::chrono::duration_cast<std::chrono::seconds>(
|
||||||
std::chrono::system_clock::now().time_since_epoch())
|
std::chrono::system_clock::now().time_since_epoch())
|
||||||
.count()));
|
.count()));
|
||||||
if (o.synthetic && !drain_deadline && (!m10->enabled() || m10_accepting)) {
|
if (o.synthetic && !drain_deadline && (!m10->enabled() || m10_accepting)) {
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ class SessionWindow {
|
|||||||
if (colon == std::string_view::npos || colon == 0 || colon + 1 == specification.size())
|
if (colon == std::string_view::npos || colon == 0 || colon + 1 == specification.size())
|
||||||
return std::unexpected(Error::malformed);
|
return std::unexpected(Error::malformed);
|
||||||
const auto id = specification.substr(0, colon);
|
const auto id = specification.substr(0, colon);
|
||||||
if (id.find_first_not_of("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._-") !=
|
if (id.find_first_not_of(
|
||||||
|
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._-") !=
|
||||||
std::string_view::npos)
|
std::string_view::npos)
|
||||||
return std::unexpected(Error::malformed);
|
return std::unexpected(Error::malformed);
|
||||||
std::uint64_t deadline{};
|
std::uint64_t deadline{};
|
||||||
@@ -45,10 +46,18 @@ class SessionWindow {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
[[nodiscard]] bool closed() const noexcept { return closed_; }
|
[[nodiscard]] bool closed() const noexcept {
|
||||||
[[nodiscard]] std::uint64_t deadline_seconds() const noexcept { return deadline_seconds_; }
|
return closed_;
|
||||||
[[nodiscard]] const std::string& activation_id() const noexcept { return activation_id_; }
|
}
|
||||||
void close() noexcept { closed_ = true; }
|
[[nodiscard]] std::uint64_t deadline_seconds() const noexcept {
|
||||||
|
return deadline_seconds_;
|
||||||
|
}
|
||||||
|
[[nodiscard]] const std::string& activation_id() const noexcept {
|
||||||
|
return activation_id_;
|
||||||
|
}
|
||||||
|
void close() noexcept {
|
||||||
|
closed_ = true;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SessionWindow(std::string activation_id, std::uint64_t deadline_seconds)
|
SessionWindow(std::string activation_id, std::uint64_t deadline_seconds)
|
||||||
|
|||||||
@@ -90,11 +90,17 @@ struct Setup {
|
|||||||
expect(issuer.has_value(), "issuer key");
|
expect(issuer.has_value(), "issuer key");
|
||||||
}
|
}
|
||||||
[[nodiscard]] std::vector<std::string> args() const {
|
[[nodiscard]] std::vector<std::string> args() const {
|
||||||
return server_args(region,
|
return server_args(
|
||||||
{"--synthetic-inputs", "development-v1", "--m10-listen", "127.0.0.1:0",
|
region,
|
||||||
"--m10-cert", (region.root / "server.pem").string(), "--m10-key",
|
{"--synthetic-inputs", "development-v1", "--m10-listen", "127.0.0.1:0", "--m10-cert",
|
||||||
|
(region.root / "server.pem").string(), "--m10-key",
|
||||||
(region.root / "server.key").string(), "--m10-issuer",
|
(region.root / "server.key").string(), "--m10-issuer",
|
||||||
(region.root / "issuer.pub").string(), "--m10-environment", "dev", "--session-window", "test-" + std::to_string(static_cast<std::uint64_t>(std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count()) + 1200)});
|
(region.root / "issuer.pub").string(), "--m10-environment", "dev", "--session-window",
|
||||||
|
"test-" + std::to_string(static_cast<std::uint64_t>(
|
||||||
|
std::chrono::duration_cast<std::chrono::seconds>(
|
||||||
|
std::chrono::system_clock::now().time_since_epoch())
|
||||||
|
.count()) +
|
||||||
|
1200)});
|
||||||
}
|
}
|
||||||
[[nodiscard]] WireGrant grant(const AccountId& who, std::uint64_t serial) const {
|
[[nodiscard]] WireGrant grant(const AccountId& who, std::uint64_t serial) const {
|
||||||
GrantClaims c;
|
GrantClaims c;
|
||||||
|
|||||||
Reference in New Issue
Block a user