Repository navigation
Open
Labels
Description
Summary
Follow-up from #488 (review feedback). The E2E suite covers DocumentDB binary/schema upgrades only in ImageVolume mode. Add coverage for combined image mode (#487): upgrading spec.documentDBVersion must roll the CNPG cluster from documentdb-combined:18-<old> to documentdb-combined:18-<new>, run ALTER EXTENSION, and keep all data.
Background
- In combined mode the operator derives the PostgreSQL image from the DocumentDB version:
…/documentdb-combined:18-<version>. A version change patches CNPGspec.imageName, CNPG performs a rolling update, and the operator runs the schema migration once the primary is healthy. - The existing specs (
test/e2e/tests/upgrade/upgrade_schema_test.goandupgrade_schema_auto_test.go) don't depend on the image mode. They create a cluster atdefaultOldDocumentDBVersion(0.117.0), seed data, patchspec.documentDBVersiontodefaultNewDocumentDBVersion(1.0.0), and verify schema migration and data. Today they only run on clusters where ImageVolume is available. - No combined image exists for 0.117.0. PGDG no longer packages 0.117, so it has to be built from source.
Proposed work
- Publish
documentdb-combined:18-0.117.0(one-off, manual):- Run RELEASE - Build DocumentDB Candidate Images with
version: 0.117.0andpackage_source: source. - Promote only the combined tag (
docker buildx imagetools create -t …/documentdb-combined:18-0.117.0 …/documentdb-combined:18-<candidate>), so the releaseddocumentdb:0.117.0andgateway:0.117.0stay untouched. - Make sure the image is public for linux/amd64 and linux/arm64.
- Run RELEASE - Build DocumentDB Candidate Images with
- Add combined-mode rows to the
upgradeE2E group in.github/workflows/test-e2e.yml. At least one amd64 row withkind-feature-gates: ImageVolume=falseon Kubernetes v1.33.7, and optionallykindest/node:v1.32.0(containerd 1.7). The operator stays on the defaultimageMode: auto. - Extend the schema-upgrade specs with combined-mode checks when the cluster runs in combined mode:
- The
documentdb.io/image-modeannotation iscombinedbefore and after the upgrade. - CNPG
spec.imageNameandstatus.documentDBImagemove from18-<old>to18-<new>, with no extension image volumes. status.schemaVersionand thepg_extensionversion reach the new version (two-step andauto).- Seeded data (counts, sample documents, indexes) survives.
- The
- Docs: update the Testing section of
docs/designs/combined-image-fallback.md.
Acceptance criteria
-
documentdb-combined:18-0.117.0is published and public (amd64 and arm64). - The
upgradegroup has at least one combined-mode row that passes in CI. - The combined row checks the mode, the image transition, the schema migration and data preservation, for both two-step and
autoschema upgrades. - ImageVolume-mode upgrade rows are unchanged and still pass.
Notes
- Upkeep: later DocumentDB releases promote
documentdb-combined:18-<version>automatically (release_documentdb_images.yml), so the "old" combined image will exist for future version pairs. Only 0.117.0 needs the one-off build. - No real 0.117.0 combined clusters exist: the 0.117.0 combined image is built with today's
Dockerfile_combined, and combined mode ships with operator 1.1.0, so no customer can run a 0.117.0 combined cluster. The test validates the upgrade mechanics, not a historical image. - Out of scope: operator upgrades (1.0.0 → 1.1.0) are already covered by the existing
upgradegroup.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
documentdb-triage-tool commentedon Nov 3, 2026
🤖 Auto-triaged by documentdb-triage-tool.
Applied:
test,enhancementProject fields suggested: Component
test· PriorityP2· EffortL· StatusTriageConfidence: 0.85 (llm)
Reasoning
LLM: Follow-up E2E coverage task spanning test specs, CI workflow matrix rows, a one-off image publish, and doc updates for the combined-image upgrade path.
If a label is wrong, remove it manually and ping
@patty-chowso the rules can be tuned. The bot will not re-label items that already have component labels.