From ea96b8fcd93089f3b67f2d9bafd2e810f1f8bf7f Mon Sep 17 00:00:00 2001 From: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com> Date: Tue, 10 Nov 2026 10:39:07 -0500 Subject: [PATCH] Serve DocumentDB 1.0.0 from the package site again DocumentDB 1.0.1 is withdrawn: its extension version 1.0-1 has no upgrade path to later releases. This reverts the version move in #244 and keeps #245 and the unrelated sample and tsconfig changes that landed with #244. Signed-off-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com> --- .github/workflows/continuous-integration.yml | 4 +-- PACKAGE-INSTALL.md | 20 +++++------ app/lib/releaseInfo.ts | 12 +++---- app/services/articleService.ts | 16 ++++----- app/services/externalLinks.ts | 2 +- app/v1/page.tsx | 2 +- scripts/publish-installer.mjs | 4 +-- tests/installSelection.test.ts | 14 ++++---- tests/packageArticles.test.ts | 8 ++--- tests/packageInstall.test.ts | 36 ++++++++++---------- 10 files changed, 59 insertions(+), 59 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 6037466..7d1da68 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -96,9 +96,9 @@ jobs: run: | sudo apt-get update sudo apt-get install -y createrepo-c dpkg-dev rpm python3 - - name: Generate repository from v1.0-1 + - name: Generate repository from v1.0-0 env: - DOCUMENTDB_VERSION: v1.0-1 + DOCUMENTDB_VERSION: v1.0-0 run: .github/scripts/download_packages.sh - name: Verify release inventory and metadata run: python3 .github/scripts/verify_package_inventory.py diff --git a/PACKAGE-INSTALL.md b/PACKAGE-INSTALL.md index da7adc8..85c7c19 100644 --- a/PACKAGE-INSTALL.md +++ b/PACKAGE-INSTALL.md @@ -2,7 +2,7 @@ Repository-backed installation commands for DocumentDB. -> This repository serves v1.0-1. +> This repository serves v1.0-0. ## Clean-host installer @@ -13,7 +13,7 @@ curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh && sudo sh documentdb-install.sh ``` -This installs v1.0-1 from this repository on PostgreSQL 18; add `--pg-major 17` +This installs v1.0-0 from this repository on PostgreSQL 18; add `--pg-major 17` for 17. On a host where DocumentDB is already set up, it only reports that instance's status and doesn't upgrade it; to move an existing install to 1.0, see [Upgrading an existing install](#upgrading-an-existing-install). @@ -225,7 +225,7 @@ Before using this anywhere but a private machine: ```bash sudo documentdb-setup --status # gateway listener, service states, resolved paths -documentdb-gateway --version # DocumentDB version (1.0.1) +documentdb-gateway --version # DocumentDB version (1.0.0) dpkg -l | grep documentdb # or: rpm -qa | grep documentdb ``` @@ -368,7 +368,7 @@ The current release publishes PostgreSQL 17 and 18. Install `documentdb-17` or ## Upgrading an existing install -Package installs from v0.116, v0.117 or 1.0.0 upgrade in place to 1.0.1. Move the entire stack +Package installs from v0.116 or v0.117 upgrade in place to 1.0. Move the entire stack together; upgrading only `postgresql-N-documentdb` does not update the gateway, tools, common payload, or `documentdb-N`. These steps use systemd; upgrading a host without it isn't covered here. On a package-managed private PostgreSQL 18 instance: @@ -479,17 +479,17 @@ published in the documentdb.io package repositories. Community builds are welcom For example, after checking out the matching release tag, build an extension package with: ```bash -./packaging/build_packages.sh --os deb12 --pg 16 --version 1.0.1 +./packaging/build_packages.sh --os deb12 --pg 16 --version 1.0.0 ``` -Without `--version`, the script takes the version from the checked-out release tag, or else from the control file; at `v1.0-1` both give 1.0.1. That command builds only `postgresql-N-documentdb`. A custom full-stack package set uses +`v1.0-0` and `v1.0-RC2` are on the same commit, so pass `--version`; without it the scripts can build RC-versioned packages. That command builds only `postgresql-N-documentdb`. A custom full-stack package set uses three entry points: - `packaging/build_packages.sh` — PostgreSQL extension - `packaging/gateway/build_gateway_packages.sh` — wire-protocol gateway - `packaging/build_extra_packages.sh` — tools, common payload, `documentdb-N`, and meta package -The [v1.0 packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md) +The [v1.0 packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md) documents their required arguments, version formats, prerequisites, and accepted targets. PostgreSQL 15 remains extension-only for package-managed installs because the setup tools require PostgreSQL 16 or newer. @@ -504,9 +504,9 @@ they do not retain packages from older releases. Examples: ```text -ubuntu24.04-documentdb_1.0.1_all.deb -ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb -rhel9-postgresql18-documentdb-1.0.1-1.el9.x86_64.rpm +ubuntu24.04-documentdb_1.0.0_all.deb +ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb +rhel9-postgresql18-documentdb-1.0.0-1.el9.x86_64.rpm ``` For a full stack, pass the five packages for the selected PostgreSQL major to one command: diff --git a/app/lib/releaseInfo.ts b/app/lib/releaseInfo.ts index ea2b8a2..52e45f6 100644 --- a/app/lib/releaseInfo.ts +++ b/app/lib/releaseInfo.ts @@ -36,12 +36,12 @@ export type ReleaseInfo = { // A reference release, not evidence of current repository availability. export const FALLBACK_RELEASE: ReleaseInfo = { - tagName: "v1.0-1", - aptVersion: "1.0-1", - rpmVersion: "1.0.1-1.el9", - metaVersion: "1.0.1", - metaRpmVersion: "1.0.1-1", - releaseUrl: "https://github.com/documentdb/documentdb/releases/tag/v1.0-1", + tagName: "v1.0-0", + aptVersion: "1.0-0", + rpmVersion: "1.0.0-1.el9", + metaVersion: "1.0.0", + metaRpmVersion: "1.0.0-1", + releaseUrl: "https://github.com/documentdb/documentdb/releases/tag/v1.0-0", assetNames: [], }; diff --git a/app/services/articleService.ts b/app/services/articleService.ts index f1bc995..36bbad9 100644 --- a/app/services/articleService.ts +++ b/app/services/articleService.ts @@ -32,7 +32,7 @@ const virtualSections: Record [!NOTE] -> The DocumentDB Local image sends usage telemetry by default. To turn it off, add \`-e DOCUMENTDB_USAGE_TELEMETRY=false\` before the image name. See [Usage telemetry](/docs/documentdb-local#usage-telemetry) and the [privacy statement](https://github.com/documentdb/documentdb/blob/v1.0-1/documentdb-local/PRIVACY.md).`; +> The DocumentDB Local image sends usage telemetry by default. To turn it off, add \`-e DOCUMENTDB_USAGE_TELEMETRY=false\` before the image name. See [Usage telemetry](/docs/documentdb-local#usage-telemetry) and the [privacy statement](https://github.com/documentdb/documentdb/blob/v1.0-0/documentdb-local/PRIVACY.md).`; const dockerGuideContent = `# Docker Quick Start @@ -196,10 +196,10 @@ The current official release publishes the full stack — extension, gateway, se **Recommended:** install the complete stack, then create a new private PostgreSQL 18 instance. The commands detect architecture on the Linux host where you run them. For containers or macOS/Windows evaluation, choose [Docker installation](/packages?method=docker). > [!IMPORTANT] -> Already running v0.116, v0.117 or 1.0.0 from packages? Follow [Upgrading](/docs/linux-packages#upgrading) instead of installing again. Hosts that ran a 1.0 release candidate have no upgrade path; use a clean host. Removing packages preserves database files; reinstalling is not a data reset. +> Already running v0.116 or v0.117 from packages? Follow [Upgrading](/docs/linux-packages#upgrading) instead of installing again. Hosts that ran a 1.0 release candidate have no upgrade path; use a clean host. Removing packages preserves database files; reinstalling is not a data reset. > [!NOTE] -> Need another distribution or PostgreSQL major? We welcome community builds. Check out the \`v1.0-1\` tag, pass \`--version 1.0.1\`, and use the version-parameterized [packaging scripts](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md). \`build_packages.sh\` builds the extension, \`gateway/build_gateway_packages.sh\` builds the gateway, and \`build_extra_packages.sh\` builds the common, tools, stand-alone, and meta packages. PostgreSQL 15 is extension-only because the setup tools require PostgreSQL 16 or newer. These builds are on demand and are not official release assets hosted by documentdb.io. +> Need another distribution or PostgreSQL major? We welcome community builds. Check out the \`v1.0-0\` tag, pass \`--version 1.0.0\`, and use the version-parameterized [packaging scripts](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md). \`build_packages.sh\` builds the extension, \`gateway/build_gateway_packages.sh\` builds the gateway, and \`build_extra_packages.sh\` builds the common, tools, stand-alone, and meta packages. PostgreSQL 15 is extension-only because the setup tools require PostgreSQL 16 or newer. These builds are on demand and are not official release assets hosted by documentdb.io. You do not need PostgreSQL already installed — the setup wizard creates and manages its own instance. The install does add the PGDG repository and pull PostgreSQL, PostGIS and around 160 packages (about 140 MB), so pick a host you are willing to have PGDG on. @@ -212,7 +212,7 @@ curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh && sudo sh documentdb-install.sh \`\`\` -This installs the current release (v1.0-1) from the package repository on PostgreSQL 18; add \`--pg-major 17\` for 17. +This installs the current release (v1.0-0) from the package repository on PostgreSQL 18; add \`--pg-major 17\` for 17. On a host where DocumentDB is already set up, the installer only reports its status and doesn't upgrade it; to move an existing install to 1.0, follow [Upgrading](/docs/linux-packages#upgrading). ## Install @@ -417,7 +417,7 @@ Use the extension package for your PostgreSQL major: \`postgresql-N-documentdb\` or \`postgresqlN-documentdb\` on EL9. You own PostgreSQL configuration, extension activation, and service restarts. Create \`documentdb_extended_rum\` as well as \`documentdb\`: \`CREATE EXTENSION documentdb CASCADE\` does not pull it in, and without it every index -creation fails. Follow the matching release's [manual package instructions](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md), +creation fails. Follow the matching release's [manual package instructions](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md), or the [extension-only offline instructions](/docs/linux-packages/offline#smaller-offline-cases) when PostgreSQL and all extension dependencies are already installed. @@ -438,7 +438,7 @@ For an adopted instance, use the operator's existing PostgreSQL connection inste ## Upgrading -Package installs from v0.116, v0.117 or 1.0.0 upgrade in place to 1.0.1. Move the entire stack +Package installs from v0.116 or v0.117 upgrade in place to 1.0. Move the entire stack together; upgrading only \`postgresql-N-documentdb\` does not update the gateway, tools, common payload, or \`documentdb-N\`. These steps use systemd; upgrading a host without it isn't covered here. On a package-managed private PostgreSQL 18 instance: @@ -699,7 +699,7 @@ Then continue with [Set up and connect](/docs/getting-started/packages#set-up-an If the target already has PostgreSQL, the PGDG extension dependencies (\`postgresql-N-cron\`, \`-pgvector\`, \`-postgis-3\`) and \`jq\`, you do not need a bundle: -- **Extension only, one file** — \`sudo apt install ./ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb\`. No gateway and no \`documentdb-setup\`. +- **Extension only, one file** — \`sudo apt install ./ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb\`. No gateway and no \`documentdb-setup\`. - **Full stack from the release assets** — pass the five packages for the selected PostgreSQL major to a *single* \`apt install\` / \`dnf install\`: \`documentdb-N\`, the matching \`postgresql-N-documentdb\` / \`postgresqlN-documentdb\` extension, \`documentdb-common\`, \`documentdb-gateway\`, and \`documentdb-postgresql-tools\`. For PostgreSQL 18 only, the optional \`documentdb\` meta package may be included; it selects \`documentdb-18\`. Local files resolve dependencies only against enabled repositories, so a package whose dependencies are not included still fails. `; @@ -1528,7 +1528,7 @@ function updatePrebuiltPackagesContent(content: string): string { const legacyClaim = 'Everything else — PostgreSQL 15/16, Debian 11/12/13, Ubuntu 22.04, RHEL-compatible 8 — is not built by first-party CI for this release. The [package repository](https://documentdb.io/packages) serves those targets the extension package from an earlier release, or build from the tag with the scripts in [`packaging/`](https://github.com/documentdb/documentdb/blob/main/packaging/README.md). PostgreSQL 15 is extension-only: `documentdb-setup` needs 16 or newer.'; const currentPolicy = - 'Everything else — PostgreSQL 15/16, Debian 11/12/13, Ubuntu 22.04, RHEL-compatible 8 — is not built by first-party CI or hosted by documentdb.io for this release. Starting with v0.116, packages from earlier releases are not carried forward. Build from the matching tag with the [`packaging/` scripts](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md); PostgreSQL 15 remains extension-only because `documentdb-setup` requires 16 or newer.'; + 'Everything else — PostgreSQL 15/16, Debian 11/12/13, Ubuntu 22.04, RHEL-compatible 8 — is not built by first-party CI or hosted by documentdb.io for this release. Starting with v0.116, packages from earlier releases are not carried forward. Build from the matching tag with the [`packaging/` scripts](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md); PostgreSQL 15 remains extension-only because `documentdb-setup` requires 16 or newer.'; return content.replace(legacyClaim, currentPolicy); } diff --git a/app/services/externalLinks.ts b/app/services/externalLinks.ts index 366fe71..eaafb4a 100644 --- a/app/services/externalLinks.ts +++ b/app/services/externalLinks.ts @@ -26,4 +26,4 @@ export const documentdbReleaseAnnouncementUrl = '/blogs/posts/documentdb-1-0/'; export const documentdbReleasePageUrl = '/v1/'; export const documentdbLocalPrivacyUrl = - 'https://github.com/documentdb/documentdb/blob/v1.0-1/documentdb-local/PRIVACY.md'; + 'https://github.com/documentdb/documentdb/blob/v1.0-0/documentdb-local/PRIVACY.md'; diff --git a/app/v1/page.tsx b/app/v1/page.tsx index 8df8f3d..24c1987 100644 --- a/app/v1/page.tsx +++ b/app/v1/page.tsx @@ -43,7 +43,7 @@ const dockerCommand = `docker run -dt --name documentdb \\ -p 127.0.0.1:10260:10260 \\ -e USERNAME='' \\ -e PASSWORD='' \\ - ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1`; + ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0`; const installerCommand = `curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh && sudo sh documentdb-install.sh`; diff --git a/scripts/publish-installer.mjs b/scripts/publish-installer.mjs index cd0dd89..6effc5d 100644 --- a/scripts/publish-installer.mjs +++ b/scripts/publish-installer.mjs @@ -3,10 +3,10 @@ import { mkdir, writeFile } from 'node:fs/promises'; import { resolve } from 'node:path'; import { pathToFileURL } from 'node:url'; -// v1.0-1 attaches the same bytes as v1.0-0. Release assets can be replaced, +// v1.0-0 attaches the same bytes as v1.0-RC2. Release assets can be replaced, // so the digest is pinned too. export const installerSource = { - release: 'v1.0-1', + release: 'v1.0-0', sha256: 'b9d16b3b86d3b1541e701be0ce38086dcb0bc904f761a36c7ede9fefe91d45f2', }; diff --git a/tests/installSelection.test.ts b/tests/installSelection.test.ts index 9f304db..4ede569 100644 --- a/tests/installSelection.test.ts +++ b/tests/installSelection.test.ts @@ -116,16 +116,16 @@ describe("install selection links", () => { describe("published package availability", () => { const assetNames = [ ...["documentdb-18", "documentdb-common", "documentdb-postgresql-tools"].flatMap((name) => [ - `ubuntu24.04-${name}_1.0.1_all.deb`, - `${name}-1.0.1-1.noarch.rpm`, + `ubuntu24.04-${name}_1.0.0_all.deb`, + `${name}-1.0.0-1.noarch.rpm`, ]), ...["amd64", "arm64"].flatMap((arch) => [ - `ubuntu24.04-documentdb-gateway_1.0.1_${arch}.deb`, - `ubuntu24.04-postgresql-18-documentdb_1.0-1_${arch}.deb`, + `ubuntu24.04-documentdb-gateway_1.0.0_${arch}.deb`, + `ubuntu24.04-postgresql-18-documentdb_1.0-0_${arch}.deb`, ]), ...["x86_64", "aarch64"].flatMap((arch) => [ - `documentdb-gateway-1.0.1-1.el9.${arch}.rpm`, - `rhel9-postgresql18-documentdb-1.0.1-1.el9.${arch}.rpm`, + `documentdb-gateway-1.0.0-1.el9.${arch}.rpm`, + `rhel9-postgresql18-documentdb-1.0.0-1.el9.${arch}.rpm`, ]), ]; const release = { ...FALLBACK_RELEASE, assetNames }; @@ -151,7 +151,7 @@ describe("published package availability", () => { expect(releaseHasPackages(partial, defaultInstallSelection.packages)).toBe(false); }); - it.each([null, {}, { tag_name: "v1.0-1", assets: [] }, { tag_name: "../other", assets: [] }])( + it.each([null, {}, { tag_name: "v1.0-0", assets: [] }, { tag_name: "../other", assets: [] }])( "surfaces malformed or incomplete metadata instead of inventing current versions", (payload) => { expect(() => parseReleaseInfo(payload)).toThrow(); diff --git a/tests/packageArticles.test.ts b/tests/packageArticles.test.ts index b11f2ba..af1a9e9 100644 --- a/tests/packageArticles.test.ts +++ b/tests/packageArticles.test.ts @@ -298,8 +298,8 @@ describe('Linux package articles', () => { it('serves the stable installer without a pinned or RC version', () => { expect(linuxPackagesGuideContent).toContain('https://documentdb.io/install.sh'); - expect(linuxPackagesGuideContent).toContain('installs the current release (v1.0-1) from the package repository'); - // install.sh rejects --version v1.0-1, and RCs are retired at GA. + expect(linuxPackagesGuideContent).toContain('installs the current release (v1.0-0) from the package repository'); + // install.sh rejects --version v1.0-0, and RCs are retired at GA. expect(linuxPackagesGuideContent).not.toContain('--version v1.0'); expect(linuxPackagesGuideContent).not.toMatch(/RC2|release-candidate/); }); @@ -308,13 +308,13 @@ describe('Linux package articles', () => { const offlineGuide = getArticleByPath('linux-packages', ['offline']); expect(linuxPackagesGuideContent).toContain( - 'documentdb/blob/v1.0-1/packaging/README.md', + 'documentdb/blob/v1.0-0/packaging/README.md', ); expect(linuxPackagesGuideContent).toContain( '`--load-sample-data` to the setup command to seed the `StoreData` database', ); expect(offlineGuide?.content).toContain( - 'ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb', + 'ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb', ); expect(offlineGuide?.content).toContain( 'pass the five packages for the selected PostgreSQL major', diff --git a/tests/packageInstall.test.ts b/tests/packageInstall.test.ts index b5e41f6..7f20d37 100644 --- a/tests/packageInstall.test.ts +++ b/tests/packageInstall.test.ts @@ -79,33 +79,33 @@ describe('package metadata', () => { }); describe('release metadata', () => { - it('uses v1.0-1 for the first paint and feed fallback', () => { + it('uses v1.0-0 for the first paint and feed fallback', () => { expect(FALLBACK_RELEASE).toMatchObject({ - tagName: 'v1.0-1', - aptVersion: '1.0-1', - rpmVersion: '1.0.1-1.el9', - metaVersion: '1.0.1', - metaRpmVersion: '1.0.1-1', - releaseUrl: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-1', + tagName: 'v1.0-0', + aptVersion: '1.0-0', + rpmVersion: '1.0.0-1.el9', + metaVersion: '1.0.0', + metaRpmVersion: '1.0.0-1', + releaseUrl: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-0', }); }); it('derives v1.0 package versions from the published asset shapes', () => { expect(parseReleaseInfo({ - tag_name: 'v1.0-1', - html_url: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-1', + tag_name: 'v1.0-0', + html_url: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-0', assets: [ - { name: 'ubuntu24.04-documentdb_1.0.1_all.deb' }, - { name: 'ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb' }, - { name: 'documentdb-1.0.1-1.noarch.rpm' }, - { name: 'rhel9-postgresql18-documentdb-1.0.1-1.el9.x86_64.rpm' }, + { name: 'ubuntu24.04-documentdb_1.0.0_all.deb' }, + { name: 'ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb' }, + { name: 'documentdb-1.0.0-1.noarch.rpm' }, + { name: 'rhel9-postgresql18-documentdb-1.0.0-1.el9.x86_64.rpm' }, ], })).toMatchObject({ - tagName: 'v1.0-1', - aptVersion: '1.0-1', - rpmVersion: '1.0.1-1.el9', - metaVersion: '1.0.1', - metaRpmVersion: '1.0.1-1', + tagName: 'v1.0-0', + aptVersion: '1.0-0', + rpmVersion: '1.0.0-1.el9', + metaVersion: '1.0.0', + metaRpmVersion: '1.0.0-1', }); }); });