mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 00:45:17 -05:00
* feat(rds): implement CreateDBSnapshot and RestoreDBInstanceFromDBSnapshot for postgres (#1817) * feat(rds): implement CreateDBSnapshot and RestoreDBInstanceFromDBSnapshot for postgres (#1817) * feat(rds): generated docs * fix(rds): preserve master password across DbSnapshot restore * fix(rds): preserve thread interrupt flag in restorePostgresSnapshot * fix(rds): handle duplicate RDS snapshots and mock mode operations * fix(rds): separate stdout and stderr in container exec to prevent snapshot corruption * fix(rds): add missing stderr argument to ContainerExecResult on timeout * fix(rds): cleanup RDS instance on snapshot restore failure * fix(rds): return structured AWS error when RDS snapshot restore fails * fix(rds): address PR #1894 snapshot and restore review comments - Wire handleDescribeDbSnapshots to use the new snapshots storage backend - Change engine validation error from UnsupportedOperation to InvalidDBInstanceState - Change restore failure error from InvalidDBSnapshotStateFault to InvalidDBSnapshotState - Add corresponding unit and query handler tests * fix(rds): address PR #1894 review feedback and restore process issues - Wire DescribeDBSnapshots to the snapshots storage backend with filtering support - Align CreateDBSnapshot engine error code to InvalidDBInstanceState - Align restore snapshot failure error code to InvalidDBSnapshotState - Carry over dbName from DbSnapshot to the restored DBInstance - Connect to template1 during psql restore to prevent active postgres connection drop failures - Remove unused AwsNamespaces import in RdsService - Add corresponding unit and query handler tests * fix(rds): address PR #1894 review feedback and snapshot error handling * fix(rds): add --if-exists to pg_dumpall snapshot command - Appends the --if-exists flag to pg_dumpall commands during database snapshot creation. This ensures DROP DATABASE statements are emitted conditionally, preventing restore failures on fresh container instances where user databases do not yet exist. * fix(rds): added real docker test * docs(rds): add descriptions for snapshot actions Added concise, handwritten descriptions for the `CreateDBSnapshot` and `RestoreDBInstanceFromDBSnapshot` actions in the RDS documentation action table to comply with the contributing guidelines. * feat(rds): improve RDS snapshot restore reliability and API coverage - Update `postgresRestoreScript` to explicitly filter out the master user `CREATE ROLE` statement, preventing restore failures when `ON_ERROR_STOP=1` is enabled. - Add strict validation for `masterUsername` in `CreateDBInstance` to adhere to AWS requirements (only alphanumeric chars starting with a letter, max 16 chars). - Ensure `dbInstanceClass` is accurately preserved in the `DbSnapshot` model so it can be restored to the same hardware class automatically. - Fix missing Windows absolute path detection in `ContainerStorageHelper`, resolving test-environment `NoSuchElement` errors on Windows. - Make `RdsAwsIntegrationTest` gracefully skip on agents without a Docker daemon, matching test suite expectations. - Update `rds.md` to include concise handwritten descriptions for all remaining placeholder actions. - Improve exception logging inside container execution wrappers.