feat: complete TASK-WP0-07 supervisor

This commit is contained in:
suyx
2026-07-27 23:28:36 +08:00
parent 2dd6f5c2c2
commit 096a1f1279
22 changed files with 1717 additions and 6 deletions
+18 -1
View File
@@ -23,12 +23,15 @@ const nativeSmoke = JSON.parse(
const workerSmoke = JSON.parse(
execFileSync(runtimeNode, ["scripts/worker-smoke.mjs"], { encoding: "utf8" }).trim(),
);
const supervisorChannelSmoke = JSON.parse(
execFileSync(runtimeNode, ["scripts/supervisor-channel-smoke.mjs"], { encoding: "utf8" }).trim(),
);
execFileSync(
"dotnet",
[
"restore",
"supervisor/Dada.Supervisor/Dada.Supervisor.csproj",
"supervisor/Dada.Supervisor.Tests/Dada.Supervisor.Tests.csproj",
"--configfile",
"NuGet.Config",
],
@@ -45,6 +48,18 @@ execFileSync(
],
{ stdio: "inherit" },
);
execFileSync(
"dotnet",
[
"run",
"--project",
"supervisor/Dada.Supervisor.Tests/Dada.Supervisor.Tests.csproj",
"--configuration",
"Release",
"--no-restore",
],
{ stdio: "inherit" },
);
const supervisorExecutable = resolve(
"supervisor/Dada.Supervisor/bin/Release/net8.0-windows/Dada.Supervisor.exe",
@@ -63,6 +78,8 @@ const result = {
status: "passed",
supervisor: {
build: "passed",
channel: supervisorChannelSmoke,
lifecycle: "passed",
target: frozenRuntime.dotnetTarget,
},
worker: workerSmoke,