mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-23 07:39:52 -06:00
fix(cli): filter CertVerifyProcBuiltin from stderr (#22342)
Co-authored-by: Rachel <rachel@cypress.io>
This commit is contained in:
@@ -30,7 +30,15 @@ const isRenderWorkerRe = /\.RenderWorker-/
|
||||
// https://github.com/cypress-io/cypress/issues/19299
|
||||
const isDbusWarning = /Failed to connect to the bus:/
|
||||
|
||||
const GARBAGE_WARNINGS = [isXlibOrLibudevRe, isHighSierraWarningRe, isRenderWorkerRe, isDbusWarning]
|
||||
// Electron began logging these on self-signed certs with 17.0.0-alpha.4.
|
||||
// Once this is fixed upstream this regex can be removed: https://github.com/electron/electron/issues/34583
|
||||
// Sample:
|
||||
// [3801:0606/152837.383892:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.googletagmanager.com failed:
|
||||
// ----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.googletagmanager.com) -----
|
||||
// ERROR: No matching issuer found
|
||||
const isCertVerifyProcBuiltin = /(^\[.*ERROR:cert_verify_proc_builtin\.cc|^----- Certificate i=0 \(OU=Cypress Proxy|^ERROR: No matching issuer found$)/
|
||||
|
||||
const GARBAGE_WARNINGS = [isXlibOrLibudevRe, isHighSierraWarningRe, isRenderWorkerRe, isDbusWarning, isCertVerifyProcBuiltin]
|
||||
|
||||
const isGarbageLineWarning = (str) => {
|
||||
return _.some(GARBAGE_WARNINGS, (re) => {
|
||||
|
||||
@@ -71,6 +71,10 @@ describe('lib/exec/spawn', function () {
|
||||
|
||||
[1957:0406/160550.146820:ERROR:bus.cc(392)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
|
||||
[1957:0406/160550.147994:ERROR:bus.cc(392)] Failed to connect to the bus: Address does not contain a colon
|
||||
|
||||
[3801:0606/152837.383892:ERROR:cert_verify_proc_builtin.cc(681)] CertVerifyProcBuiltin for www.googletagmanager.com failed:
|
||||
----- Certificate i=0 (OU=Cypress Proxy Server Certificate,O=Cypress Proxy CA,L=Internet,ST=Internet,C=Internet,CN=www.googletagmanager.com) -----
|
||||
ERROR: No matching issuer found
|
||||
`
|
||||
|
||||
const lines = _
|
||||
|
||||
Reference in New Issue
Block a user