Repository navigation
[#1741] Import full WAL-G backups with pgmoneta-muse - #1765
manishpatel00 wants to merge 1 commit into
Conversation
…ories Read completion metadata, compressed tar partitions and recovery WAL without invoking WAL-G. Validate and stage imports before publication. Register real LZ4/Zstandard restore and negative cases in CTest and CI. Refs pgmoneta#1741 Co-authored-by: copilot-swe-agent[bot] <[email protected]> Signed-off-by: Manish Kumar <[email protected]>
3bcef09 to
82743ee
Compare
|
@ecleon26 Addressed in 82743ee. Production migration now reads the local WAL-G repository directly; wal-g is used only to generate test repositories. The integration test is registered with CTest and runs in CI. LZ4/Zstandard import, pg_verifybackup, pgmoneta restore, PostgreSQL startup, known-row verification and negative cases passed on PostgreSQL 16/WAL-G 3.0.10. clang-format 21 and whitespace checks also passed. Rebased and squashed to one signed-off commit; validation links and supported scope are in the updated description. |
82743ee to
0de3fa1
Compare
|
Fixed the GCC Release -Werror=maybe-uninitialized failure in collect_tar_parts() by initializing the partition number. The existing partition sequence validation remains unchanged. Updated commit: 0de3fa1; the PR remains one signed-off commit on current main. Verified the remote tree differs from the previous revision by this one-line change only. New CI is queued: https://github.com/pgmoneta/pgmoneta/actions/runs/47052222924 . The previous Clang Debug 18 failure reported that the hosted runner lost communication; it did not provide a compiler failure. Build success for the new revision is not yet verified. |
Refs #1741
Description
Import a named full backup directly from a local WAL-G repository, including the WAL needed through the backup end LSN. Production migration does not invoke WAL-G. Source support is limited to unencrypted LZ4/Zstandard backups without incremental chains or external tablespaces.
Validate completion metadata, partition ordering, required PostgreSQL files and recovery WAL before publishing the staged backup. Reject unsafe archive entries and clean up unsuccessful imports.
Testing
The integration script is registered as CTest
muse_walgand runs in the added WAL-G migration workflow. WAL-G generates source repositories only; a failing executable guard verifies that migration does not invoke it.Remote validation passed with PostgreSQL 16 and WAL-G 3.0.10: GCC Debug build, importer cppcheck analysis, LZ4/Zstandard import, pg_verifybackup, pgmoneta restore, PostgreSQL startup and known-row verification. Negative cases cover duplicate imports, missing WAL/partitions, malformed metadata, incremental/tablespace inputs, invalid archives, oversized members and path/symlink attacks.
clang-format 21, whitespace and shell syntax checks passed after a whitespace-only correction.
Full upstream CI for this updated commit has not yet been verified. No local build was run.