Corrupt encoded bytes for unsupported cellular bundle test
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m3s
Foundation / checks (deploy) (push) Successful in 3m29s
Foundation / checks (tsan) (push) Successful in 9m5s
Foundation / checks (checks) (push) Successful in 38m8s
Foundation / checks (postgres) (push) Failing after 39m55s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m3s
Foundation / checks (deploy) (push) Successful in 3m29s
Foundation / checks (tsan) (push) Successful in 9m5s
Foundation / checks (checks) (push) Successful in 38m8s
Foundation / checks (postgres) (push) Failing after 39m55s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
encode_manifest refuses unsupported cellular version bundles, so the migration test could never produce the manifest it sends to the SQL parser (region migration test line 587). Encode the valid v1 manifest and bump the archive version byte at offset 188 instead. Refresh the dev session window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -581,11 +581,11 @@ void concurrent_authority_and_classification() {
|
||||
cellular_parameter, 5s);
|
||||
CHECK(parsed_cellular && parsed_cellular->size() == 1 &&
|
||||
(*parsed_cellular)[0][0].value_or("") == "4");
|
||||
auto wrong_cellular_versions = *cellular;
|
||||
++wrong_cellular_versions.cellular_versions.archive;
|
||||
const auto wrong_cellular_bytes = encode_manifest(wrong_cellular_versions);
|
||||
CHECK(wrong_cellular_bytes);
|
||||
const std::array wrong_cellular_parameter{bytea_of(*wrong_cellular_bytes)};
|
||||
// encode_manifest refuses unsupported bundles, so corrupt the encoded archive
|
||||
// version (u32 slot 8 of the bundle at offset 160) to reach the SQL parser.
|
||||
auto wrong_cellular_bytes = *cellular_bytes;
|
||||
++wrong_cellular_bytes[160 + (7 * 4)];
|
||||
const std::array wrong_cellular_parameter{bytea_of(wrong_cellular_bytes)};
|
||||
const auto refused_cellular = owner_db->query(
|
||||
"SELECT evolution.parse_checkpoint_manifest($1::bytea)", wrong_cellular_parameter, 5s);
|
||||
CHECK(!refused_cellular && sqlstate(refused_cellular.error()) == "EVL06");
|
||||
|
||||
Reference in New Issue
Block a user