Deprecate postgres-13 job: removal scheduled for next release#2778
Deprecate postgres-13 job: removal scheduled for next release#2778ZPascal wants to merge 2 commits into
Conversation
WalkthroughThe Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR deprecates the postgres-13 BOSH job ahead of its scheduled removal, by surfacing the deprecation both in the job metadata and during deployment/startup so operators see a clear migration signal.
Changes:
- Adds a deprecation warning message to the
postgres-13jobpre-startscript output. - Adds a
descriptionfield tojobs/postgres-13/specmarking the job as deprecated and directing operators to migrate.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| jobs/postgres-13/templates/pre-start.erb | Emits deprecation warning lines when the job runs its pre-start hook. |
| jobs/postgres-13/spec | Marks the job as deprecated via the job spec description string. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7fb8a6c to
7755c30
Compare
Code reviewFound 1 issue:
bosh/docs/postgres-migration.md Lines 62 to 66 in 7755c30 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/postgres-migration.md`:
- Around line 68-73: The migration procedure must explicitly handle legacy
postgres jobs: identify the existing PostgreSQL major version (typically 10 or
11), rename or migrate `/var/vcap/store/postgres` to the versioned directory
expected by postgres-release, and configure the matching source version so
`pg_upgrade` runs before selecting a newer target version. Update the steps
around `databases.version` and the deployment instructions to prevent fresh
initialization and preserve existing data.
- Around line 9-10: Update the supported-version statement in the PostgreSQL
migration documentation to accurately include PostgreSQL 13 if postgres-release
still ships it for pg_upgrade or in-place cutovers. Otherwise, remove or revise
the migration instructions that depend on version 13 so the documented supported
versions and procedures remain consistent.
- Around line 62-65: Update the “Switching from jobs/postgres-13” section to
avoid setting databases.version: 13 with cloudfoundry/postgres-release; document
a compatible release containing PostgreSQL 13 binaries, or replace the
pg_upgrade procedure with a pg_dump/pg_restore migration flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: d4960981-0b0f-4d4f-8f7b-dd45b21685d1
📒 Files selected for processing (3)
docs/postgres-migration.mdjobs/postgres-13/specjobs/postgres-13/templates/pre-start.erb
The postgres-13 job will be removed in the next bosh release. Signed-off-by: Pascal Zimmermann <pascal.zimmermann01@sap.com>
7755c30 to
4da127b
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/postgres-migration.md`:
- Line 27: Update docs/postgres-migration.md so the file ends with exactly one
trailing newline, resolving the markdownlint MD047 violation without changing
its content.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: d4edf64a-144b-4a52-aca5-a19a52ca07e4
📒 Files selected for processing (3)
docs/postgres-migration.mdjobs/postgres-13/specjobs/postgres-13/templates/pre-start.erb
Summary
Marks the `postgres-13` job as deprecated ahead of its removal in the next bosh release.
Operators should switch to the `postgres` job. See `docs/postgres-migration.md` for the migration guide.
Related PRs
This is one of three independent PRs split from the original postgres-release migration:
Test plan