Record flux2klein smoke run
This commit is contained in:
@@ -141,16 +141,16 @@ function summarizeBusy(queueData) {
|
||||
function writeState(options, patch) {
|
||||
const previous = fs.existsSync(options.stateFile) ? readJson(options.stateFile) : {};
|
||||
const next = {
|
||||
date: new Date().toISOString(),
|
||||
testsSet: false,
|
||||
serverBusy: false,
|
||||
reason: '',
|
||||
cases: [],
|
||||
reviewPending: false,
|
||||
optimizedPaths: options.optimizedPaths,
|
||||
verdict: null,
|
||||
...previous,
|
||||
...patch,
|
||||
date: new Date().toISOString(),
|
||||
optimizedPaths: options.optimizedPaths,
|
||||
};
|
||||
writeJson(options.stateFile, next);
|
||||
return next;
|
||||
@@ -240,8 +240,13 @@ async function main() {
|
||||
const runRecordPath = path.join(caseDir, 'run-record.json');
|
||||
const promptPath = path.join(caseDir, 'resolved-prompt.json');
|
||||
const runRecord = readJson(runRecordPath);
|
||||
const outputFile = Array.isArray(runRecord.files) && runRecord.files.length
|
||||
? runRecord.files[0].localPath
|
||||
const outputEntries = Array.isArray(runRecord.images) && runRecord.images.length
|
||||
? runRecord.images
|
||||
: Array.isArray(runRecord.files) && runRecord.files.length
|
||||
? runRecord.files
|
||||
: [];
|
||||
const outputFile = outputEntries.length
|
||||
? outputEntries[0].localPath
|
||||
: null;
|
||||
|
||||
const manifest = {
|
||||
@@ -252,6 +257,7 @@ async function main() {
|
||||
resolvedPrompt: repoRelative(promptPath),
|
||||
promptId: result.promptId || runRecord.promptId || null,
|
||||
status: result.status || runRecord?.status?.status_str || 'unknown',
|
||||
optimizedPaths: options.optimizedPaths,
|
||||
overrides: {
|
||||
steps: options.steps,
|
||||
cfg: options.cfg,
|
||||
|
||||
Reference in New Issue
Block a user