Run tests against latest radicle 1.6.1 and httpd 0.24.0

This commit is contained in:
Rūdolfs Ošiņš
2026-02-26 11:38:28 -06:00
parent bd3b660b17
commit 06aaa6a97c
6 changed files with 21 additions and 38 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export async function create(
title,
"--description",
description,
...labels.map(label => ["--label", label]).flat(),
...labels.map(label => ["--labels", label]).flat(),
];
const { stdout } = await peer.rad(issueOptions, options);
const match = stdout.match(/Issue {3}([a-zA-Z0-9]*)/);
+5 -25
View File
@@ -443,7 +443,7 @@ export async function createCobsFixture(
createOptions(repoFolder, 5),
);
await peer.rad(
["patch", "review", patchOne, "-m", "LGTM", "--accept"],
["patch", "review", patchOne, "--accept"],
createOptions(repoFolder, 6),
);
await patch.merge(
@@ -462,14 +462,7 @@ export async function createCobsFixture(
{ cwd: repoFolder },
);
await peer.rad(
[
"patch",
"review",
patchTwo,
"-m",
"Not the README we are looking for",
"--reject",
],
["patch", "review", patchTwo, "--reject"],
createOptions(repoFolder, 1),
);
@@ -494,7 +487,7 @@ export async function createCobsFixture(
createOptions(repoFolder, 1),
);
await eve.rad(
["patch", "review", patchThree, "-m", "This looks better"],
["patch", "review", patchThree, "--accept"],
createOptions(repoFolder, 2),
);
await Fs.appendFile(
@@ -516,14 +509,7 @@ export async function createCobsFixture(
createOptions(repoFolder, 3),
);
await peer.rad(
[
"patch",
"review",
patchThree,
"-m",
"No this doesn't look better",
"--reject",
],
["patch", "review", patchThree, "--reject"],
createOptions(repoFolder, 2),
);
@@ -536,13 +522,7 @@ export async function createCobsFixture(
{ cwd: repoFolder },
);
await peer.rad(
[
"patch",
"review",
patchFour,
"-m",
"No review due to patch being archived.",
],
["patch", "review", patchFour, "--accept"],
createOptions(repoFolder, 1),
);
await peer.rad(["patch", "archive", patchFour], createOptions(repoFolder, 2));
+7 -2
View File
@@ -22,8 +22,13 @@ const heartwoodBinaryPath = Path.join(
"bin",
"heartwood",
heartwoodRelease,
);
const httpdBinaryPath = Path.join(tmpDir, "bin", "httpd", radicleHttpdRelease);
).trim();
const httpdBinaryPath = Path.join(
tmpDir,
"bin",
"httpd",
radicleHttpdRelease,
).trim();
process.env.PATH = [
heartwoodBinaryPath,
+1 -1
View File
@@ -1 +1 @@
1.4.0
1.6.1
+1 -1
View File
@@ -1 +1 @@
0.20.0
0.24.0
+6 -8
View File
@@ -25,15 +25,13 @@ export const tmpDir = Path.resolve(supportDir, "..", "./tmp");
export const fixturesDir = Path.resolve(supportDir, "..", "./fixtures");
const workspacePaths = [Path.join(tmpDir, "peers"), Path.join(tmpDir, "repos")];
export const heartwoodRelease = await Fs.readFile(
`${supportDir}/heartwood-release`,
"utf8",
);
export const heartwoodRelease = (
await Fs.readFile(`${supportDir}/heartwood-release`, "utf8")
).trim();
export const radicleHttpdRelease = await Fs.readFile(
`${supportDir}/radicle-httpd-release`,
"utf8",
);
export const radicleHttpdRelease = (
await Fs.readFile(`${supportDir}/radicle-httpd-release`, "utf8")
).trim();
// Assert that binaries are installed and are the correct version.
export async function assertBinariesInstalled(