mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
devops: fix azure function bugs (#4998)
This patch: - starts processing dashboards serially to avoid hitting node.js azure function heap limit - fixes typo in the new `dashboards_raw` processor
This commit is contained in:
parent
8316dee44d
commit
fcbfbe6fa1
@ -28,7 +28,6 @@ async function processDashboardRaw(context, report) {
|
||||
SHA: ${report.metadata.commitSHA}
|
||||
URL: ${report.metadata.runURL}
|
||||
timestamp: ${report.metadata.commitTimestamp}
|
||||
added specs: ${addedSpecs}
|
||||
===== complete in ${Date.now() - timestamp}ms =====
|
||||
`);
|
||||
}
|
||||
|
@ -27,10 +27,9 @@ module.exports = async function(context) {
|
||||
const data = await gunzipAsync(context.bindings.newBlob);
|
||||
const report = JSON.parse(data.toString('utf8'));
|
||||
|
||||
// Upload report to both dashboards.
|
||||
await Promise.all([
|
||||
processDashboardV1(context, report),
|
||||
processDashboardV2(context, report),
|
||||
processDashboardRaw(context, report),
|
||||
]);
|
||||
// Process dashboards one-by-one to limit max heap utilization.
|
||||
await processDashboardRaw(context, report);
|
||||
await processDashboardV1(context, report);
|
||||
// Disable V2 dashboard in favor of raw data.
|
||||
// await processDashboardV2(context, report);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user