From 497e1c268e25f2ea0c3565a235bd74d85feb8437 Mon Sep 17 00:00:00 2001 From: Andre Brait Date: Fri, 20 Nov 2026 07:45:36 +0000 Subject: [PATCH] chore: use the ompweb-dev/tau names in test fixtures and doc file names --- bin/generate-release-notes.test.mjs | 6 +++--- components/MarkdownBody.test.mjs | 4 ++-- components/MessageView.test.mjs | 10 +++++----- components/SettingsConfig.updates.test.mjs | 4 ++-- components/UpdateToast.test.mjs | 2 +- ...in-ompweb.md => 2026-11-12-omp-build-in-tau.md} | 2 +- ...gn.md => 2026-11-12-omp-build-in-tau-design.md} | 0 lib/git-clone.test.mjs | 4 ++-- lib/hosts/update-fixture.test-helper.mjs | 2 +- lib/hosts/update-worker.test.mjs | 14 +++++++------- lib/message-origin.test.mjs | 4 ++-- 11 files changed, 26 insertions(+), 26 deletions(-) rename docs/plans/{2026-11-12-omp-build-in-ompweb.md => 2026-11-12-omp-build-in-tau.md} (99%) rename docs/specs/{2026-11-12-omp-build-in-ompweb-design.md => 2026-11-12-omp-build-in-tau-design.md} (100%) diff --git a/bin/generate-release-notes.test.mjs b/bin/generate-release-notes.test.mjs index 2c5caaa8..1c99cb2e 100644 --- a/bin/generate-release-notes.test.mjs +++ b/bin/generate-release-notes.test.mjs @@ -40,10 +40,10 @@ Older release notes. it('cleans commit subjects and transforms PR links', () => { const raw = 'feat(composer): expand queued prompts (#12)'; - const cleaned = cleanSubject(raw, 'ompweb-dev/ompweb'); + const cleaned = cleanSubject(raw, 'ompweb-dev/tau'); assert.equal( cleaned, - 'Expand queued prompts ([#12](https://github.com/ompweb-dev/ompweb/pull/12))' + 'Expand queued prompts ([#12](https://github.com/ompweb-dev/tau/pull/12))' ); }); @@ -97,7 +97,7 @@ Older release notes. version: '0.4.0', commits, previousTag: 'v0.3.6', - repo: 'ompweb-dev/ompweb', + repo: 'ompweb-dev/tau', }); assert.match(notes, /## Highlights/); diff --git a/components/MarkdownBody.test.mjs b/components/MarkdownBody.test.mjs index 92d33deb..70412d37 100644 --- a/components/MarkdownBody.test.mjs +++ b/components/MarkdownBody.test.mjs @@ -134,9 +134,9 @@ function renderWithRepo(markdown, repo) { } test("links bare #N to the session repository and owner/repo#N to its own", () => { - const html = renderWithRepo("On PR #3460 (see can1357/oh-my-pi#12130).", "ompweb-dev/ompweb"); + const html = renderWithRepo("On PR #3460 (see can1357/oh-my-pi#12130).", "ompweb-dev/tau"); - assert.match(html, /]*>#3460<\/a>/); + assert.match(html, /]*>#3460<\/a>/); assert.match(html, /]*>can1357\/oh-my-pi#12130<\/a>/); }); diff --git a/components/MessageView.test.mjs b/components/MessageView.test.mjs index dcbe747a..bf9bcee6 100644 --- a/components/MessageView.test.mjs +++ b/components/MessageView.test.mjs @@ -146,21 +146,21 @@ test("GitHub watcher origins render a linked automated update card", () => { const view = render(React.createElement(MessageView, { message: { role: "user", - content: "GitHub update (tau): ompweb-dev/ompweb#503 https://github.com/ompweb-dev/ompweb/pull/503", + content: "GitHub update (tau): ompweb-dev/tau#503 https://github.com/ompweb-dev/tau/pull/503", origin: { v: 1, kind: "github", sentAt: "2026-11-15T12:42:00.000Z", github: { - repo: "ompweb-dev/ompweb", number: 503, target: "pr", - url: "https://github.com/ompweb-dev/ompweb/pull/503", + repo: "ompweb-dev/tau", number: 503, target: "pr", + url: "https://github.com/ompweb-dev/tau/pull/503", events: [{ kind: "review", author: "coderabbitai", bot: true, state: "APPROVED" }], }, }, }, })); - const card = view.getByRole("article", { name: "Automated GitHub update for ompweb-dev/ompweb#503" }); + const card = view.getByRole("article", { name: "Automated GitHub update for ompweb-dev/tau#503" }); assert.match(card.textContent, /GitHub update/); assert.match(card.textContent, /Review from coderabbitai/); - assert.equal(view.getByRole("link", { name: "Open ompweb-dev/ompweb#503 on GitHub" }).getAttribute("target"), "_blank"); + assert.equal(view.getByRole("link", { name: "Open ompweb-dev/tau#503 on GitHub" }).getAttribute("target"), "_blank"); }); test("held automated messages identify their source before delivery", () => { diff --git a/components/SettingsConfig.updates.test.mjs b/components/SettingsConfig.updates.test.mjs index 9d389020..d103a407 100644 --- a/components/SettingsConfig.updates.test.mjs +++ b/components/SettingsConfig.updates.test.mjs @@ -57,7 +57,7 @@ test("System keeps web-server updates but never checks or updates the host runti }); test("a binary install's tau update links the release page instead of showing a command", async (t) => { - const releases = "https://github.com/ompweb-dev/ompweb/releases/latest"; + const releases = "https://github.com/ompweb-dev/tau/releases/latest"; const appUpdate = { currentVersion: "0.6.0", availableVersion: "0.7.0", updateAvailable: true, selfUpdateSupported: false }; const { container: binary } = await renderSystemTab(t, { appUpdate: { ...appUpdate, installMethod: "binary", updateCommand: releases } }); const link = binary.querySelector(`a[href="${releases}"]`); @@ -71,7 +71,7 @@ test("a binary install's tau update links the release page instead of showing a }); test("a supported binary install gets the in-app Update action, not a download link, and clicking it only opens the review", async (t) => { - const releases = "https://github.com/ompweb-dev/ompweb/releases/latest"; + const releases = "https://github.com/ompweb-dev/tau/releases/latest"; let requested = 0; const { container, requests } = await renderSystemTab(t, { appUpdate: { currentVersion: "0.7.0", availableVersion: "0.8.0", updateAvailable: true, selfUpdateSupported: true, installMethod: "binary", updateCommand: releases }, diff --git a/components/UpdateToast.test.mjs b/components/UpdateToast.test.mjs index 2186bdbf..781c5748 100644 --- a/components/UpdateToast.test.mjs +++ b/components/UpdateToast.test.mjs @@ -7,7 +7,7 @@ import { renderToStaticMarkup } from "react-dom/server"; import { toast } from "./ui/toast"; import { UpdateToastBody } from "./UpdateToast"; -const RELEASES = "https://github.com/ompweb-dev/ompweb/releases/latest"; +const RELEASES = "https://github.com/ompweb-dev/tau/releases/latest"; test("an update toast links the release page instead of showing it as a command", () => { const html = renderToStaticMarkup(createElement(UpdateToastBody, { currentVersion: "0.6.0", availableVersion: "0.7.0", target: RELEASES, link: true })); diff --git a/docs/plans/2026-11-12-omp-build-in-ompweb.md b/docs/plans/2026-11-12-omp-build-in-tau.md similarity index 99% rename from docs/plans/2026-11-12-omp-build-in-ompweb.md rename to docs/plans/2026-11-12-omp-build-in-tau.md index c021c93b..3f364358 100644 --- a/docs/plans/2026-11-12-omp-build-in-ompweb.md +++ b/docs/plans/2026-11-12-omp-build-in-tau.md @@ -6,7 +6,7 @@ **Goal:** the omp round runs in `ompweb-dev/oh-my-pi` from its default branch `fork-ci` (RPC dropped; also triggered by carried-PR changes; escalating on the fork; fork binaries versioned `-int..g` and updating from fork releases; each promoted release carrying an npm package zip). ompweb's `runner/` compiles against that zip, every ompweb (pre)release re-pins to the newest `integration-release` build, and the omp row follows ompweb. integration-ci keeps only the script and its other builds. -**Spec:** `docs/specs/2026-11-12-omp-build-in-ompweb-design.md` (F1–F9, W1–W3, cleanup). Read it first. No open questions. +**Spec:** `docs/specs/2026-11-12-omp-build-in-tau-design.md` (F1–F9, W1–W3, cleanup). Read it first. No open questions. **State (2026-11-13):** I1, I2 and K1–K5 are done, and K7's schedule is back; the first promoted release is `v18.20.0-int.202611130808.gfd57e86`. W1–W3 landed in ompweb PR #473 (one PR instead of PRs B and C), pinned to that release. Open: K6's rewiring, K7's first scheduled run, W2's first pre-release after the merge, and I3. diff --git a/docs/specs/2026-11-12-omp-build-in-ompweb-design.md b/docs/specs/2026-11-12-omp-build-in-tau-design.md similarity index 100% rename from docs/specs/2026-11-12-omp-build-in-ompweb-design.md rename to docs/specs/2026-11-12-omp-build-in-tau-design.md diff --git a/lib/git-clone.test.mjs b/lib/git-clone.test.mjs index fa915ca4..06d51486 100644 --- a/lib/git-clone.test.mjs +++ b/lib/git-clone.test.mjs @@ -4,9 +4,9 @@ import test from "node:test"; const { appendProgress, cloneDirectoryName, repositoryKey } = await import("./git-clone.ts"); test("cloneDirectoryName derives git's directory name from https and ssh URLs", () => { - assert.equal(cloneDirectoryName("https://github.com/ompweb-dev/ompweb.git"), "ompweb"); + assert.equal(cloneDirectoryName("https://github.com/ompweb-dev/tau.git"), "tau"); assert.equal(cloneDirectoryName("https://user:token@gitlab.example.com/group/sub/repo/"), "repo"); - assert.equal(cloneDirectoryName("git@github.com:ompweb-dev/ompweb.git"), "ompweb"); + assert.equal(cloneDirectoryName("git@github.com:ompweb-dev/tau.git"), "tau"); assert.equal(cloneDirectoryName("gh:owner/repo"), "repo"); assert.equal(cloneDirectoryName("ssh://git@host:2222/srv/repo.git"), "repo"); assert.equal(cloneDirectoryName(" git@host:repo "), "repo"); diff --git a/lib/hosts/update-fixture.test-helper.mjs b/lib/hosts/update-fixture.test-helper.mjs index bd6a300c..31f87680 100644 --- a/lib/hosts/update-fixture.test-helper.mjs +++ b/lib/hosts/update-fixture.test-helper.mjs @@ -107,7 +107,7 @@ export function writeRelease(dir, version, kind = "ack", { binary = false, pidFi mkdirSync(dirname(join(dir, file)), { recursive: true }); cpSync(join(repo, file), join(dir, file)); } - writeFileSync(join(dir, "package.json"), JSON.stringify({ name: "@ompweb-dev/tau", version, repository: { type: "git", url: "git+https://github.com/ompweb-dev/ompweb.git" } })); + writeFileSync(join(dir, "package.json"), JSON.stringify({ name: "@ompweb-dev/tau", version, repository: { type: "git", url: "git+https://github.com/ompweb-dev/tau.git" } })); writeFileSync(join(dir, "bin", "tau-host.js"), hostScript(kind, pidFile)); writeFileSync(join(dir, "bin", "idle-web.js"), "setInterval(()=>{},1000);\n"); // An npm/bun release's `preflight` (bin/tau.js), found by its lib/hosts/preflight.ts; it answers as the binary's below. diff --git a/lib/hosts/update-worker.test.mjs b/lib/hosts/update-worker.test.mjs index d6f68d62..75e4e26b 100644 --- a/lib/hosts/update-worker.test.mjs +++ b/lib/hosts/update-worker.test.mjs @@ -117,7 +117,7 @@ async function fixture(id, { candidate = "ack", installKind = "ack", method = "n hostArgs: layout.hostArgs, cwd: layout.cwd, daemonPid, // `identity` fakes a recycled pid: the snapshot names another process start. process: identity ? { ...snapshot, identity, current: { ...snapshot.current, identity } } : snapshot, - managerPath: manager, restartOnly: restartOnly || undefined, prepareOnly: prepareOnly || undefined, releaseRepo: "ompweb-dev/ompweb", force: force || undefined, receipt, + managerPath: manager, restartOnly: restartOnly || undefined, prepareOnly: prepareOnly || undefined, releaseRepo: "ompweb-dev/tau", force: force || undefined, receipt, }; const descriptorPath = join(attempt, "descriptor.json"); writeFileSync(descriptorPath, JSON.stringify(descriptor), { mode: 0o600 }); @@ -135,14 +135,14 @@ function stubReleaseFetch(archive, asset) { const original = globalThis.fetch; const digest = asset.digest ?? "sha256:" + createHash("sha256").update(archive).digest("hex"); globalThis.fetch = async (url) => { - if (String(url) === "https://api.github.com/repos/ompweb-dev/ompweb/releases/tags/v2.0.0") return Response.json({ tag_name: "v2.0.0", assets: [{ name: `${worker.hostReleaseName()}.tar.gz`, digest }] }); - assert.equal(String(url), `https://github.com/ompweb-dev/ompweb/releases/download/v2.0.0/${worker.hostReleaseName()}.tar.gz`); + if (String(url) === "https://api.github.com/repos/ompweb-dev/tau/releases/tags/v2.0.0") return Response.json({ tag_name: "v2.0.0", assets: [{ name: `${worker.hostReleaseName()}.tar.gz`, digest }] }); + assert.equal(String(url), `https://github.com/ompweb-dev/tau/releases/download/v2.0.0/${worker.hostReleaseName()}.tar.gz`); return new Response(archive); }; return () => { globalThis.fetch = original; }; } -const pin = (digest) => ({ version: "2.0.0", releaseRepo: "ompweb-dev/ompweb", +const pin = (digest) => ({ version: "2.0.0", releaseRepo: "ompweb-dev/tau", assets: { [`${worker.hostReleaseName()}${windows ? ".zip" : ".tar.gz"}`]: digest }, npm: { tarball: "https://registry.npmjs.org/@ompweb-dev/tau/-/tau-2.0.0.tgz", integrity: `sha512-${Buffer.alloc(64).toString("base64")}` } }); async function prepared(f) { @@ -160,7 +160,7 @@ test("approved binary A refuses refreshed metadata B even when B bytes match B", const archive = Buffer.from("replacement B"); const restore = stubReleaseFetch(archive, {}); try { - await assert.rejects(worker.stageBinary({ version: "2.0.0", releaseRepo: "ompweb-dev/ompweb", releasePin: pin("a".repeat(64)), requireReleasePin: true }, staging), /approved|digest/i); + await assert.rejects(worker.stageBinary({ version: "2.0.0", releaseRepo: "ompweb-dev/tau", releasePin: pin("a".repeat(64)), requireReleasePin: true }, staging), /approved|digest/i); } finally { restore(); } }); @@ -179,9 +179,9 @@ test("pin validation canonicalizes assets and refuses missing, malformed and unk const second = { ...approved, assets: { "tau-windows-x64.zip": "b".repeat(64), "tau-linux-arm64.tar.gz": "c".repeat(64) } }; assert.deepEqual(Object.keys(worker.validateApprovedReleasePin(second).assets), ["tau-linux-arm64.tar.gz", "tau-windows-x64.zip"]); for (const value of [null, {}, { ...approved, unexpected: true }, { ...approved, version: "1.0.0" }, { ...approved, assets: {} }, { ...approved, npm: { ...approved.npm, tarball: "https://evil.test/payload.tgz" } }, { ...approved, npm: { ...approved.npm, integrity: "sha512-AAAA" } }]) { - assert.throws(() => worker.validateApprovedReleasePin(value, "2.0.0", "ompweb-dev/ompweb"), /approved release pin/); + assert.throws(() => worker.validateApprovedReleasePin(value, "2.0.0", "ompweb-dev/tau"), /approved release pin/); } - await assert.rejects(worker.stageBinary({ version: "2.0.0", releaseRepo: "ompweb-dev/ompweb", requireReleasePin: true }, base), /Missing approved release pin/); + await assert.rejects(worker.stageBinary({ version: "2.0.0", releaseRepo: "ompweb-dev/tau", requireReleasePin: true }, base), /Missing approved release pin/); const binaryPin = { ...approved }; delete binaryPin.npm; await assert.rejects(worker.stagePackage({ version: "2.0.0", installMethod: "npm", releasePin: binaryPin, requireReleasePin: true }, base), /npm.*missing/i); diff --git a/lib/message-origin.test.mjs b/lib/message-origin.test.mjs index abf89865..8fb6a1bc 100644 --- a/lib/message-origin.test.mjs +++ b/lib/message-origin.test.mjs @@ -29,10 +29,10 @@ const githubOrigin = { kind: "github", sentAt: "2026-11-15T12:42:00.000Z", github: { - repo: "ompweb-dev/ompweb", + repo: "ompweb-dev/tau", number: 503, target: "pr", - url: "https://github.com/ompweb-dev/ompweb/pull/503", + url: "https://github.com/ompweb-dev/tau/pull/503", events: [{ kind: "review", author: "coderabbitai", bot: true, state: "changes requested" }], }, };