cypress 13.7.2 → 13.7.3
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/lib/exec/spawn.js +31 -1
- package/package.json +3 -3
- package/types/cypress.d.ts +1 -1
package/lib/exec/spawn.js
CHANGED
@@ -6,6 +6,7 @@ const cp = require('child_process');
|
|
6
6
|
const path = require('path');
|
7
7
|
const Promise = require('bluebird');
|
8
8
|
const debug = require('debug')('cypress:cli');
|
9
|
+
const debugVerbose = require('debug')('cypress-verbose:cli');
|
9
10
|
const util = require('../util');
|
10
11
|
const state = require('../tasks/state');
|
11
12
|
const xvfb = require('./xvfb');
|
@@ -42,7 +43,35 @@ const isCertVerifyProcBuiltin = /(^\[.*ERROR:cert_verify_proc_builtin\.cc|^-----
|
|
42
43
|
// Sample:
|
43
44
|
// objc[60540]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x7ffa5a006318) and /{path/to/app}/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x10f8a89c8). One of the two will be used. Which one is undefined.
|
44
45
|
const isMacOSElectronWebSwapCGLLayerWarning = /^objc\[\d+\]: Class WebSwapCGLLayer is implemented in both.*Which one is undefined\./;
|
45
|
-
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Electron logs benign warnings about Vulkan when run on hosts that do not have a GPU. This is coming from the primary Electron process,
|
49
|
+
* and not the browser being used for tests.
|
50
|
+
* Samples:
|
51
|
+
* Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_intel.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
|
52
|
+
* Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_lvp.so supports Vulkan 1.1, but only supports loader interface version 4. Interface version 5 or newer required to support this version of Vulkan (Policy #LDP_DRIVER_7)
|
53
|
+
* Warning: loader_scanned_icd_add: Driver /usr/lib/x86_64-linux-gnu/libvulkan_radeon.so supports Vulkan 1.2, but only supports loader interface version 4. Interface version 5 or newer required to support this verison of Vulkan (Policy #LDP_DRIVER_7)
|
54
|
+
* Warning: Layer VK_LAYER_MESA_device_select uses API version 1.2 which is older than the application specified API version of 1.3. May cause issues.
|
55
|
+
*/
|
56
|
+
|
57
|
+
const isHostVulkanDriverWarning = /^Warning:.+(#LDP_DRIVER_7|VK_LAYER_MESA_device_select).+/;
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Electron logs benign warnings about Vulkan when run in docker containers whose host does not have a GPU. This is coming from the primary
|
61
|
+
* Electron process, and not the browser being used for tests.
|
62
|
+
* Sample:
|
63
|
+
* Warning: vkCreateInstance: Found no drivers!
|
64
|
+
* Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
|
65
|
+
* at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
|
66
|
+
* at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
|
67
|
+
* at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
|
68
|
+
* at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
|
69
|
+
* at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
|
70
|
+
*/
|
71
|
+
|
72
|
+
const isContainerVulkanDriverWarning = /^Warning: vkCreateInstance/;
|
73
|
+
const isContainerVulkanStack = /^\s*at (CheckVkSuccessImpl|CreateVkInstance|Initialize|Create|operator).+(VulkanError|BackendVk).cpp/;
|
74
|
+
const GARBAGE_WARNINGS = [isXlibOrLibudevRe, isHighSierraWarningRe, isRenderWorkerRe, isDbusWarning, isCertVerifyProcBuiltin, isMacOSElectronWebSwapCGLLayerWarning, isHostVulkanDriverWarning, isContainerVulkanDriverWarning, isContainerVulkanStack];
|
46
75
|
const isGarbageLineWarning = str => {
|
47
76
|
return _.some(GARBAGE_WARNINGS, re => {
|
48
77
|
return re.test(str);
|
@@ -199,6 +228,7 @@ module.exports = {
|
|
199
228
|
|
200
229
|
// bail if this is warning line garbage
|
201
230
|
if (isGarbageLineWarning(str)) {
|
231
|
+
debugVerbose(str);
|
202
232
|
return;
|
203
233
|
}
|
204
234
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "13.7.
|
3
|
+
"version": "13.7.3",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -134,8 +134,8 @@
|
|
134
134
|
},
|
135
135
|
"buildInfo": {
|
136
136
|
"commitBranch": "develop",
|
137
|
-
"commitSha": "
|
138
|
-
"commitDate": "2024-04-
|
137
|
+
"commitSha": "94aad9a4a20faba5a4502751c83d89baac4aa87d",
|
138
|
+
"commitDate": "2024-04-11T16:47:40.000Z",
|
139
139
|
"stable": true
|
140
140
|
},
|
141
141
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
package/types/cypress.d.ts
CHANGED
@@ -3057,7 +3057,7 @@ declare namespace Cypress {
|
|
3057
3057
|
*/
|
3058
3058
|
video: boolean
|
3059
3059
|
/**
|
3060
|
-
* Whether Chrome Web Security for same-origin policy and insecure mixed content is enabled. Read more about this here
|
3060
|
+
* Whether Chrome Web Security for same-origin policy and insecure mixed content is enabled. Read more about this [here](https://on.cypress.io/web-security#Disabling-Web-Security)
|
3061
3061
|
* @default true
|
3062
3062
|
*/
|
3063
3063
|
chromeWebSecurity: boolean
|