fix(ci): log Electron setup and verify the product Edge runtime

This commit is contained in:
Agent Workbench Dev
2026-11-07 22:03:18 +08:00
parent af42b949ef
commit 0b4f1de439
9 changed files with 23 additions and 9 deletions
+2 -2
View File
@@ -85,13 +85,13 @@ try {
const pythonInfo = JSON.parse(readOutput('python-packages')); assert.equal(pythonInfo.python,lock.python); assert.equal(pythonInfo.pytest,lock.pytest); assert.equal(pythonInfo.pip,lock.pip); assert.notEqual(pythonInfo.prefix,pythonInfo.basePrefix);
report.environment.pythonQa = { ...pythonInfo, sha256: fileDigest(python), requirementsSha256: fileDigest(path.join(run.source,'scripts/ci-python-requirements.txt')) };
await command('python-pip-check',python,['-I','-m','pip','--isolated','check'],run.tmp);
stage = 'explicit-electron-install';
await nodeCommand('electron-install',['node_modules/electron/install.js']);
const require = createRequire(path.join(run.source,'package.json'));
const electron = require('electron'); assert.ok(fs.statSync(electron).isFile(), 'Actual Electron binary missing');
report.environment.electron = { executable: electron, sha256: fileDigest(electron) };
const { browserInstallation } = await import(pathToFileURL(path.join(run.source,'src/core/browser/browser-driver.mjs')).href);
const edge = browserInstallation(run.source); assert.equal(edge.status,'available','Actual Microsoft Edge is required; do not skip browser tests.'); report.environment.edge = edge;
stage = 'chromium-install';
await nodeCommand('chromium-install', ['node_modules/playwright/cli.js','install','chromium']);
}
stage = 'build'; await nodeCommand('build',[npmCli,'run','build']);
report.build = builtFiles(run.source); writeNewJson(path.join(run.evidence,'build-inputs.json'),report.build);