@@ -2414,19 +2414,26 @@ moduleTypes.forEach(({
24142414 ...restEnvVars
24152415 } = getCiVisEvpProxyConfig ( receiver . port )
24162416
2417+ const specToRun = 'cypress/e2e/spec.cy.js'
2418+
24172419 childProcess = exec (
2418- testCommand ,
2420+ version === 'latest' ? testCommand : ` ${ testCommand } --spec ${ specToRun } ` ,
24192421 {
24202422 cwd,
24212423 env : {
24222424 ...restEnvVars ,
24232425 CYPRESS_BASE_URL : `http://localhost:${ webAppPort } ` ,
2424- DD_TEST_SESSION_NAME : 'my-test-session-name'
2426+ DD_TEST_SESSION_NAME : 'my-test-session-name' ,
2427+ SPEC_PATTERN : specToRun ,
24252428 } ,
24262429 stdio : 'pipe'
24272430 }
24282431 )
24292432
2433+ // TODO: remove this once we have figured out flakiness
2434+ childProcess . stdout . pipe ( process . stdout )
2435+ childProcess . stderr . pipe ( process . stderr )
2436+
24302437 await Promise . all ( [
24312438 once ( childProcess , 'exit' ) ,
24322439 receiverPromise
@@ -2532,7 +2539,7 @@ moduleTypes.forEach(({
25322539 NUM_RETRIES_EFD
25332540 )
25342541 }
2535- } )
2542+ } , 25000 )
25362543
25372544 const runImpactedTest = async (
25382545 { isModified, isEfd = false , isNew = false } ,
@@ -2562,6 +2569,10 @@ moduleTypes.forEach(({
25622569 }
25632570 )
25642571
2572+ // TODO: remove this once we have figured out flakiness
2573+ childProcess . stdout . pipe ( process . stdout )
2574+ childProcess . stderr . pipe ( process . stderr )
2575+
25652576 await Promise . all ( [
25662577 once ( childProcess , 'exit' ) ,
25672578 testAssertionsPromise
0 commit comments