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
6 changes: 3 additions & 3 deletions bin/generate-release-notes.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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))'
);
});

Expand Down Expand Up @@ -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/);
Expand Down
4 changes: 2 additions & 2 deletions components/MarkdownBody.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, /<a href="https:\/\/github\.com\/ompweb-dev\/ompweb\/issues\/3460"[^>]*>#3460<\/a>/);
assert.match(html, /<a href="https:\/\/github\.com\/ompweb-dev\/tau\/issues\/3460"[^>]*>#3460<\/a>/);
assert.match(html, /<a href="https:\/\/github\.com\/can1357\/oh-my-pi\/issues\/12130"[^>]*>can1357\/oh-my-pi#12130<\/a>/);
});

Expand Down
10 changes: 5 additions & 5 deletions components/MessageView.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
4 changes: 2 additions & 2 deletions components/SettingsConfig.updates.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]`);
Expand All @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion components/UpdateToast.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<upstream>-int.<stamp>.g<sha7>` 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.

Expand Down
4 changes: 2 additions & 2 deletions lib/git-clone.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion lib/hosts/update-fixture.test-helper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
14 changes: 7 additions & 7 deletions lib/hosts/update-worker.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -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) {
Expand All @@ -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(); }
});

Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions lib/message-origin.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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" }],
},
};
Expand Down
Loading