Fix cellular manifest parser alias collision
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (postgres) (push) Failing after 32m36s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (client) (push) Successful in 4s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / checks (postgres) (push) Failing after 32m36s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -7079,3 +7079,9 @@ increased the 360-byte manifest to 364 bytes. Migration 32 now intercepts v3
|
|||||||
manifests, writes the four-byte little-endian value directly, and delegates to
|
manifests, writes the four-byte little-endian value directly, and delegates to
|
||||||
the preserved v27 parser. The PostgreSQL migration integration test covers the
|
the preserved v27 parser. The PostgreSQL migration integration test covers the
|
||||||
v1-to-v2-to-v3 path. CI validation and Harbor image publication are pending.
|
v1-to-v2-to-v3 path. CI validation and Harbor image publication are pending.
|
||||||
|
|
||||||
|
CI run #326 compiled the PostgreSQL targets but failed while applying migration
|
||||||
|
32: it tried to rename the current parser to `parse_checkpoint_manifest_v27`, a
|
||||||
|
name already created by migration 28. The pending migration now uses the unique
|
||||||
|
`parse_checkpoint_manifest_v31` alias. The PostgreSQL gate and Harbor image
|
||||||
|
publication are pending another CI run.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
-- enlarged the manifest and the v24 parser correctly rejected it as malformed.
|
-- enlarged the manifest and the v24 parser correctly rejected it as malformed.
|
||||||
-- Preserve v27's parser and intercept v3 manifests before its broken branch.
|
-- Preserve v27's parser and intercept v3 manifests before its broken branch.
|
||||||
ALTER FUNCTION evolution.parse_checkpoint_manifest(bytea)
|
ALTER FUNCTION evolution.parse_checkpoint_manifest(bytea)
|
||||||
RENAME TO parse_checkpoint_manifest_v27;
|
RENAME TO parse_checkpoint_manifest_v31;
|
||||||
|
|
||||||
CREATE FUNCTION evolution.parse_checkpoint_manifest(m bytea)
|
CREATE FUNCTION evolution.parse_checkpoint_manifest(m bytea)
|
||||||
RETURNS evolution.checkpoint_manifest LANGUAGE plpgsql IMMUTABLE
|
RETURNS evolution.checkpoint_manifest LANGUAGE plpgsql IMMUTABLE
|
||||||
@@ -22,11 +22,11 @@ BEGIN
|
|||||||
AND evolution.manifest_uint(m, 236, 4) = 1 THEN
|
AND evolution.manifest_uint(m, 236, 4) = 1 THEN
|
||||||
normalized := overlay(m PLACING v2_bundle FROM 161 FOR 36);
|
normalized := overlay(m PLACING v2_bundle FROM 161 FOR 36);
|
||||||
normalized := overlay(normalized PLACING decode('03000000', 'hex') FROM 233 FOR 4);
|
normalized := overlay(normalized PLACING decode('03000000', 'hex') FROM 233 FOR 4);
|
||||||
r := evolution.parse_checkpoint_manifest_v27(normalized);
|
r := evolution.parse_checkpoint_manifest_v31(normalized);
|
||||||
r.versions := v3_bundle;
|
r.versions := v3_bundle;
|
||||||
RETURN r;
|
RETURN r;
|
||||||
END IF;
|
END IF;
|
||||||
RETURN evolution.parse_checkpoint_manifest_v27(m);
|
RETURN evolution.parse_checkpoint_manifest_v31(m);
|
||||||
END $$;
|
END $$;
|
||||||
REVOKE ALL ON FUNCTION evolution.parse_checkpoint_manifest(bytea) FROM PUBLIC;
|
REVOKE ALL ON FUNCTION evolution.parse_checkpoint_manifest(bytea) FROM PUBLIC;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user