Check execution workspace candidates with pinned artifact builders
This commit is contained in:
@@ -34,6 +34,7 @@ export async function checkAuthoring(
|
||||
phase: string;
|
||||
output: string;
|
||||
compilation?: "passed";
|
||||
runtime?: "execution";
|
||||
activationReadiness?: "preserve" | "migration-required" | "blocked";
|
||||
migrationRequired?: string[];
|
||||
} = {
|
||||
@@ -98,7 +99,13 @@ export async function checkAuthoring(
|
||||
const candidateText = await fs.readFile(path.join(report.artifactPath, "candidate.json"), "utf8");
|
||||
await fs.writeFile(path.join(output, "candidate.json"), candidateText);
|
||||
report.compilation = "passed";
|
||||
if (resource.kind === "workspace" && !options.contractOnly) {
|
||||
try {
|
||||
await fs.access(path.join(report.artifactPath, "execution-plan.json"));
|
||||
report.runtime = "execution";
|
||||
} catch (error) {
|
||||
if ((error as NodeJS.ErrnoException).code !== "ENOENT") throw error;
|
||||
}
|
||||
if (resource.kind === "workspace" && !options.contractOnly && report.runtime !== "execution") {
|
||||
report.phase = "evolution";
|
||||
await progress();
|
||||
let baseline = options.baseline;
|
||||
|
||||
Reference in New Issue
Block a user