@dunnewold-labs/mr-manager 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -185,7 +185,7 @@ import { fileURLToPath } from "url";
|
|
|
185
185
|
// cli/package.json
|
|
186
186
|
var package_default = {
|
|
187
187
|
name: "@dunnewold-labs/mr-manager",
|
|
188
|
-
version: "0.4.
|
|
188
|
+
version: "0.4.8",
|
|
189
189
|
description: "Mr. Manager - Task and project management CLI",
|
|
190
190
|
bin: {
|
|
191
191
|
mr: "./dist/index.mjs"
|
|
@@ -2819,16 +2819,25 @@ ${divider}`);
|
|
|
2819
2819
|
}
|
|
2820
2820
|
dispatchPrototypeJob(proto, repoDir);
|
|
2821
2821
|
}
|
|
2822
|
+
const MAX_CONCURRENT_TESTS = 2;
|
|
2822
2823
|
const testTasks = queuedTasks.filter((t) => t.mode === "testing");
|
|
2823
2824
|
for (const task of testTasks) {
|
|
2824
2825
|
const key = `test-${task.id}`;
|
|
2825
2826
|
if (queued.has(key)) continue;
|
|
2826
2827
|
if (finishing.has(key)) continue;
|
|
2827
2828
|
if (failed.has(key)) continue;
|
|
2829
|
+
const activeTests = [...queued].filter((k) => k.startsWith("test-")).length;
|
|
2830
|
+
if (activeTests >= MAX_CONCURRENT_TESTS) break;
|
|
2828
2831
|
const sid = shortId(task.id);
|
|
2829
2832
|
const prefix = testTag(sid);
|
|
2830
2833
|
if (!task.link) {
|
|
2831
2834
|
logWarn(prefix, `"${task.title}": no MR/PR link \u2014 skipping`);
|
|
2835
|
+
failed.set(key, "no MR/PR link");
|
|
2836
|
+
try {
|
|
2837
|
+
await api.patch(`/api/tasks/${task.id}`, { status: "error" });
|
|
2838
|
+
await postTaskUpdate(task.id, "Test skipped: task has no MR/PR link", "system");
|
|
2839
|
+
} catch {
|
|
2840
|
+
}
|
|
2832
2841
|
continue;
|
|
2833
2842
|
}
|
|
2834
2843
|
queued.add(key);
|