grada-run 0.43.1 → 0.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grada-run",
3
- "version": "0.43.1",
3
+ "version": "0.43.2",
4
4
  "description": "Provision production-ready AWS infrastructure and CI/CD pipelines in seconds.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -323,6 +323,8 @@ async function runDbEnableVectorMain(input = {}) {
323
323
  const exitCode = outcome.exitCode;
324
324
  const stoppedReason = outcome.stoppedReason;
325
325
  if (exitCode === 0) {
326
+ // Owner pairs its own start/stop (see migrate.js BUG-202).
327
+ try { s.stop(color.green('pgvector extension enabled.')); } catch { /* already stopped */ }
326
328
  console.log(color.green('\n✅ pgvector extension enabled.'));
327
329
  try {
328
330
  const prismaSchema = path.join(cwd, 'prisma', 'schema.prisma');
@@ -526,6 +526,10 @@ async function runDbMigrateMain(input = {}) {
526
526
  const exitCode = outcome.exitCode;
527
527
  const stoppedReason = outcome.stoppedReason;
528
528
  if (exitCode === 0) {
529
+ // Owner pairs its own start/stop: the runner usually stops
530
+ // first (idempotent no-op then), but success must never
531
+ // depend on a callee for the spinner lifecycle (BUG-202).
532
+ try { s.stop(color.green('Migration succeeded.')); } catch { /* already stopped */ }
529
533
  console.log(color.green('\n✅ Migration succeeded.'));
530
534
  await trackSuccess('db_migrate_run', { projectName, cmd_source: cmdSource, ci_setup: false });
531
535
  outro(color.green('Done.'));
@@ -938,11 +938,17 @@ async function pullSecretsMain(envFilePath, projectName, options = {}) {
938
938
  abort.code = 'SECRETS_PULL_UNREPRESENTABLE_VALUE';
939
939
  throw abort;
940
940
  }
941
- // Skip the write when the file is already byte-identical so
942
- // in-sync pulls don't strip comments/formatting for no reason.
943
- const nextEnvContent = serializeEnv(orderedKeys, merged);
944
- if (!localExists || envContent !== nextEnvContent) {
945
- await fs.writeFile(envPath, nextEnvContent);
941
+ // Skip the write when the merge changes nothing semantically.
942
+ // Byte comparison always differs on commented files
943
+ // (serializeEnv emits canonical lines), so compare parsed
944
+ // content instead: same keys + same values means the file —
945
+ // comments and all — already holds exactly this state.
946
+ const localKeys = Object.keys(localSecrets);
947
+ const semanticallyEqual = localExists
948
+ && localKeys.length === orderedKeys.length
949
+ && orderedKeys.every((key) => Object.hasOwn(localSecrets, key) && String(localSecrets[key]) === String(merged[key]));
950
+ if (!semanticallyEqual) {
951
+ await fs.writeFile(envPath, serializeEnv(orderedKeys, merged));
946
952
  }
947
953
 
948
954
  outro(`Successfully synced ${remoteKeys.length} secrets to ${resolvedFilePath}`);
@@ -40,6 +40,12 @@ resource "aws_rds_cluster" "postgres" {
40
40
  skip_final_snapshot = true
41
41
  storage_encrypted = true
42
42
 
43
+ # Match the instance engines: 7-day retention with explicit off-peak
44
+ # UTC windows instead of AWS-assigned ones (BUG-203).
45
+ backup_retention_period = 7
46
+ preferred_backup_window = "03:00-04:00"
47
+ preferred_maintenance_window = "sun:04:00-sun:05:00"
48
+
43
49
  # grada destroy lifts this only via --allow-data-loss (or a per-run
44
50
  # data-loss confirm); grada snapshots the database first unless the
45
51
  # flag says the data may go. grada destroy also pre-wakes stopped