Skip to content

Commit bb17652

Browse files
authored
Serve DocumentDB 1.0.0 from the package site again (#247)
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> Co-authored-by: Guanzhou Song <26541184+GuanzhouSong@users.noreply.github.com>
1 parent 9cac7c2 commit bb17652

10 files changed

Lines changed: 59 additions & 59 deletions

‎.github/workflows/continuous-integration.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ jobs:
9696
run: |
9797
sudo apt-get update
9898
sudo apt-get install -y createrepo-c dpkg-dev rpm python3
99-
- name: Generate repository from v1.0-1
99+
- name: Generate repository from v1.0-0
100100
env:
101-
DOCUMENTDB_VERSION: v1.0-1
101+
DOCUMENTDB_VERSION: v1.0-0
102102
run: .github/scripts/download_packages.sh
103103
- name: Verify release inventory and metadata
104104
run: python3 .github/scripts/verify_package_inventory.py

‎PACKAGE-INSTALL.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Repository-backed installation commands for DocumentDB.
44

5-
> This repository serves v1.0-1.
5+
> This repository serves v1.0-0.
66
77
## Clean-host installer
88

@@ -13,7 +13,7 @@ curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh &&
1313
sudo sh documentdb-install.sh
1414
```
1515

16-
This installs v1.0-1 from this repository on PostgreSQL 18; add `--pg-major 17`
16+
This installs v1.0-0 from this repository on PostgreSQL 18; add `--pg-major 17`
1717
for 17. On a host where DocumentDB is already set up, it only reports that instance's status
1818
and doesn't upgrade it; to move an existing install to 1.0, see
1919
[Upgrading an existing install](#upgrading-an-existing-install).
@@ -225,7 +225,7 @@ Before using this anywhere but a private machine:
225225

226226
```bash
227227
sudo documentdb-setup --status # gateway listener, service states, resolved paths
228-
documentdb-gateway --version # DocumentDB version (1.0.1)
228+
documentdb-gateway --version # DocumentDB version (1.0.0)
229229
dpkg -l | grep documentdb # or: rpm -qa | grep documentdb
230230
```
231231

@@ -368,7 +368,7 @@ The current release publishes PostgreSQL 17 and 18. Install `documentdb-17` or
368368

369369
## Upgrading an existing install
370370

371-
Package installs from v0.116, v0.117 or 1.0.0 upgrade in place to 1.0.1. Move the entire stack
371+
Package installs from v0.116 or v0.117 upgrade in place to 1.0. Move the entire stack
372372
together; upgrading only `postgresql-N-documentdb` does not update the gateway, tools, common
373373
payload, or `documentdb-N`. These steps use systemd; upgrading a host without it isn't covered here.
374374
On a package-managed private PostgreSQL 18 instance:
@@ -479,17 +479,17 @@ published in the documentdb.io package repositories. Community builds are welcom
479479
For example, after checking out the matching release tag, build an extension package with:
480480

481481
```bash
482-
./packaging/build_packages.sh --os deb12 --pg 16 --version 1.0.1
482+
./packaging/build_packages.sh --os deb12 --pg 16 --version 1.0.0
483483
```
484484

485-
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
485+
`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
486486
three entry points:
487487

488488
- `packaging/build_packages.sh` — PostgreSQL extension
489489
- `packaging/gateway/build_gateway_packages.sh` — wire-protocol gateway
490490
- `packaging/build_extra_packages.sh` — tools, common payload, `documentdb-N`, and meta package
491491

492-
The [v1.0 packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md)
492+
The [v1.0 packaging guide](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md)
493493
documents their required arguments, version formats, prerequisites, and accepted targets.
494494
PostgreSQL 15 remains extension-only for package-managed installs because the setup tools
495495
require PostgreSQL 16 or newer.
@@ -504,9 +504,9 @@ they do not retain packages from older releases.
504504
Examples:
505505

506506
```text
507-
ubuntu24.04-documentdb_1.0.1_all.deb
508-
ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb
509-
rhel9-postgresql18-documentdb-1.0.1-1.el9.x86_64.rpm
507+
ubuntu24.04-documentdb_1.0.0_all.deb
508+
ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb
509+
rhel9-postgresql18-documentdb-1.0.0-1.el9.x86_64.rpm
510510
```
511511

512512
For a full stack, pass the five packages for the selected PostgreSQL major to one command:

‎app/lib/releaseInfo.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export type ReleaseInfo = {
3636

3737
// A reference release, not evidence of current repository availability.
3838
export const FALLBACK_RELEASE: ReleaseInfo = {
39-
tagName: "v1.0-1",
40-
aptVersion: "1.0-1",
41-
rpmVersion: "1.0.1-1.el9",
42-
metaVersion: "1.0.1",
43-
metaRpmVersion: "1.0.1-1",
44-
releaseUrl: "https://github.com/documentdb/documentdb/releases/tag/v1.0-1",
39+
tagName: "v1.0-0",
40+
aptVersion: "1.0-0",
41+
rpmVersion: "1.0.0-1.el9",
42+
metaVersion: "1.0.0",
43+
metaRpmVersion: "1.0.0-1",
44+
releaseUrl: "https://github.com/documentdb/documentdb/releases/tag/v1.0-0",
4545
assetNames: [],
4646
};
4747

‎app/services/articleService.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const virtualSections: Record<string, { landingTitle: string; pages: { slug: str
3232

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

3737
const dockerGuideContent = `# Docker Quick Start
3838
@@ -196,10 +196,10 @@ The current official release publishes the full stack — extension, gateway, se
196196
**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).
197197
198198
> [!IMPORTANT]
199-
> 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.
199+
> 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.
200200
201201
> [!NOTE]
202-
> 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.
202+
> 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.
203203
204204
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.
205205
@@ -212,7 +212,7 @@ curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh &&
212212
sudo sh documentdb-install.sh
213213
\`\`\`
214214
215-
This installs the current release (v1.0-1) from the package repository on PostgreSQL 18; add \`--pg-major 17\` for 17.
215+
This installs the current release (v1.0-0) from the package repository on PostgreSQL 18; add \`--pg-major 17\` for 17.
216216
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).
217217
218218
## Install
@@ -417,7 +417,7 @@ Use the extension package for your PostgreSQL major: \`postgresql-N-documentdb\`
417417
or \`postgresqlN-documentdb\` on EL9. You own PostgreSQL configuration, extension activation,
418418
and service restarts. Create \`documentdb_extended_rum\` as well as \`documentdb\`:
419419
\`CREATE EXTENSION documentdb CASCADE\` does not pull it in, and without it every index
420-
creation fails. Follow the matching release's [manual package instructions](https://github.com/documentdb/documentdb/blob/v1.0-1/packaging/README.md),
420+
creation fails. Follow the matching release's [manual package instructions](https://github.com/documentdb/documentdb/blob/v1.0-0/packaging/README.md),
421421
or the [extension-only offline instructions](/docs/linux-packages/offline#smaller-offline-cases)
422422
when PostgreSQL and all extension dependencies are already installed.
423423
@@ -438,7 +438,7 @@ For an adopted instance, use the operator's existing PostgreSQL connection inste
438438
439439
## Upgrading
440440
441-
Package installs from v0.116, v0.117 or 1.0.0 upgrade in place to 1.0.1. Move the entire stack
441+
Package installs from v0.116 or v0.117 upgrade in place to 1.0. Move the entire stack
442442
together; upgrading only \`postgresql-N-documentdb\` does not update the gateway, tools,
443443
common payload, or \`documentdb-N\`. These steps use systemd; upgrading a host without it isn't covered here.
444444
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
699699
700700
If the target already has PostgreSQL, the PGDG extension dependencies (\`postgresql-N-cron\`, \`-pgvector\`, \`-postgis-3\`) and \`jq\`, you do not need a bundle:
701701
702-
- **Extension only, one file** — \`sudo apt install ./ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb\`. No gateway and no \`documentdb-setup\`.
702+
- **Extension only, one file** — \`sudo apt install ./ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb\`. No gateway and no \`documentdb-setup\`.
703703
- **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.
704704
`;
705705

@@ -1528,7 +1528,7 @@ function updatePrebuiltPackagesContent(content: string): string {
15281528
const legacyClaim =
15291529
'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.';
15301530
const currentPolicy =
1531-
'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.';
1531+
'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.';
15321532

15331533
return content.replace(legacyClaim, currentPolicy);
15341534
}

‎app/services/externalLinks.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const documentdbReleaseAnnouncementUrl = '/blogs/posts/documentdb-1-0/';
2626
export const documentdbReleasePageUrl = '/v1/';
2727

2828
export const documentdbLocalPrivacyUrl =
29-
'https://github.com/documentdb/documentdb/blob/v1.0-1/documentdb-local/PRIVACY.md';
29+
'https://github.com/documentdb/documentdb/blob/v1.0-0/documentdb-local/PRIVACY.md';

‎app/v1/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const dockerCommand = `docker run -dt --name documentdb \\
4343
-p 127.0.0.1:10260:10260 \\
4444
-e USERNAME='<YOUR_USERNAME>' \\
4545
-e PASSWORD='<YOUR_PASSWORD>' \\
46-
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.1`;
46+
ghcr.io/documentdb/documentdb/documentdb-local:pg17-1.0.0`;
4747

4848
const installerCommand = `curl -fsSLo documentdb-install.sh https://documentdb.io/install.sh &&
4949
sudo sh documentdb-install.sh`;

‎scripts/publish-installer.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { mkdir, writeFile } from 'node:fs/promises';
33
import { resolve } from 'node:path';
44
import { pathToFileURL } from 'node:url';
55

6-
// v1.0-1 attaches the same bytes as v1.0-0. Release assets can be replaced,
6+
// v1.0-0 attaches the same bytes as v1.0-RC2. Release assets can be replaced,
77
// so the digest is pinned too.
88
export const installerSource = {
9-
release: 'v1.0-1',
9+
release: 'v1.0-0',
1010
sha256: 'b9d16b3b86d3b1541e701be0ce38086dcb0bc904f761a36c7ede9fefe91d45f2',
1111
};
1212

‎tests/installSelection.test.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,16 @@ describe("install selection links", () => {
116116
describe("published package availability", () => {
117117
const assetNames = [
118118
...["documentdb-18", "documentdb-common", "documentdb-postgresql-tools"].flatMap((name) => [
119-
`ubuntu24.04-${name}_1.0.1_all.deb`,
120-
`${name}-1.0.1-1.noarch.rpm`,
119+
`ubuntu24.04-${name}_1.0.0_all.deb`,
120+
`${name}-1.0.0-1.noarch.rpm`,
121121
]),
122122
...["amd64", "arm64"].flatMap((arch) => [
123-
`ubuntu24.04-documentdb-gateway_1.0.1_${arch}.deb`,
124-
`ubuntu24.04-postgresql-18-documentdb_1.0-1_${arch}.deb`,
123+
`ubuntu24.04-documentdb-gateway_1.0.0_${arch}.deb`,
124+
`ubuntu24.04-postgresql-18-documentdb_1.0-0_${arch}.deb`,
125125
]),
126126
...["x86_64", "aarch64"].flatMap((arch) => [
127-
`documentdb-gateway-1.0.1-1.el9.${arch}.rpm`,
128-
`rhel9-postgresql18-documentdb-1.0.1-1.el9.${arch}.rpm`,
127+
`documentdb-gateway-1.0.0-1.el9.${arch}.rpm`,
128+
`rhel9-postgresql18-documentdb-1.0.0-1.el9.${arch}.rpm`,
129129
]),
130130
];
131131
const release = { ...FALLBACK_RELEASE, assetNames };
@@ -151,7 +151,7 @@ describe("published package availability", () => {
151151
expect(releaseHasPackages(partial, defaultInstallSelection.packages)).toBe(false);
152152
});
153153

154-
it.each([null, {}, { tag_name: "v1.0-1", assets: [] }, { tag_name: "../other", assets: [] }])(
154+
it.each([null, {}, { tag_name: "v1.0-0", assets: [] }, { tag_name: "../other", assets: [] }])(
155155
"surfaces malformed or incomplete metadata instead of inventing current versions",
156156
(payload) => {
157157
expect(() => parseReleaseInfo(payload)).toThrow();

‎tests/packageArticles.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ describe('Linux package articles', () => {
298298

299299
it('serves the stable installer without a pinned or RC version', () => {
300300
expect(linuxPackagesGuideContent).toContain('https://documentdb.io/install.sh');
301-
expect(linuxPackagesGuideContent).toContain('installs the current release (v1.0-1) from the package repository');
302-
// install.sh rejects --version v1.0-1, and RCs are retired at GA.
301+
expect(linuxPackagesGuideContent).toContain('installs the current release (v1.0-0) from the package repository');
302+
// install.sh rejects --version v1.0-0, and RCs are retired at GA.
303303
expect(linuxPackagesGuideContent).not.toContain('--version v1.0');
304304
expect(linuxPackagesGuideContent).not.toMatch(/RC2|release-candidate/);
305305
});
@@ -308,13 +308,13 @@ describe('Linux package articles', () => {
308308
const offlineGuide = getArticleByPath('linux-packages', ['offline']);
309309

310310
expect(linuxPackagesGuideContent).toContain(
311-
'documentdb/blob/v1.0-1/packaging/README.md',
311+
'documentdb/blob/v1.0-0/packaging/README.md',
312312
);
313313
expect(linuxPackagesGuideContent).toContain(
314314
'`--load-sample-data` to the setup command to seed the `StoreData` database',
315315
);
316316
expect(offlineGuide?.content).toContain(
317-
'ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb',
317+
'ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb',
318318
);
319319
expect(offlineGuide?.content).toContain(
320320
'pass the five packages for the selected PostgreSQL major',

‎tests/packageInstall.test.ts‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -79,33 +79,33 @@ describe('package metadata', () => {
7979
});
8080

8181
describe('release metadata', () => {
82-
it('uses v1.0-1 for the first paint and feed fallback', () => {
82+
it('uses v1.0-0 for the first paint and feed fallback', () => {
8383
expect(FALLBACK_RELEASE).toMatchObject({
84-
tagName: 'v1.0-1',
85-
aptVersion: '1.0-1',
86-
rpmVersion: '1.0.1-1.el9',
87-
metaVersion: '1.0.1',
88-
metaRpmVersion: '1.0.1-1',
89-
releaseUrl: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-1',
84+
tagName: 'v1.0-0',
85+
aptVersion: '1.0-0',
86+
rpmVersion: '1.0.0-1.el9',
87+
metaVersion: '1.0.0',
88+
metaRpmVersion: '1.0.0-1',
89+
releaseUrl: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-0',
9090
});
9191
});
9292

9393
it('derives v1.0 package versions from the published asset shapes', () => {
9494
expect(parseReleaseInfo({
95-
tag_name: 'v1.0-1',
96-
html_url: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-1',
95+
tag_name: 'v1.0-0',
96+
html_url: 'https://github.com/documentdb/documentdb/releases/tag/v1.0-0',
9797
assets: [
98-
{ name: 'ubuntu24.04-documentdb_1.0.1_all.deb' },
99-
{ name: 'ubuntu24.04-postgresql-18-documentdb_1.0-1_amd64.deb' },
100-
{ name: 'documentdb-1.0.1-1.noarch.rpm' },
101-
{ name: 'rhel9-postgresql18-documentdb-1.0.1-1.el9.x86_64.rpm' },
98+
{ name: 'ubuntu24.04-documentdb_1.0.0_all.deb' },
99+
{ name: 'ubuntu24.04-postgresql-18-documentdb_1.0-0_amd64.deb' },
100+
{ name: 'documentdb-1.0.0-1.noarch.rpm' },
101+
{ name: 'rhel9-postgresql18-documentdb-1.0.0-1.el9.x86_64.rpm' },
102102
],
103103
})).toMatchObject({
104-
tagName: 'v1.0-1',
105-
aptVersion: '1.0-1',
106-
rpmVersion: '1.0.1-1.el9',
107-
metaVersion: '1.0.1',
108-
metaRpmVersion: '1.0.1-1',
104+
tagName: 'v1.0-0',
105+
aptVersion: '1.0-0',
106+
rpmVersion: '1.0.0-1.el9',
107+
metaVersion: '1.0.0',
108+
metaRpmVersion: '1.0.0-1',
109109
});
110110
});
111111
});

0 commit comments

Comments
 (0)