Export runtime targets in conformance pack
This commit is contained in:
parent
3385cff2ef
commit
85d270e0ab
5 changed files with 59 additions and 3 deletions
|
|
@ -280,6 +280,11 @@ Exit criteria:
|
|||
|
||||
Recently cut:
|
||||
|
||||
- The conformance runtime pack now exports `runtimeTargets` in
|
||||
`artifacts/conformance/latest/packs/runtime.json`. Runtime repos can consume
|
||||
runtime status, feature/plugin claims, command schema, lifecycle, capture
|
||||
status, capability manifest path, and missing evidence without depending on
|
||||
Eve's parity manifest layout.
|
||||
- Sai, Norn, and TeX plugin ABI fixtures now cover `lower` and `measure` in
|
||||
addition to `describe`, `validate`, `project`, and `apply`. Eve validates the
|
||||
operation shape, preserved component kinds, measurement outputs, and provider
|
||||
|
|
|
|||
|
|
@ -85,6 +85,12 @@ The conformance export includes runtime `capabilityManifestPath` and
|
|||
generic projection runtime from a runtime that can project plugin-declared
|
||||
capabilities.
|
||||
|
||||
The runtime conformance pack is evidence-shaped, not fixture-shaped. Its
|
||||
`packs/runtime.json` document includes `runtimeTargets` so runtime repos can
|
||||
consume status, supported features, plugin support, command schema, lifecycle,
|
||||
capture status, and missing evidence without reading Eve's local parity
|
||||
manifest.
|
||||
|
||||
After generating the parity report, `run-parity-harness.ps1` copies
|
||||
`artifacts/conformance/latest` into
|
||||
`artifacts/conformance-consumer-smoke/export` and runs
|
||||
|
|
|
|||
|
|
@ -49,6 +49,9 @@
|
|||
},
|
||||
"fixtures": {
|
||||
"type": "array"
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
|
|
|
|||
|
|
@ -72,6 +72,16 @@ function validateIndex(index, directory, expectations, errors) {
|
|||
if (!fixture.surface?.path) errors.push(`pack-file:${pack.id}:fixture:${fixture.fixtureId || "unknown"}:surface.path:missing`);
|
||||
if (!fixture.metadataPath) errors.push(`pack-file:${pack.id}:fixture:${fixture.fixtureId || "unknown"}:metadataPath:missing`);
|
||||
}
|
||||
|
||||
if (pack.id === "runtime") {
|
||||
const runtimeTargets = Array.isArray(packDocument.runtimeTargets) ? packDocument.runtimeTargets : [];
|
||||
if (!runtimeTargets.length) errors.push("pack-file:runtime:runtimeTargets:missing");
|
||||
for (const runtime of runtimeTargets) {
|
||||
if (!runtime.runtimeId) errors.push("pack-file:runtime:runtimeTarget:runtimeId:missing");
|
||||
if (!runtime.status) errors.push(`pack-file:runtime:runtimeTarget:${runtime.runtimeId || "unknown"}:status:missing`);
|
||||
if (!runtime.ownerRepo) errors.push(`pack-file:runtime:runtimeTarget:${runtime.runtimeId || "unknown"}:ownerRepo:missing`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const plugins = Array.isArray(index.plugins) ? index.plugins : [];
|
||||
|
|
|
|||
|
|
@ -1184,12 +1184,39 @@ function buildConformanceExport(report) {
|
|||
asserts: fixture.metadata?.asserts || [],
|
||||
requiredPlugins: fixture.requiredPlugins || [],
|
||||
}));
|
||||
const runtimeTargets = pack.id === "runtime"
|
||||
? (report.runtimes || []).map(runtime => ({
|
||||
runtimeId: runtime.id,
|
||||
title: runtime.title,
|
||||
status: runtime.status,
|
||||
ownerRepo: runtime.ownerRepo,
|
||||
splitTarget: runtime.splitTarget,
|
||||
repoRole: runtime.repoRole,
|
||||
supportedFeatures: runtime.supportedFeatures,
|
||||
supportedPlugins: runtime.supportedPlugins,
|
||||
unsupportedPlugins: runtime.unsupportedPlugins,
|
||||
requiredFixtures: runtime.requiredFixtures,
|
||||
pluginFixtures: runtime.pluginFixtures,
|
||||
capabilityManifestPath: runtime.capabilityManifest?.manifestPath || "",
|
||||
commandTransportSchema: runtime.commandTransportSmoke?.schema || "",
|
||||
captureStatus: runtime.capture?.status || "",
|
||||
lifecycle: runtime.lifecycle,
|
||||
missingEvidence: [
|
||||
...runtime.missingPaths,
|
||||
...runtime.missingRequiredFixtures.map(id => `fixture:${id}`),
|
||||
...runtime.missingRequiredFeatures.map(id => `feature:${id}`),
|
||||
...runtime.commandTransportSmokeErrors.map(id => `command-smoke:${id}`),
|
||||
...runtime.capabilityManifestErrors.map(id => `runtime-capability:${id}`),
|
||||
],
|
||||
}))
|
||||
: [];
|
||||
|
||||
return {
|
||||
id: pack.id,
|
||||
ownerRepo: pack.ownerRepo || "",
|
||||
exitCriteria: pack.exitCriteria || "",
|
||||
fixtures,
|
||||
...(runtimeTargets.length ? { runtimeTargets } : {}),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
@ -1259,7 +1286,9 @@ function renderConformanceExportMarkdown(conformanceExport) {
|
|||
];
|
||||
|
||||
for (const pack of conformanceExport.packs) {
|
||||
lines.push(`| ${pack.id} | ${pack.ownerRepo} | ${pack.fixtures.length} | ${pack.exitCriteria} |`);
|
||||
const runtimeTargets = (pack.runtimeTargets || []).length;
|
||||
const evidenceCount = runtimeTargets ? `${pack.fixtures.length} fixtures, ${runtimeTargets} runtimes` : `${pack.fixtures.length}`;
|
||||
lines.push(`| ${pack.id} | ${pack.ownerRepo} | ${evidenceCount} | ${pack.exitCriteria} |`);
|
||||
}
|
||||
|
||||
lines.push("", "## Fixtures", "", "| Pack | Fixture | Status | Owner | Surface | Metadata |", "| --- | --- | --- | --- | --- | --- |");
|
||||
|
|
@ -1270,9 +1299,12 @@ function renderConformanceExportMarkdown(conformanceExport) {
|
|||
}
|
||||
|
||||
lines.push("", "## Runtime Targets", "", "| Runtime | Status | Split Target | Command Schema | Unsupported Plugins |", "| --- | --- | --- | --- | --- |");
|
||||
for (const runtime of conformanceExport.runtimes) {
|
||||
const runtimePack = conformanceExport.packs.find(pack => pack.id === "runtime");
|
||||
const runtimeTargets = runtimePack?.runtimeTargets?.length ? runtimePack.runtimeTargets : conformanceExport.runtimes;
|
||||
for (const runtime of runtimeTargets) {
|
||||
const unsupported = (runtime.unsupportedPlugins || []).map(plugin => plugin.pluginId).join(", ");
|
||||
lines.push(`| ${runtime.runtimeId} | ${runtime.status} | ${runtime.splitTarget || ""} | ${runtime.commandTransportSchema || ""} | ${unsupported} |`);
|
||||
const commandSchema = runtime.commandTransportSchema || "";
|
||||
lines.push(`| ${runtime.runtimeId} | ${runtime.status} | ${runtime.splitTarget || ""} | ${commandSchema} | ${unsupported} |`);
|
||||
}
|
||||
|
||||
return `${lines.join("\n")}\n`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue