Skip to content

feat: add new postgres minor release images#279

Merged
moizpgedge merged 2 commits intomainfrom
feat/PLAT-449/Update-Postgres-images-for-new-PG-minor-versions
Mar 25, 2026
Merged

feat: add new postgres minor release images#279
moizpgedge merged 2 commits intomainfrom
feat/PLAT-449/Update-Postgres-images-for-new-PG-minor-versions

Conversation

@moizpgedge
Copy link
Copy Markdown
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
Copy Markdown

coderabbitai bot commented Mar 2, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0c45c767-fa42-4c74-b0a4-5fdb9db251da

📥 Commits

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

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

📝 Walkthrough

Walkthrough

Updates test data to bump a minor upgrade scenario to 18.3, registers new PgEdge/Spock image mappings (16.13, 17.9, 18.3) in the orchestrator, and applies a two-line change to go.mod.

Changes

Cohort / File(s) Summary
Version Upgrade Test
e2e/minor_version_upgrade_test.go
Test data changed to upgrade from 18.2 → 18.3 (both initial and target versions incremented).
Database Image Registry
server/internal/orchestrator/swarm/images.go
Added image mappings for PgEdge versions 16.13, 17.9, and 18.3 (spock5.0.6-standard tags) and set default version to 18.3.
Module Manifest
go.mod
Small modification: 2 lines added and 2 lines removed in go.mod.

Poem

🐇 I hopped from eighteen-point-two to three,
New tags tucked under a spongy tree,
Sixteen, seventeen, eighteen in a row,
Images lined up, ready to go;
CodeRabbit nibbles, then off I flee! 🥕

🚥 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 accurately describes the main change: adding new Postgres minor release image mappings for versions 16.13, 17.9, and 18.3, which is the primary objective of this PR.
Description check ✅ Passed The description includes Summary and Changes sections with clear content, covers the main PR objectives, and links the related issue. However, the Testing section is missing and most checklist items remain unchecked.

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

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

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
Copy Markdown

@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

@mmols mmols marked this pull request as draft March 5, 2026 14:48
@moizpgedge moizpgedge marked this pull request as ready for review March 25, 2026 13:45
@moizpgedge moizpgedge merged commit 145ba44 into main Mar 25, 2026
3 checks passed
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.

2 participants