Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions PACKAGE-INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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).
Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand All @@ -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:
Expand Down
12 changes: 6 additions & 6 deletions app/lib/releaseInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
};

Expand Down
16 changes: 8 additions & 8 deletions app/services/articleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const virtualSections: Record<string, { landingTitle: string; pages: { slug: str

// The documentdb-local image reports usage by default from 1.0; every Docker start command carries the opt-out.
const documentdbLocalTelemetryNote = `> [!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

Expand Down Expand Up @@ -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.

Expand All @@ -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
Expand Down Expand Up @@ -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.

Expand All @@ -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:
Expand Down Expand Up @@ -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.
`;

Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion app/services/externalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 1 addition & 1 deletion app/v1/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const dockerCommand = `docker run -dt --name documentdb \\
-p 127.0.0.1:10260:10260 \\
-e USERNAME='<YOUR_USERNAME>' \\
-e PASSWORD='<YOUR_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`;
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish-installer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
14 changes: 7 additions & 7 deletions tests/installSelection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions tests/packageArticles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
});
Expand All @@ -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',
Expand Down
36 changes: 18 additions & 18 deletions tests/packageInstall.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
});
});
Expand Down
Loading