Skip to content

feat: add new postgres minor release images#279

Open
moizpgedge wants to merge 1 commit intomainfrom
feat/PLAT-449/Update-Postgres-images-for-new-PG-minor-versions
Open

feat: add new postgres minor release images#279
moizpgedge wants to merge 1 commit intomainfrom
feat/PLAT-449/Update-Postgres-images-for-new-PG-minor-versions

Conversation

@moizpgedge
Copy link
Contributor

@moizpgedge moizpgedge commented Mar 2, 2026

Summary

Update Control Plane’s Postgres image/version mapping to include PG 16.13, 17.9, and 18.3 for upcoming minor releases, while using mutable image tags for the new minors until immutable tags are published.

Changes

  1. Add new supported Postgres minor versions: 16.13, 17.9, 18.3
  2. Update E2E minor version upgrade test coverage to upgrade 18.2 → 18.3

Checklist

  • Tests added or updated (unit and/or e2e, as needed)
  • Documentation updated (if needed)
  • Issue: PLAT-449
  • Changelog entry added for user-facing behavior changes
  • Breaking changes (if any) are clearly called out in the PR description

@coderabbitai
Copy link

coderabbitai bot commented Mar 2, 2026

📝 Walkthrough

Walkthrough

This pull request updates test data to reference newer database versions and adds new image mappings for PgEdge database versions 16.13, 17.9, and 18.3 in the orchestrator configuration.

Changes

Cohort / File(s) Summary
Version Upgrade Test
e2e/minor_version_upgrade_test.go
Updated test data to upgrade from version 18.2 to 18.3 instead of 18.1 to 18.2, incrementing both initial and target versions.
Database Image Registry
server/internal/orchestrator/swarm/images.go
Added new image mappings for PgEdge versions 16.13, 17.9, and 18.3 with corresponding spock5-standard image tags.

Poem

🐰 Hop past eighteen-point-three we leap,
New image tags in a garden deep,
Spock5 standards bright and true,
Versions sixteen, seventeen, eighteen too!
CodeRabbit dances with morning dew! 🥕

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding new Postgres minor release images to the system.
Description check ✅ Passed The description includes Summary and Changes sections with clear details about the PR objectives, but the Testing section is missing and some checklist items are incomplete.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/PLAT-449/Update-Postgres-images-for-new-PG-minor-versions

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
server/internal/orchestrator/swarm/images.go (1)

38-40: Track mutable-tag cleanup explicitly to avoid silent version drift.

These new mappings are valid, but since they key a fixed minor version to mutable tags, adding a short TODO/issue marker beside each entry will make replacement with immutable tags auditable and reduce long-term ambiguity.

Suggested minimal diff
 versions.addImage(host.MustPgEdgeVersion("16.13", "5"), &Images{
+	// TODO(PLAT-449): replace with immutable 16.13 image tag once published.
 	PgEdgeImage: imageTag(cfg, "16-spock5-standard"),
 })
@@
 versions.addImage(host.MustPgEdgeVersion("17.9", "5"), &Images{
+	// TODO(PLAT-449): replace with immutable 17.9 image tag once published.
 	PgEdgeImage: imageTag(cfg, "17-spock5-standard"),
 })
@@
 versions.addImage(host.MustPgEdgeVersion("18.3", "5"), &Images{
+	// TODO(PLAT-449): replace with immutable 18.3 image tag once published.
 	PgEdgeImage: imageTag(cfg, "18-spock5-standard"),
 })

Also applies to: 52-54, 66-68

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@server/internal/orchestrator/swarm/images.go` around lines 38 - 40, The
mapping entries using versions.addImage with host.MustPgEdgeVersion and mutable
image tags (e.g., the Images struct's PgEdgeImage set via imageTag(cfg,
"16-spock5-standard")) need an explicit TODO/issue marker to track future
replacement with immutable tags; update each affected entry (including the ones
referenced around lines 52–54 and 66–68) by adding a short comment like "TODO:
replace mutable tag with immutable digest (issue #...)" adjacent to the
versions.addImage call so the mutable-tag cleanup is auditable and discoverable.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@server/internal/orchestrator/swarm/images.go`:
- Around line 38-40: The mapping entries using versions.addImage with
host.MustPgEdgeVersion and mutable image tags (e.g., the Images struct's
PgEdgeImage set via imageTag(cfg, "16-spock5-standard")) need an explicit
TODO/issue marker to track future replacement with immutable tags; update each
affected entry (including the ones referenced around lines 52–54 and 66–68) by
adding a short comment like "TODO: replace mutable tag with immutable digest
(issue #...)" adjacent to the versions.addImage call so the mutable-tag cleanup
is auditable and discoverable.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b81d259 and d4c4cfd.

📒 Files selected for processing (2)
  • e2e/minor_version_upgrade_test.go
  • server/internal/orchestrator/swarm/images.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant