@axe-core/watcher 4.7.0-rc.d3a35ae9 → 4.7.1-next.1f800c5b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXTENSION-LICENSES-3RD-PARTY.md +67 -30
- package/README.md +2 -2
- package/dist/sendResultsToServer.d.ts +0 -4
- package/dist/sendResultsToServer.js +58 -73
- package/dist/sendResultsToServer.js.map +1 -1
- package/dist/utils/AxeWatcherFlushError.d.ts +11 -0
- package/dist/utils/AxeWatcherFlushError.js +16 -0
- package/dist/utils/AxeWatcherFlushError.js.map +1 -0
- package/dist/utils/initializeSession.d.ts +2 -1
- package/dist/utils/initializeSession.js +46 -2
- package/dist/utils/initializeSession.js.map +1 -1
- package/dist/utils/retryPolicy.d.ts +3 -0
- package/dist/utils/retryPolicy.js +10 -0
- package/dist/utils/retryPolicy.js.map +1 -0
- package/dist/utils/writeVariables.d.ts +1 -4
- package/dist/utils/writeVariables.js +4 -3
- package/dist/utils/writeVariables.js.map +1 -1
- package/dist/wdio/wdio.d.ts +3 -0
- package/dist/wdio/wdio.js +137 -19
- package/dist/wdio/wdio.js.map +1 -1
- package/dist/webdriver/webdriver.d.ts +1 -0
- package/dist/webdriver/webdriver.js +3 -1
- package/dist/webdriver/webdriver.js.map +1 -1
- package/dist/webdriver/webdriverWrapping.js +28 -8
- package/dist/webdriver/webdriverWrapping.js.map +1 -1
- package/extension/axe-versions/axe-core@4.14.1/axe.min.js +12 -0
- package/extension/axe-versions/axe-core@4.14.1/gather-internals.js +219 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/README.md +9 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/_template.json +1183 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/az.json +1161 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/da.json +799 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/de.json +1127 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/el.json +1069 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/es.json +790 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/eu.json +789 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/fr.json +994 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/he.json +1017 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/it.json +1108 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/ja.json +1128 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/ko.json +1003 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/nb.json +799 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/nl.json +48 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/pl.json +1109 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/pt_BR.json +970 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/pt_PT.json +1123 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/ru.json +1127 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/sv.json +1147 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/zh_CN.json +1116 -0
- package/extension/axe-versions/axe-core@4.14.1/locales/zh_TW.json +1108 -0
- package/extension/axe-versions-mapper.js +2 -1
- package/extension/axe.js +1 -1
- package/extension/axe.js.LICENSE.txt +1 -1
- package/extension/background.js +1 -1
- package/extension/content.js +1 -1
- package/package.json +10 -11
- package/dist/utils/linearBackoff.d.ts +0 -10
- package/dist/utils/linearBackoff.js +0 -47
- package/dist/utils/linearBackoff.js.map +0 -1
|
@@ -1,5 +1,70 @@
|
|
|
1
1
|
# 3rd Party Licenses
|
|
2
2
|
|
|
3
|
+
## @isaacs/nonrecursive-glob-match
|
|
4
|
+
|
|
5
|
+
**Version**: 1.1.0
|
|
6
|
+
|
|
7
|
+
**License**: BlueOak-1.0.0
|
|
8
|
+
|
|
9
|
+
```txt
|
|
10
|
+
# Blue Oak Model License
|
|
11
|
+
|
|
12
|
+
Version 1.0.0
|
|
13
|
+
|
|
14
|
+
## Purpose
|
|
15
|
+
|
|
16
|
+
This license gives everyone as much permission to work with
|
|
17
|
+
this software as possible, while protecting contributors
|
|
18
|
+
from liability.
|
|
19
|
+
|
|
20
|
+
## Acceptance
|
|
21
|
+
|
|
22
|
+
In order to receive this license, you must agree to its
|
|
23
|
+
rules. The rules of this license are both obligations
|
|
24
|
+
under that agreement and conditions to your license.
|
|
25
|
+
You must not do anything with this software that triggers
|
|
26
|
+
a rule that you cannot or will not follow.
|
|
27
|
+
|
|
28
|
+
## Copyright
|
|
29
|
+
|
|
30
|
+
Each contributor licenses you to do everything with this
|
|
31
|
+
software that would otherwise infringe that contributor's
|
|
32
|
+
copyright in it.
|
|
33
|
+
|
|
34
|
+
## Notices
|
|
35
|
+
|
|
36
|
+
You must ensure that everyone who gets a copy of
|
|
37
|
+
any part of this software from you, with or without
|
|
38
|
+
changes, also gets the text of this license or a link to
|
|
39
|
+
<https://blueoakcouncil.org/license/1.0.0>.
|
|
40
|
+
|
|
41
|
+
## Excuse
|
|
42
|
+
|
|
43
|
+
If anyone notifies you in writing that you have not
|
|
44
|
+
complied with [Notices](#notices), you can keep your
|
|
45
|
+
license by taking all practical steps to comply within 30
|
|
46
|
+
days after the notice. If you do not do so, your license
|
|
47
|
+
ends immediately.
|
|
48
|
+
|
|
49
|
+
## Patent
|
|
50
|
+
|
|
51
|
+
Each contributor licenses you to do everything with this
|
|
52
|
+
software that would otherwise infringe any patent claims
|
|
53
|
+
they can license or become able to license.
|
|
54
|
+
|
|
55
|
+
## Reliability
|
|
56
|
+
|
|
57
|
+
No contributor can revoke this license.
|
|
58
|
+
|
|
59
|
+
## No Liability
|
|
60
|
+
|
|
61
|
+
***As far as the law allows, this software comes as is,
|
|
62
|
+
without any warranty or condition, and no contributor
|
|
63
|
+
will be liable to anyone for any damages related to this
|
|
64
|
+
software or this license, under any kind of legal claim.***
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
|
|
3
68
|
## balanced-match
|
|
4
69
|
|
|
5
70
|
**Version**: 4.0.4
|
|
@@ -35,7 +100,7 @@ SOFTWARE.
|
|
|
35
100
|
|
|
36
101
|
## brace-expansion
|
|
37
102
|
|
|
38
|
-
**Version**: 5.0.
|
|
103
|
+
**Version**: 5.0.12
|
|
39
104
|
|
|
40
105
|
**License**: MIT
|
|
41
106
|
|
|
@@ -66,34 +131,6 @@ SOFTWARE.
|
|
|
66
131
|
|
|
67
132
|
```
|
|
68
133
|
|
|
69
|
-
## css-selector-parser
|
|
70
|
-
|
|
71
|
-
**Version**: 3.3.0
|
|
72
|
-
|
|
73
|
-
**License**: MIT
|
|
74
|
-
|
|
75
|
-
```txt
|
|
76
|
-
Copyright (c) 2013 Dulin Marat
|
|
77
|
-
|
|
78
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
79
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
80
|
-
in the Software without restriction, including without limitation the rights
|
|
81
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
82
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
83
|
-
furnished to do so, subject to the following conditions:
|
|
84
|
-
|
|
85
|
-
The above copyright notice and this permission notice shall be included in
|
|
86
|
-
all copies or substantial portions of the Software.
|
|
87
|
-
|
|
88
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
89
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
90
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
91
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
92
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
93
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
94
|
-
THE SOFTWARE.
|
|
95
|
-
```
|
|
96
|
-
|
|
97
134
|
## debug
|
|
98
135
|
|
|
99
136
|
**Version**: 4.4.3
|
|
@@ -188,7 +225,7 @@ SOFTWARE.
|
|
|
188
225
|
|
|
189
226
|
## minimatch
|
|
190
227
|
|
|
191
|
-
**Version**:
|
|
228
|
+
**Version**: 11.0.8
|
|
192
229
|
|
|
193
230
|
**License**: BlueOak-1.0.0
|
|
194
231
|
|
package/README.md
CHANGED
|
@@ -87,7 +87,7 @@ Edge as you normally would; no Watcher-specific option is required.
|
|
|
87
87
|
)
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
- **WebdriverIO** (`@axe-core/watcher/
|
|
90
|
+
- **WebdriverIO** (`@axe-core/watcher/webdriverio`) — set the capability `browserName`:
|
|
91
91
|
|
|
92
92
|
```js
|
|
93
93
|
wdioConfig({
|
|
@@ -99,7 +99,7 @@ Edge as you normally would; no Watcher-specific option is required.
|
|
|
99
99
|
When `browserName` is omitted it defaults to `chrome`; passing `'MicrosoftEdge'` is preserved and
|
|
100
100
|
the extension launch flags are merged the same way.
|
|
101
101
|
|
|
102
|
-
- **Selenium WebDriver** (`@axe-core/watcher/webdriver`) — build the driver with the
|
|
102
|
+
- **Selenium WebDriver** (`@axe-core/watcher/selenium-webdriver`) — build the driver with the
|
|
103
103
|
`MicrosoftEdge` browser name / `EdgeOptions` and the matching `msedgedriver`.
|
|
104
104
|
|
|
105
105
|
Deque Systems has a [free and paid plan](https://www.deque.com/axe/developer-hub/) available, making axe Developer Hub suitable for all types of projects - open-source to enterprise.
|
|
@@ -9,10 +9,6 @@ import type { TestContext } from './utils/testContext';
|
|
|
9
9
|
* Entity Too Large), as the request body will be enormous.
|
|
10
10
|
*/
|
|
11
11
|
export declare const MAX_PAGE_STATES_PER_REQUEST = 5;
|
|
12
|
-
/**
|
|
13
|
-
* The maximum number of times to retry sending results to the server.
|
|
14
|
-
*/
|
|
15
|
-
export declare const MAX_RETRIES = 3;
|
|
16
12
|
export interface Result {
|
|
17
13
|
page_state: string;
|
|
18
14
|
results: AxeResults;
|
|
@@ -3,16 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MaximumRetriesReached = exports.sendResultsToServer = exports.
|
|
6
|
+
exports.MaximumRetriesReached = exports.sendResultsToServer = exports.MAX_PAGE_STATES_PER_REQUEST = void 0;
|
|
7
7
|
const undici_1 = require("undici");
|
|
8
8
|
const readVariables_1 = __importDefault(require("./utils/readVariables"));
|
|
9
|
-
const
|
|
9
|
+
const promises_1 = require("timers/promises");
|
|
10
|
+
const retryPolicy_1 = require("./utils/retryPolicy");
|
|
10
11
|
const isCI_1 = require("./utils/isCI");
|
|
11
12
|
const shouldUseEnvProxy_1 = require("./utils/shouldUseEnvProxy");
|
|
12
13
|
const saveScreenshotsLocally_1 = require("./utils/saveScreenshotsLocally");
|
|
13
14
|
const { version } = require('../package.json');
|
|
14
15
|
exports.MAX_PAGE_STATES_PER_REQUEST = 5;
|
|
15
|
-
exports.MAX_RETRIES = 3;
|
|
16
16
|
const sendResultsToServer = async ({ results, debugLogger }) => {
|
|
17
17
|
const { server_url, api_key, session_id, git_data, screenshot_dir: screenshotDir } = (0, readVariables_1.default)();
|
|
18
18
|
const resultsURL = new URL(`/api-pub/watcher/sessions/${session_id}`, server_url);
|
|
@@ -24,98 +24,83 @@ const sendResultsToServer = async ({ results, debugLogger }) => {
|
|
|
24
24
|
});
|
|
25
25
|
debugLogger('SendResultsToServer: Session ID', { session_id });
|
|
26
26
|
debugLogger('SendResultsToServer: Is Canonical Source', { isCanonicalSource });
|
|
27
|
-
const
|
|
27
|
+
const isNetworkError = (error) => error instanceof TypeError && error.cause !== undefined;
|
|
28
|
+
const putResults = async (bodyResults = []) => {
|
|
28
29
|
const body = {
|
|
29
30
|
axe_watcher_version: version,
|
|
30
31
|
results: bodyResults,
|
|
31
32
|
is_canonical_source: isCanonicalSource,
|
|
32
33
|
...git_data
|
|
33
34
|
};
|
|
35
|
+
const reqSize = Buffer.byteLength(JSON.stringify(body));
|
|
34
36
|
let dispatcher = (0, undici_1.getGlobalDispatcher)();
|
|
35
37
|
if ((0, shouldUseEnvProxy_1.shouldUseEnvProxy)()) {
|
|
36
38
|
dispatcher = new undici_1.EnvHttpProxyAgent();
|
|
37
39
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
for (let retryAttempt = 0;; retryAttempt++) {
|
|
41
|
+
if (retryAttempt > 0) {
|
|
42
|
+
await (0, promises_1.setTimeout)((0, retryPolicy_1.retryDelayMs)(retryAttempt));
|
|
43
|
+
}
|
|
44
|
+
const isFinalAttempt = retryAttempt === retryPolicy_1.MAX_RETRIES;
|
|
45
|
+
let res;
|
|
46
|
+
try {
|
|
47
|
+
res = await (0, undici_1.fetch)(resultsURL, {
|
|
48
|
+
method: 'PUT',
|
|
49
|
+
redirect: 'follow',
|
|
50
|
+
headers: {
|
|
51
|
+
'Content-Type': 'application/json',
|
|
52
|
+
'X-API-Key': api_key
|
|
53
|
+
},
|
|
54
|
+
dispatcher,
|
|
55
|
+
body: JSON.stringify(body),
|
|
56
|
+
signal: AbortSignal.timeout(10000)
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
catch (error) {
|
|
60
|
+
const isTimeout = error instanceof Error && error.name === 'TimeoutError';
|
|
61
|
+
if (!isTimeout && !isNetworkError(error)) {
|
|
62
|
+
throw error;
|
|
63
|
+
}
|
|
64
|
+
debugLogger('SendResultsToServer: Request failed', {
|
|
65
|
+
reason: isTimeout ? 'timeout' : 'network error',
|
|
66
|
+
retryAttempt,
|
|
52
67
|
batchResults: bodyResults.length,
|
|
53
|
-
reqSize
|
|
54
|
-
resStatus: res.status,
|
|
55
|
-
resStatusText: res.statusText
|
|
68
|
+
reqSize
|
|
56
69
|
});
|
|
57
|
-
|
|
70
|
+
if (!isFinalAttempt) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
console.warn(isTimeout
|
|
74
|
+
? '@axe-core/watcher: Request timed out, max retries reached'
|
|
75
|
+
: '@axe-core/watcher: Unable to send results to server, max retries reached');
|
|
76
|
+
throw new MaximumRetriesReached();
|
|
58
77
|
}
|
|
59
|
-
|
|
78
|
+
if (res.ok) {
|
|
60
79
|
debugLogger('SendResultsToServer: Successfully sent', {
|
|
61
80
|
batchResults: bodyResults.length,
|
|
62
|
-
reqSize
|
|
81
|
+
reqSize,
|
|
63
82
|
resStatus: res.status,
|
|
64
83
|
resStatusText: res.statusText
|
|
65
84
|
});
|
|
85
|
+
return;
|
|
66
86
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
reqSize: Buffer.byteLength(JSON.stringify(body))
|
|
78
|
-
});
|
|
79
|
-
await (0, linearBackoff_1.default)(incrementRetry);
|
|
80
|
-
await putResults(bodyResults, incrementRetry);
|
|
87
|
+
debugLogger('SendResultsToServer: Failed to send results', {
|
|
88
|
+
retryAttempt,
|
|
89
|
+
batchResults: bodyResults.length,
|
|
90
|
+
reqSize,
|
|
91
|
+
resStatus: res.status,
|
|
92
|
+
resStatusText: res.statusText
|
|
93
|
+
});
|
|
94
|
+
const isTemporary = retryPolicy_1.TEMPORARY_HTTP_STATUSES.has(res.status);
|
|
95
|
+
if (isTemporary && !isFinalAttempt) {
|
|
96
|
+
continue;
|
|
81
97
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
retryAttempt,
|
|
85
|
-
resStatus: res.status
|
|
86
|
-
});
|
|
98
|
+
console.warn('@axe-core/watcher: Unable to send results to server');
|
|
99
|
+
if (isFinalAttempt) {
|
|
87
100
|
console.warn('@axe-core/watcher: Unable to send results to server, max retries reached');
|
|
88
|
-
|
|
101
|
+
throw new MaximumRetriesReached();
|
|
89
102
|
}
|
|
90
|
-
|
|
91
|
-
catch (error) {
|
|
92
|
-
if (error.name === 'TimeoutError') {
|
|
93
|
-
debugLogger('SendResultsToServer: Aborted request due to timeout', {
|
|
94
|
-
abortTimeout: 10000,
|
|
95
|
-
retryAttempt,
|
|
96
|
-
batchResults: bodyResults.length,
|
|
97
|
-
reqSize: Buffer.byteLength(JSON.stringify(body))
|
|
98
|
-
});
|
|
99
|
-
if (retryAttempt !== exports.MAX_RETRIES) {
|
|
100
|
-
const incrementRetry = retryAttempt + 1;
|
|
101
|
-
console.warn('@axe-core/watcher: Retrying after timeout...');
|
|
102
|
-
debugLogger('SendResultsToServer: Retrying after timeout...', {
|
|
103
|
-
retryAttempt: incrementRetry,
|
|
104
|
-
batchResults: bodyResults.length,
|
|
105
|
-
reqSize: Buffer.byteLength(JSON.stringify(body))
|
|
106
|
-
});
|
|
107
|
-
await (0, linearBackoff_1.default)(incrementRetry);
|
|
108
|
-
await putResults(bodyResults, incrementRetry);
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
debugLogger('SendResultsToServer: Max retries reached after timeout', {
|
|
112
|
-
retryAttempt
|
|
113
|
-
});
|
|
114
|
-
console.warn('@axe-core/watcher: Request timed out, max retries reached');
|
|
115
|
-
return Promise.reject(new MaximumRetriesReached());
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
throw error;
|
|
103
|
+
return;
|
|
119
104
|
}
|
|
120
105
|
};
|
|
121
106
|
if (screenshotDir) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendResultsToServer.js","sourceRoot":"","sources":["../src/sendResultsToServer.ts"],"names":[],"mappings":";;;;;;AACA,mCAAsE;AAGtE,0EAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"sendRes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C,cAAc,CAAC,IAAI,CAAC,CAAA;QACxC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,EAAE,aAAuB,CAAC,CAAA;QAE9D,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,IAAA,cAAK,EAAC,GAAG,EAAE;YAC9B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,QAAQ;YAClB,UAAU;YACV,OAAO,EAAE;gBACP,cAAc,EAAE,WAAW;gBAC3B,WAAW,EAAE,OAAO;aACrB;YACD,IAAI,EAAE,UAAU;SACjB,CAAC,CAAA;QAEF,IAAI,CAAC,EAAE,EAAE,CAAC;YAER,OAAO,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAA;QACxE,CAAC;IACH,CAAC,CAAC,CACH,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;AAC9B,CAAC,CAAA;AAtMY,QAAA,mBAAmB,uBAsM/B;AAED,MAAa,qBAAsB,SAAQ,KAAK;IAC9C;QACE,KAAK,CAAC,yBAAyB,CAAC,CAAA;QAChC,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAA;IACrC,CAAC;CACF;AALD,sDAKC;AAED,kBAAe,2BAAmB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thrown by a wrapped `quit()` or `close()` when axe Watcher could not flush
|
|
3
|
+
* its results. The wrapped call has already run when this is thrown, and the
|
|
4
|
+
* results that were not flushed are lost. `cause` holds the flush failure.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AxeWatcherFlushError extends Error {
|
|
7
|
+
name: string;
|
|
8
|
+
/** The process ID of the browser being closed, when the driver reported one. */
|
|
9
|
+
readonly browserProcessId?: number;
|
|
10
|
+
constructor(method: string, cause: unknown, browserProcessId?: number);
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AxeWatcherFlushError = void 0;
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
class AxeWatcherFlushError extends Error {
|
|
6
|
+
constructor(method, cause, browserProcessId) {
|
|
7
|
+
const processId = browserProcessId === undefined
|
|
8
|
+
? ''
|
|
9
|
+
: ` Browser process ID: ${browserProcessId}.`;
|
|
10
|
+
super(`@axe-core/watcher could not send its results before ${method}(), so those results were lost. ${method}() still ran.${processId} See ${constants_1.DOCS_LINK} for troubleshooting.`, { cause });
|
|
11
|
+
this.name = 'AxeWatcherFlushError';
|
|
12
|
+
this.browserProcessId = browserProcessId;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.AxeWatcherFlushError = AxeWatcherFlushError;
|
|
16
|
+
//# sourceMappingURL=AxeWatcherFlushError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxeWatcherFlushError.js","sourceRoot":"","sources":["../../src/utils/AxeWatcherFlushError.ts"],"names":[],"mappings":";;;AAAA,2CAAuC;AAOvC,MAAa,oBAAqB,SAAQ,KAAK;IAM7C,YAAY,MAAc,EAAE,KAAc,EAAE,gBAAyB;QACnE,MAAM,SAAS,GACb,gBAAgB,KAAK,SAAS;YAC5B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,wBAAwB,gBAAgB,GAAG,CAAA;QACjD,KAAK,CACH,uDAAuD,MAAM,mCAAmC,MAAM,gBAAgB,SAAS,QAAQ,qBAAS,uBAAuB,EACvK,EAAE,KAAK,EAAE,CACV,CAAA;QAbI,SAAI,GAAG,sBAAsB,CAAA;QAclC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;IAC1C,CAAC;CACF;AAjBD,oDAiBC"}
|
|
@@ -24,9 +24,10 @@ export interface InitializeSessionParams {
|
|
|
24
24
|
runOptions: RunOptions | null;
|
|
25
25
|
isCanonicalSource: boolean;
|
|
26
26
|
bundledAxeCoreVersions?: string[];
|
|
27
|
+
retryOnTemporaryFailure: boolean;
|
|
27
28
|
}
|
|
28
29
|
/** Initialize a new session. */
|
|
29
|
-
declare function initializeSession({ apiKey, projectId, serverURL, watcherVersion, sessionID, buildID, gitCommitSha, gitUrl, gitBranch, gitCommitAuthor, gitIsDirty, gitDefaultBranch, gitCommitMessage, gitTag, gitCommitEmail, configOverrides, runOptions, isCanonicalSource, bundledAxeCoreVersions }: InitializeSessionParams): {
|
|
30
|
+
declare function initializeSession({ apiKey, projectId, serverURL, watcherVersion, sessionID, buildID, gitCommitSha, gitUrl, gitBranch, gitCommitAuthor, gitIsDirty, gitDefaultBranch, gitCommitMessage, gitTag, gitCommitEmail, configOverrides, runOptions, isCanonicalSource, bundledAxeCoreVersions, retryOnTemporaryFailure }: InitializeSessionParams): {
|
|
30
31
|
axe_core_settings?: AxeCoreSettings;
|
|
31
32
|
session_id: string;
|
|
32
33
|
};
|
|
@@ -6,12 +6,55 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const assert_1 = __importDefault(require("assert"));
|
|
7
7
|
const createDebugger_1 = __importDefault(require("../createDebugger"));
|
|
8
8
|
const sync_fetch_1 = require("./sync-fetch");
|
|
9
|
+
const retryPolicy_1 = require("./retryPolicy");
|
|
9
10
|
const debugLogger = (0, createDebugger_1.default)('config:initializeSession');
|
|
10
11
|
const uuidRegex = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;
|
|
11
12
|
const validateUUID = (uuid) => {
|
|
12
13
|
return typeof uuid === 'string' && uuidRegex.test(uuid);
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
+
const temporaryFailureReason = (error) => {
|
|
16
|
+
if (!(error instanceof Error) || !(error.cause instanceof Error)) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const failure = error.cause.cause;
|
|
20
|
+
if (!(failure instanceof Error)) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
const isNetworkError = failure.name === 'TypeError' && failure.message === 'fetch failed';
|
|
24
|
+
const isClientTimeout = failure.message.startsWith('The operation was aborted due to timeout');
|
|
25
|
+
if (!isNetworkError && !isClientTimeout) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const detail = failure.cause instanceof Error ? failure.cause.message : null;
|
|
29
|
+
return detail ? `${failure.message}: ${detail}` : failure.message;
|
|
30
|
+
};
|
|
31
|
+
const waitSync = (ms) => {
|
|
32
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
33
|
+
};
|
|
34
|
+
function requestWithRetries(request) {
|
|
35
|
+
for (let retry = 1; retry <= retryPolicy_1.MAX_RETRIES; retry++) {
|
|
36
|
+
let reason;
|
|
37
|
+
try {
|
|
38
|
+
const res = request();
|
|
39
|
+
if (!retryPolicy_1.TEMPORARY_HTTP_STATUSES.has(res.status)) {
|
|
40
|
+
return res;
|
|
41
|
+
}
|
|
42
|
+
reason = `HTTP ${res.status}`;
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
const temporary = temporaryFailureReason(error);
|
|
46
|
+
if (temporary === null) {
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
reason = temporary;
|
|
50
|
+
}
|
|
51
|
+
const delay = (0, retryPolicy_1.retryDelayMs)(retry);
|
|
52
|
+
debugLogger(`Session start attempt ${retry} failed (${reason}), retrying in ${delay} ms`);
|
|
53
|
+
waitSync(delay);
|
|
54
|
+
}
|
|
55
|
+
return request();
|
|
56
|
+
}
|
|
57
|
+
function initializeSession({ apiKey, projectId, serverURL, watcherVersion, sessionID, buildID, gitCommitSha, gitUrl, gitBranch, gitCommitAuthor, gitIsDirty, gitDefaultBranch, gitCommitMessage, gitTag, gitCommitEmail, configOverrides, runOptions, isCanonicalSource, bundledAxeCoreVersions, retryOnTemporaryFailure }) {
|
|
15
58
|
(0, assert_1.default)(apiKey, 'API key is required');
|
|
16
59
|
(0, assert_1.default)(serverURL, 'Server URL is required');
|
|
17
60
|
(0, assert_1.default)(watcherVersion, 'Watcher version is required');
|
|
@@ -62,7 +105,7 @@ function initializeSession({ apiKey, projectId, serverURL, watcherVersion, sessi
|
|
|
62
105
|
is_canonical_source: isCanonicalSource,
|
|
63
106
|
bundled_axe_core_versions: bundledAxeCoreVersions || []
|
|
64
107
|
};
|
|
65
|
-
const
|
|
108
|
+
const request = () => (0, sync_fetch_1.syncFetch)(url.toString(), {
|
|
66
109
|
headers: {
|
|
67
110
|
'X-API-Key': apiKey,
|
|
68
111
|
'Content-Type': 'application/json'
|
|
@@ -70,6 +113,7 @@ function initializeSession({ apiKey, projectId, serverURL, watcherVersion, sessi
|
|
|
70
113
|
method: 'POST',
|
|
71
114
|
body: JSON.stringify(payload)
|
|
72
115
|
});
|
|
116
|
+
const res = retryOnTemporaryFailure ? requestWithRetries(request) : request();
|
|
73
117
|
const body = res.body;
|
|
74
118
|
const error = body.error || (body.errors?.length && body.errors[0]);
|
|
75
119
|
if (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initializeSession.js","sourceRoot":"","sources":["../../src/utils/initializeSession.ts"],"names":[],"mappings":";;;;;AAAA,oDAA2B;AAC3B,uEAA8C;AAG9C,
|
|
1
|
+
{"version":3,"file":"initializeSession.js","sourceRoot":"","sources":["../../src/utils/initializeSession.ts"],"names":[],"mappings":";;;;;AAAA,oDAA2B;AAC3B,uEAA8C;AAG9C,6CAAgE;AAChE,+CAIsB;AACtB,MAAM,WAAW,GAAG,IAAA,wBAAc,EAAC,0BAA0B,CAAC,CAAA;AAG9D,MAAM,SAAS,GACb,0JAA0J,CAAA;AAE5J,MAAM,YAAY,GAAG,CAAC,IAAY,EAAW,EAAE;IAC7C,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzD,CAAC,CAAA;AAyCD,MAAM,sBAAsB,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= exports.MAX_RETRIES = exports.TEMPORARY_HTTP_STATUSES = void 0;
|
|
4
|
+
exports.TEMPORARY_HTTP_STATUSES = new Set([
|
|
5
|
+
500, 502, 503, 504, 408, 429
|
|
6
|
+
]);
|
|
7
|
+
exports.MAX_RETRIES = 3;
|
|
8
|
+
const retryDelayMs = (retry) => retry * 1000;
|
|
9
|
+
exports.retryDelayMs = retryDelayMs;
|
|
10
|
+
//# sourceMappingURL=retryPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retryPolicy.js","sourceRoot":"","sources":["../../src/utils/retryPolicy.ts"],"names":[],"mappings":";;;AAAa,QAAA,uBAAuB,GAAwB,IAAI,GAAG,CAAC;IAClE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CAC7B,CAAC,CAAA;AAEW,QAAA,WAAW,GAAG,CAAC,CAAA;AAErB,MAAM,YAAY,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,GAAG,IAAI,CAAA;AAAtD,QAAA,YAAY,gBAA0C"}
|
|
@@ -141,7 +141,6 @@ interface AxeConfiguration {
|
|
|
141
141
|
buildID?: string;
|
|
142
142
|
takeScreenshots?: boolean;
|
|
143
143
|
screenshotDir?: string;
|
|
144
|
-
/** Run experimental advanced rules */
|
|
145
144
|
/** Enable ElementInternals support for custom elements */
|
|
146
145
|
/**
|
|
147
146
|
* Duration in milliseconds after which the appropriate `controller.method' will throw a timeout error if it hasn't completed
|
|
@@ -215,7 +214,6 @@ interface WriteVariablesParams extends AxeConfiguration {
|
|
|
215
214
|
cypress?: boolean;
|
|
216
215
|
isPlaywrightTest?: boolean;
|
|
217
216
|
isWdioTestrunner?: boolean;
|
|
218
|
-
experimentalAdvancedRules?: boolean;
|
|
219
217
|
elementInternals?: boolean;
|
|
220
218
|
}
|
|
221
219
|
/** variables.json shape. */
|
|
@@ -231,7 +229,6 @@ export interface Variables {
|
|
|
231
229
|
git_data?: GitData;
|
|
232
230
|
take_screenshots?: boolean;
|
|
233
231
|
screenshot_dir?: string;
|
|
234
|
-
experimental_advanced_rules?: boolean;
|
|
235
232
|
element_internals?: boolean;
|
|
236
233
|
exclude_url_patterns: string[] | null;
|
|
237
234
|
allowed_origins: string[] | null;
|
|
@@ -239,5 +236,5 @@ export interface Variables {
|
|
|
239
236
|
timeout: Required<Timeouts>;
|
|
240
237
|
}
|
|
241
238
|
/** Write the user's settings to the disk, so the extension can load them. */
|
|
242
|
-
declare function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress, isPlaywrightTest, isWdioTestrunner, serverURL, sessionId, runContext, runOptions, excludeUrlPatterns, allowedOrigins, buildID, timeout, takeScreenshots, screenshotDir,
|
|
239
|
+
declare function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress, isPlaywrightTest, isWdioTestrunner, serverURL, sessionId, runContext, runOptions, excludeUrlPatterns, allowedOrigins, buildID, timeout, takeScreenshots, screenshotDir, elementInternals, projectId, git: gitConfig }: WriteVariablesParams): void;
|
|
243
240
|
export default writeVariables;
|
|
@@ -84,7 +84,7 @@ function crossOriginTimeouts(allowed) {
|
|
|
84
84
|
flush: Math.max(DEFAULT_TIMEOUT.flush, scanBound)
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress, isPlaywrightTest, isWdioTestrunner, serverURL, sessionId, runContext, runOptions, excludeUrlPatterns, allowedOrigins, buildID, timeout = {}, takeScreenshots, screenshotDir,
|
|
87
|
+
function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress, isPlaywrightTest, isWdioTestrunner, serverURL, sessionId, runContext, runOptions, excludeUrlPatterns, allowedOrigins, buildID, timeout = {}, takeScreenshots, screenshotDir, elementInternals, projectId, git: gitConfig }) {
|
|
88
88
|
const screenshotsEnabled = !!takeScreenshots;
|
|
89
89
|
debugLogger('Received configuration:', {
|
|
90
90
|
apiKey: '<redacted>',
|
|
@@ -166,6 +166,7 @@ function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress,
|
|
|
166
166
|
gitData.git_commit_message = info?.message;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
const retryOnTemporaryFailure = Boolean(buildID || sessionId);
|
|
169
170
|
if (!buildID && (isPlaywrightTest || isWdioTestrunner)) {
|
|
170
171
|
if (!sessionId && fs_1.default.existsSync(constantsNode_1.PATH_TO_SESSION_FILE)) {
|
|
171
172
|
debugLogger('Reading session ID from file');
|
|
@@ -203,7 +204,8 @@ function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress,
|
|
|
203
204
|
configOverrides: configurationOverrides || null,
|
|
204
205
|
runOptions: runOptions || null,
|
|
205
206
|
isCanonicalSource: (0, isCI_1.isCI)(),
|
|
206
|
-
bundledAxeCoreVersions
|
|
207
|
+
bundledAxeCoreVersions,
|
|
208
|
+
retryOnTemporaryFailure
|
|
207
209
|
});
|
|
208
210
|
if (typeof autoAnalyze === 'undefined') {
|
|
209
211
|
autoAnalyze = true;
|
|
@@ -220,7 +222,6 @@ function writeVariables({ apiKey, autoAnalyze, configurationOverrides, cypress,
|
|
|
220
222
|
screenshot_dir: screenshotsEnabled ? screenshotDir : undefined,
|
|
221
223
|
auto_analyze: !!autoAnalyze,
|
|
222
224
|
cypress: !!cypress,
|
|
223
|
-
experimental_advanced_rules: !!experimentalAdvancedRules,
|
|
224
225
|
element_internals: !!elementInternals,
|
|
225
226
|
run_context: runContext || null,
|
|
226
227
|
run_options: runOptions || null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeVariables.js","sourceRoot":"","sources":["../../src/utils/writeVariables.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAA6B;AAC7B,4CAAmB;AACnB,gDAAuB;AACvB,2CAAgD;AAChD,mDAAsD;AACtD,uDAAyD;AACzD,2EAAuE;AACvE,mEAAgF;AAChF,uEAA8C;AAC9C,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