Skip to content

Commit fcc285a

Browse files
santoshyadavdevianschmitz
authored andcommitted
Kill verdaccio in CI tasks cleanup (facebook#6700)
Fixes facebook#6663
1 parent b8511cb commit fcc285a

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

Diff for: tasks/e2e-behavior.sh

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ original_yarn_registry_url=`yarn config get registry`
2222

2323
function cleanup {
2424
echo 'Cleaning up.'
25+
ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9
2526
ps -ef | grep 'react-scripts' | grep -v grep | awk '{print $2}' | xargs kill -9
2627
cd "$root_path"
2728
npm set registry "$original_npm_registry_url"

Diff for: tasks/e2e-installs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ original_yarn_registry_url=`yarn config get registry`
2121

2222
function cleanup {
2323
echo 'Cleaning up.'
24+
ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9
2425
cd "$root_path"
2526
rm -rf "$temp_app_path"
2627
npm set registry "$original_npm_registry_url"

Diff for: tasks/e2e-kitchensink-eject.sh

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ original_yarn_registry_url=`yarn config get registry`
2323
function cleanup {
2424
echo 'Cleaning up.'
2525
unset BROWSERSLIST
26+
ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9
2627
ps -ef | grep 'react-scripts' | grep -v grep | awk '{print $2}' | xargs kill -9
2728
cd "$root_path"
2829
# TODO: fix "Device or resource busy" and remove ``|| $CI`

Diff for: tasks/e2e-kitchensink.sh

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ original_yarn_registry_url=`yarn config get registry`
2323
function cleanup {
2424
echo 'Cleaning up.'
2525
unset BROWSERSLIST
26+
ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9
2627
ps -ef | grep 'react-scripts' | grep -v grep | awk '{print $2}' | xargs kill -9
2728
cd "$root_path"
2829
# TODO: fix "Device or resource busy" and remove ``|| $CI`

Diff for: tasks/e2e-simple.sh

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ original_yarn_registry_url=`yarn config get registry`
2121

2222
function cleanup {
2323
echo 'Cleaning up.'
24+
ps -ef | grep 'verdaccio' | grep -v grep | awk '{print $2}' | xargs kill -9
2425
cd "$root_path"
2526
# Uncomment when snapshot testing is enabled by default:
2627
# rm ./packages/react-scripts/template/src/__snapshots__/App.test.js.snap

0 commit comments

Comments
 (0)