Supporting Custom Build Trace File Names (#3443)

* Removing hard-coded trace filename

* Including stage name in notification

* Simplifying capture setup and tagging file names with arch

* Removed test property from notification message

* Fixing regex to get arch name

* Fixing error in notification and modified regex
This commit is contained in:
andrew clark
2025-12-18 13:15:33 -07:00
committed by GitHub
parent 2ea710e88b
commit e77a7ca2bc
2 changed files with 12 additions and 28 deletions

View File

@@ -1,4 +1,5 @@
const puppeteer = require('puppeteer');
const buildTraceFileName = process.env.BUILD_TRACE_FILE;
(async () => {
try {
@@ -31,7 +32,7 @@ const puppeteer = require('puppeteer');
page.waitForFileChooser(),
element.click()
]);
await fileChooser.accept(['/workspace/ck_build_trace.json']);
await fileChooser.accept([`/workspace/${buildTraceFileName}`]);
} else {
throw new Error('Element not found');
}