fix(ci): complete Pi provider fixture metadata

This commit is contained in:
2026-08-25 19:23:57 +02:00
parent a8a80b9846
commit fb4a1fa25b
3 changed files with 22 additions and 1 deletions
+14
View File
@@ -52,6 +52,20 @@ cp "$root/scripts/fixtures/workspace-registry-task13.yaml" "$workspace"
if [[ "$profile" == local ]]; then
task13_write_fixture_files
node - "$TASK13_PI_MODELS" <<'NODE'
const fs = require("fs");
const models = JSON.parse(fs.readFileSync(process.argv[2], "utf8"));
const model = models.providers?.["local-qwen"]?.models?.find(
(candidate) => candidate?.id === "task13-smoke",
);
if (!model || JSON.stringify(model.input) !== JSON.stringify(["text"])) {
throw new Error("Task 13 provider smoke model must declare text input support");
}
const expectedCost = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 };
if (JSON.stringify(model.cost) !== JSON.stringify(expectedCost)) {
throw new Error("Task 13 provider smoke model must declare complete zero-cost metadata");
}
NODE
task13_write_environment /fixtures/remote.git
compose_files=(-f "$root/compose.yaml" -f "$root/deploy/compose.local.yaml" -f "$TASK13_OVERRIDE")
else
+7
View File
@@ -408,6 +408,13 @@ task13_write_fixture_files() {
"id": "task13-smoke",
"name": "Task 13 deterministic smoke",
"reasoning": false,
"input": ["text"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 4096,
"maxTokens": 64
}