Skip to content

Commit

Permalink
ninja-fix: revert 'cleaning orphaned processes' until cqlshlib tests …
Browse files Browse the repository at this point in the history
…are dockerised

 ref: apache#50
  • Loading branch information
michaelsembwever committed Jun 14, 2021
1 parent 9a0af58 commit 46fbb47
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions jenkins-dsl/cassandra_job_dsl_seed.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,6 @@ cassandraBranches.each {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; df -h ;
Expand Down Expand Up @@ -509,8 +507,6 @@ cassandraBranches.each {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff -e build/test/jmh-result.json ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; du -xm / 2>/dev/null | sort -rn | head -n 30 ; df -h ;
Expand Down Expand Up @@ -606,8 +602,6 @@ cassandraBranches.each {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; df -h ;
Expand Down Expand Up @@ -661,8 +655,6 @@ cassandraBranches.each {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; df -h ;
Expand Down Expand Up @@ -808,8 +800,6 @@ matrixJob('Cassandra-devbranch-artifacts') {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; df -h ;
Expand Down Expand Up @@ -926,8 +916,6 @@ testTargets.each {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff ${targetName == 'microbench' ? '-e build/test/jmh-result.json' : ''};
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; du -xm / 2>/dev/null | sort -rn | head -n 30 ; df -h ;
Expand Down Expand Up @@ -1066,8 +1054,6 @@ archs.each {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…" ; git clean -xdff ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; df -h ;
Expand Down Expand Up @@ -1177,8 +1163,6 @@ matrixJob('Cassandra-devbranch-cqlsh-tests') {
// if the agent is busy, just prune everything that is older than maxJobHours
task('.', """
echo "Cleaning project…"; git clean -xdff ;
echo "Cleaning processes…" ;
if ! pgrep -af "cassandra-builds/build-scripts" ; then pkill -9 -f org.apache.cassandra. || echo "already clean" ; fi ;
echo "Pruning docker…" ;
if pgrep -af "cassandra-builds/build-scripts" ; then docker system prune --all --force --filter "until=${maxJobHours}h" || true ; else docker system prune --all --force --volumes || true ; fi;
echo "Reporting disk usage…"; df -h ;
Expand Down

0 comments on commit 46fbb47

Please sign in to comment.