Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops(flakiness): persist all test reports, aggregated per commit sha (#4991)
Andrey Lushnikov8316dee44d59
diff --git a/utils/flakiness-dashboard/package-lock.json b/utils/flakiness-dashboard/package-lock.jsonindex 00f7ccf7e0..7a034d36a4 100644--- a/utils/flakiness-dashboard/package-lock.json+++ b/utils/flakiness-dashboard/package-lock.json@@ -1,6 +1,383 @@{+ "name": "flakiness-dashboard",+ "lockfileVersion": 2,"requires": true,- "lockfileVersion": 1,+ "packages": {+ "": {+ "dependencies": {+ "@azure/storage-blob": "^12.2.1"+ }+ },+ "node_modules/@azure/abort-controller": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-1.0.1.tgz",+ "integrity": "sha512-wP2Jw6uPp8DEDy0n4KNidvwzDjyVV2xnycEIq7nPzj1rHyb/r+t3OPeNT1INZePP2wy5ZqlwyuyOMTi0ePyY1A==",+ "dependencies": {+ "tslib": "^1.9.3"+ }+ },+ "node_modules/@azure/abort-controller/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ },+ "node_modules/@azure/core-asynciterator-polyfill": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@azure/core-asynciterator-polyfill/-/core-asynciterator-polyfill-1.0.0.tgz",+ "integrity": "sha512-kmv8CGrPfN9SwMwrkiBK9VTQYxdFQEGe0BmQk+M8io56P9KNzpAxcWE/1fxJj7uouwN4kXF0BHW8DNlgx+wtCg=="+ },+ "node_modules/@azure/core-auth": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.1.3.tgz",+ "integrity": "sha512-A4xigW0YZZpkj1zK7dKuzbBpGwnhEcRk6WWuIshdHC32raR3EQ1j6VA9XZqE+RFsUgH6OAmIK5BWIz+mZjnd6Q==",+ "dependencies": {+ "@azure/abort-controller": "^1.0.0",+ "@azure/core-tracing": "1.0.0-preview.8",+ "@opentelemetry/api": "^0.6.1",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@azure/core-auth/node_modules/@azure/core-tracing": {+ "version": "1.0.0-preview.8",+ "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.0.0-preview.8.tgz",+ "integrity": "sha512-ZKUpCd7Dlyfn7bdc+/zC/sf0aRIaNQMDuSj2RhYRFe3p70hVAnYGp3TX4cnG2yoEALp/LTj/XnZGQ8Xzf6Ja/Q==",+ "dependencies": {+ "@opencensus/web-types": "0.0.7",+ "@opentelemetry/api": "^0.6.1",+ "tslib": "^1.10.0"+ }+ },+ "node_modules/@azure/core-auth/node_modules/@azure/core-tracing/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ },+ "node_modules/@azure/core-auth/node_modules/@opentelemetry/api": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-0.6.1.tgz",+ "integrity": "sha512-wpufGZa7tTxw7eAsjXJtiyIQ42IWQdX9iUQp7ACJcKo1hCtuhLU+K2Nv1U6oRwT1oAlZTE6m4CgWKZBhOiau3Q==",+ "dependencies": {+ "@opentelemetry/context-base": "^0.6.1"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@azure/core-http": {+ "version": "1.1.9",+ "resolved": "https://registry.npmjs.org/@azure/core-http/-/core-http-1.1.9.tgz",+ "integrity": "sha512-wM0HMRNQaE2NtTHb+9FXF7uxUqaAHFTMVu6OzlEll6gUGybcDqM7+9Oklp33BhEfq+ZumpCoqxq3njNbMHuf/w==",+ "dependencies": {+ "@azure/abort-controller": "^1.0.0",+ "@azure/core-auth": "^1.1.3",+ "@azure/core-tracing": "1.0.0-preview.9",+ "@azure/logger": "^1.0.0",+ "@opentelemetry/api": "^0.10.2",+ "@types/node-fetch": "^2.5.0",+ "@types/tunnel": "^0.0.1",+ "form-data": "^3.0.0",+ "node-fetch": "^2.6.0",+ "process": "^0.11.10",+ "tough-cookie": "^4.0.0",+ "tslib": "^2.0.0",+ "tunnel": "^0.0.6",+ "uuid": "^8.1.0",+ "xml2js": "^0.4.19"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@azure/core-lro": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@azure/core-lro/-/core-lro-1.0.2.tgz",+ "integrity": "sha512-Yr0JD7GKryOmbcb5wHCQoQ4KCcH5QJWRNorofid+UvudLaxnbCfvKh/cUfQsGUqRjO9L/Bw4X7FP824DcHdMxw==",+ "dependencies": {+ "@azure/abort-controller": "^1.0.0",+ "@azure/core-http": "^1.1.1",+ "events": "^3.0.0",+ "tslib": "^1.10.0"+ }+ },+ "node_modules/@azure/core-lro/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ },+ "node_modules/@azure/core-paging": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/@azure/core-paging/-/core-paging-1.1.3.tgz",+ "integrity": "sha512-his7Ah40ThEYORSpIAwuh6B8wkGwO/zG7gqVtmSE4WAJ46e36zUDXTKReUCLBDc6HmjjApQQxxcRFy5FruG79A==",+ "dependencies": {+ "@azure/core-asynciterator-polyfill": "^1.0.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@azure/core-tracing": {+ "version": "1.0.0-preview.9",+ "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.0.0-preview.9.tgz",+ "integrity": "sha512-zczolCLJ5QG42AEPQ+Qg9SRYNUyB+yZ5dzof4YEc+dyWczO9G2sBqbAjLB7IqrsdHN2apkiB2oXeDKCsq48jug==",+ "dependencies": {+ "@opencensus/web-types": "0.0.7",+ "@opentelemetry/api": "^0.10.2",+ "tslib": "^2.0.0"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@azure/logger": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.0.0.tgz",+ "integrity": "sha512-g2qLDgvmhyIxR3JVS8N67CyIOeFRKQlX/llxYJQr1OSGQqM3HTpVP8MjmjcEKbL/OIt2N9C9UFaNQuKOw1laOA==",+ "dependencies": {+ "tslib": "^1.9.3"+ }+ },+ "node_modules/@azure/logger/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ },+ "node_modules/@azure/storage-blob": {+ "version": "12.2.1",+ "resolved": "https://registry.npmjs.org/@azure/storage-blob/-/storage-blob-12.2.1.tgz",+ "integrity": "sha512-erqCSmDL8b/AHZi94nq+nCE+2whQmvBDkAv4N9uic0MRac/gRyZqnsqkfrun/gr2rZo+qVtnMenwkkE3roXn8Q==",+ "dependencies": {+ "@azure/abort-controller": "^1.0.0",+ "@azure/core-http": "^1.1.6",+ "@azure/core-lro": "^1.0.2",+ "@azure/core-paging": "^1.1.1",+ "@azure/core-tracing": "1.0.0-preview.9",+ "@azure/logger": "^1.0.0",+ "@opentelemetry/api": "^0.10.2",+ "events": "^3.0.0",+ "tslib": "^2.0.0"+ }+ },+ "node_modules/@opencensus/web-types": {+ "version": "0.0.7",+ "resolved": "https://registry.npmjs.org/@opencensus/web-types/-/web-types-0.0.7.tgz",+ "integrity": "sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g==",+ "engines": {+ "node": ">=6.0"+ }+ },+ "node_modules/@opentelemetry/api": {+ "version": "0.10.2",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-0.10.2.tgz",+ "integrity": "sha512-GtpMGd6vkzDMYcpu2t9LlhEgMy/SzBwRnz48EejlRArYqZzqSzAsKmegUK7zHgl+EOIaK9mKHhnRaQu3qw20cA==",+ "dependencies": {+ "@opentelemetry/context-base": "^0.10.2"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@opentelemetry/api/node_modules/@opentelemetry/context-base": {+ "version": "0.10.2",+ "resolved": "https://registry.npmjs.org/@opentelemetry/context-base/-/context-base-0.10.2.tgz",+ "integrity": "sha512-hZNKjKOYsckoOEgBziGMnBcX0M7EtstnCmwz5jZUOUYwlZ+/xxX6z3jPu1XVO2Jivk0eLfuP9GP+vFD49CMetw==",+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@opentelemetry/context-base": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/context-base/-/context-base-0.6.1.tgz",+ "integrity": "sha512-5bHhlTBBq82ti3qPT15TRxkYTFPPQWbnkkQkmHPtqiS1XcTB69cEKd3Jm7Cfi/vkPoyxapmePE9tyA7EzLt8SQ==",+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@types/node": {+ "version": "14.14.1",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.1.tgz",+ "integrity": "sha512-D2/Xwp9c49JhIWq7SIrdvoYyGdq6yXkr5FTldN4rus9XljYFBul6P2epAID8xepOpL4ffcx09C05FZGK/1AIkw=="+ },+ "node_modules/@types/node-fetch": {+ "version": "2.5.7",+ "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.5.7.tgz",+ "integrity": "sha512-o2WVNf5UhWRkxlf6eq+jMZDu7kjgpgJfl4xVNlvryc95O/6F2ld8ztKX+qu+Rjyet93WAWm5LjeX9H5FGkODvw==",+ "dependencies": {+ "@types/node": "*",+ "form-data": "^3.0.0"+ }+ },+ "node_modules/@types/tunnel": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/@types/tunnel/-/tunnel-0.0.1.tgz",+ "integrity": "sha512-AOqu6bQu5MSWwYvehMXLukFHnupHrpZ8nvgae5Ggie9UwzDR1CCwoXgSSWNZJuyOlCdfdsWMA5F2LlmvyoTv8A==",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k="+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/events": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/events/-/events-3.2.0.tgz",+ "integrity": "sha512-/46HWwbfCX2xTawVfkKLGxMifJYQBWMwY1mjywRtb4c9x8l5NP3KoJtnIOiL1hfdRkIuYhETxQlo62IF8tcnlg==",+ "engines": {+ "node": ">=0.8.x"+ }+ },+ "node_modules/form-data": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.0.tgz",+ "integrity": "sha512-CKMFDglpbMi6PyN+brwB9Q/GOw0eAnsrEZDgcsH5Krhz5Od/haKHAX0NmQfha2zPPz0JpWzA7GJHGSnvCRLWsg==",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/mime-db": {+ "version": "1.44.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz",+ "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.27",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz",+ "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==",+ "dependencies": {+ "mime-db": "1.44.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/node-fetch": {+ "version": "2.6.1",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz",+ "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==",+ "engines": {+ "node": "4.x || >=6.0.0"+ }+ },+ "node_modules/process": {+ "version": "0.11.10",+ "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",+ "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=",+ "engines": {+ "node": ">= 0.6.0"+ }+ },+ "node_modules/psl": {+ "version": "1.8.0",+ "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",+ "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="+ },+ "node_modules/punycode": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",+ "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/sax": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz",+ "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="+ },+ "node_modules/tough-cookie": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz",+ "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==",+ "dependencies": {+ "psl": "^1.1.33",+ "punycode": "^2.1.1",+ "universalify": "^0.1.2"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tslib": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",+ "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ=="+ },+ "node_modules/tunnel": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",+ "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",+ "engines": {+ "node": ">=0.6.11 <=0.7.0 || >=0.7.3"+ }+ },+ "node_modules/universalify": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",+ "engines": {+ "node": ">= 4.0.0"+ }+ },+ "node_modules/uuid": {+ "version": "8.3.1",+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.1.tgz",+ "integrity": "sha512-FOmRr+FmWEIG8uhZv6C2bTgEVXsHk08kE7mPlrBbEe+c3r9pjceVPgupIfNIhc4yx55H69OXANrUaSuu9eInKg==",+ "bin": {+ "uuid": "dist/bin/uuid"+ }+ },+ "node_modules/xml2js": {+ "version": "0.4.23",+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.23.tgz",+ "integrity": "sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug==",+ "dependencies": {+ "sax": ">=0.6.0",+ "xmlbuilder": "~11.0.0"+ },+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/xmlbuilder": {+ "version": "11.0.1",+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",+ "engines": {+ "node": ">=4.0"+ }+ }+ },"dependencies": {"@azure/abort-controller": {"version": "1.0.1",diff --git a/utils/flakiness-dashboard/processing/dashboard_raw.js b/utils/flakiness-dashboard/processing/dashboard_raw.jsnew file mode 100644index 0000000000..ed892db198--- /dev/null+++ b/utils/flakiness-dashboard/processing/dashboard_raw.js@@ -0,0 +1,37 @@+/**+ * Copyright (c) Microsoft Corporation.+ *+ * Licensed under the Apache License, Version 2.0 (the 'License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++const {SimpleBlob} = require('./utils.js');++async function processDashboardRaw(context, report) {+ const timestamp = Date.now();+ const dashboardBlob = await SimpleBlob.create('dashboards', `raw/${report.metadata.commitSHA}.json`);+ const dashboardData = (await dashboardBlob.download()) || [];+ dashboardData.push(report);+ await dashboardBlob.uploadGzipped(dashboardData);++ context.log(`+ ===== started dashboard raw =====+ SHA: ${report.metadata.commitSHA}+ URL: ${report.metadata.runURL}+ timestamp: ${report.metadata.commitTimestamp}+ added specs: ${addedSpecs}+ ===== complete in ${Date.now() - timestamp}ms =====+ `);+}++module.exports = {processDashboardRaw};+diff --git a/utils/flakiness-dashboard/processing/index.js b/utils/flakiness-dashboard/processing/index.jsindex 0cb01549d9..63a346b443 100644--- a/utils/flakiness-dashboard/processing/index.js+++ b/utils/flakiness-dashboard/processing/index.js@@ -17,6 +17,7 @@const {blobServiceClient, gunzipAsync, deleteBlob} = require('./utils.js');const {processDashboardV1} = require('./dashboard_v1.js');const {processDashboardV2} = require('./dashboard_v2.js');+const {processDashboardRaw} = require('./dashboard_raw.js');module.exports = async function(context) {// First thing we do - delete the blob.@@ -30,5 +31,6 @@ module.exports = async function(context) {await Promise.all([processDashboardV1(context, report),processDashboardV2(context, report),+ processDashboardRaw(context, report),]);}