12 lines
1.1 KiB
Plaintext
12 lines
1.1 KiB
Plaintext
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
for (const name of ['release-8be20a04-fedb-4379-8a3b-435bdd20e391', 'release-bf42f32d-eeac-47aa-8fa5-5167208d9035']) {
|
|
const root = path.resolve('.qa', name), failure = JSON.parse(fs.readFileSync(path.join(root, 'compiled-api-failure.json')));
|
|
for (const session of failure.sessions) for (const run of session.execution?.engineRuns ?? []) {
|
|
const file = path.join(root, 'artifacts', run.reportSha256.slice(0, 2), run.reportSha256 + '.blob');
|
|
const report = JSON.parse(fs.readFileSync(file));
|
|
console.log(JSON.stringify({ name, runId: run.id, directory: run.directory, native: { ...report.native, launchInputs: { cwd: report.native.launchInputs?.cwd }, notifications: undefined, rejectedServerRequests: undefined, catalogue: undefined },
|
|
events: session.events.filter(row => row.type?.startsWith('engine_run') || row.event?.startsWith('engine_run')).map(row => ({ type: row.type, event: row.event, createdAt: row.createdAt })) }, (key, value) => ['nonce','launchInputs','tools','catalogue'].includes(key) && key !== 'launchInputs' ? undefined : value));
|
|
}
|
|
}
|