[ 
https://issues.apache.org/jira/browse/CASSANDRA-15777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17096680#comment-17096680
 ] 

Michael Semb Wever edited comment on CASSANDRA-15777 at 4/30/20, 3:48 PM:
--------------------------------------------------------------------------

Verified in CI with the following output from 
https://ci-cassandra.apache.org/job/Cassandra-devbranch-test/70/console which 
shows the tmp directory in the build workspace is being used.
{noformat}
14:47:52 + find . -maxdepth 2 -type d -exec du -hs {} ;
14:47:52 483M   .
14:47:52 365M   ./.git
14:47:52 48K    ./.git/hooks
14:47:52 4.0K   ./.git/info
14:47:52 0      ./.git/branches
14:47:52 3.7M   ./.git/refs
14:47:52 359M   ./.git/objects
14:47:52 2.2M   ./.git/logs
14:47:52 140K   ./.circleci
14:47:52 12K    ./.jenkins
14:47:52 240K   ./bin
14:47:52 144K   ./conf
14:47:52 4.0K   ./conf/triggers
14:47:52 104K   ./debian
14:47:52 12K    ./debian/patches
14:47:52 408K   ./doc
14:47:52 296K   ./doc/cql3
14:47:52 76K    ./examples
14:47:52 16K    ./examples/triggers
14:47:52 60K    ./examples/hadoop_cql3_word_count
14:47:52 76K    ./ide
14:47:52 72K    ./ide/idea
14:47:52 25M    ./lib
14:47:52 460K   ./lib/licenses
14:47:52 6.7M   ./lib/sigar-bin
14:47:52 460K   ./pylib
14:47:52 448K   ./pylib/cqlshlib
14:47:52 28K    ./redhat
14:47:52 13M    ./src
14:47:52 13M    ./src/java
14:47:52 4.0K   ./src/resources
14:47:52 4.0K   ./src/jdkoverride
14:47:52 70M    ./test
14:47:52 92K    ./test/burn
14:47:52 40K    ./test/conf
14:47:52 64M    ./test/data
14:47:52 292K   ./test/distributed
14:47:52 144K   ./test/long
14:47:52 36K    ./test/microbench
14:47:52 48K    ./test/resources
14:47:52 6.2M   ./test/unit
14:47:52 892K   ./tools
14:47:52 80K    ./tools/bin
14:47:52 800K   ./tools/stress
14:47:52 460K   ./cassandra-builds
14:47:52 236K   ./cassandra-builds/.git
14:47:52 48K    ./cassandra-builds/build-scripts
14:47:52 32K    ./cassandra-builds/cassandra-release
14:47:52 0      ./cassandra-builds/dist
14:47:52 68K    ./cassandra-builds/docker
14:47:52 44K    ./cassandra-builds/jenkins-dsl
14:47:52 4.2M   ./tmp
14:47:52 0      ./tmp/jna--1712433994
14:47:52 0      ./tmp/something6875525018590718980
14:47:52 0      ./tmp/Keyspace1
14:47:52 200K   ./tmp/1588249903123-0
14:47:52 8.0K   ./tmp/5486536555493548056
14:47:52 36K    ./tmp/1588250143825-0
14:47:52 36K    ./tmp/1588250143992-0
14:47:52 4.0K   ./tmp/1588250402390-0
14:47:52 4.0K   ./tmp/1588250422866-0
14:47:52 8.0K   ./tmp/1588249509129-0
14:47:52 36K    ./tmp/8965738820013814910
14:47:52 0      ./tmp/6451432372843992708
14:47:52 256K   ./tmp/1588249901385-0
14:47:52 8.0K   ./tmp/1588249904898-0
14:47:52 8.0K   ./tmp/2626815944938445495
14:47:52 164K   ./tmp/840198530903671919
14:47:52 2.3M   ./tmp/1588250142889-0
14:47:52 36K    ./tmp/1588250143947-0
14:47:52 4.0K   ./tmp/1588250402383-0
14:47:52 0      ./tmp/subdir
14:47:52 4.0K   ./tmp/1588250422859-0
14:47:52 8.0K   ./tmp/1588249514052-0
14:47:52 264K   ./tmp/1588249902435-0
14:47:52 4.0K   ./tmp/1588250134087-0
14:47:52 4.0K   ./tmp/1588250134186-0
14:47:52 84K    ./tmp/1588250142861-0
14:47:52 0      ./tmp/1588250143941-0
14:47:52 184K   ./tmp/1588250144036-0
14:47:52 8.0K   ./tmp/1588249518823-0
14:47:52 8.0K   ./tmp/1588249523701-0
14:47:52 3.0M   ./interface
14:47:52 2.9M   ./interface/thrift
{noformat}


was (Author: michaelsembwever):
Verified in CI with the following output from 
https://ci-cassandra.apache.org/job/Cassandra-devbranch-test/70/console which 
shows the tmp directory in the build workspace is being used.
{noformat}
14:47:52 + find . -maxdepth 2 -type d -exec du -hs {} ;
14:47:52 483M   .
14:47:52 365M   ./.git
14:47:52 48K    ./.git/hooks
14:47:52 4.0K   ./.git/info
14:47:52 0      ./.git/branches
14:47:52 3.7M   ./.git/refs
14:47:52 359M   ./.git/objects
14:47:52 2.2M   ./.git/logs
14:47:52 140K   ./.circleci
14:47:52 12K    ./.jenkins
14:47:52 240K   ./bin
14:47:52 144K   ./conf
14:47:52 4.0K   ./conf/triggers
14:47:52 104K   ./debian
14:47:52 12K    ./debian/patches
14:47:52 408K   ./doc
14:47:52 296K   ./doc/cql3
14:47:52 76K    ./examples
14:47:52 16K    ./examples/triggers
14:47:52 60K    ./examples/hadoop_cql3_word_count
14:47:52 76K    ./ide
14:47:52 72K    ./ide/idea
14:47:52 25M    ./lib
14:47:52 460K   ./lib/licenses
14:47:52 6.7M   ./lib/sigar-bin
14:47:52 460K   ./pylib
14:47:52 448K   ./pylib/cqlshlib
14:47:52 28K    ./redhat
14:47:52 13M    ./src
14:47:52 13M    ./src/java
14:47:52 4.0K   ./src/resources
14:47:52 4.0K   ./src/jdkoverride
14:47:52 70M    ./test
14:47:52 92K    ./test/burn
14:47:52 40K    ./test/conf
14:47:52 64M    ./test/data
14:47:52 292K   ./test/distributed
14:47:52 144K   ./test/long
14:47:52 36K    ./test/microbench
14:47:52 48K    ./test/resources
14:47:52 6.2M   ./test/unit
14:47:52 892K   ./tools
14:47:52 80K    ./tools/bin
14:47:52 800K   ./tools/stress
14:47:52 460K   ./cassandra-builds
14:47:52 236K   ./cassandra-builds/.git
14:47:52 48K    ./cassandra-builds/build-scripts
14:47:52 32K    ./cassandra-builds/cassandra-release
14:47:52 0      ./cassandra-builds/dist
14:47:52 68K    ./cassandra-builds/docker
14:47:52 44K    ./cassandra-builds/jenkins-dsl
14:47:52 4.2M   ./tmp
14:47:52 0      ./tmp/jna--1712433994
14:47:52 0      ./tmp/something6875525018590718980
14:47:52 0      ./tmp/Keyspace1
14:47:52 200K   ./tmp/1588249903123-0
14:47:52 8.0K   ./tmp/5486536555493548056
14:47:52 36K    ./tmp/1588250143825-0
14:47:52 36K    ./tmp/1588250143992-0
14:47:52 4.0K   ./tmp/1588250402390-0
14:47:52 4.0K   ./tmp/1588250422866-0
14:47:52 8.0K   ./tmp/1588249509129-0
14:47:52 36K    ./tmp/8965738820013814910
14:47:52 0      ./tmp/6451432372843992708
14:47:52 256K   ./tmp/1588249901385-0
14:47:52 8.0K   ./tmp/1588249904898-0
14:47:52 8.0K   ./tmp/2626815944938445495
14:47:52 164K   ./tmp/840198530903671919
14:47:52 2.3M   ./tmp/1588250142889-0
14:47:52 36K    ./tmp/1588250143947-0
14:47:52 4.0K   ./tmp/1588250402383-0
14:47:52 0      ./tmp/subdir
14:47:52 4.0K   ./tmp/1588250422859-0
14:47:52 8.0K   ./tmp/1588249514052-0
14:47:52 264K   ./tmp/1588249902435-0
14:47:52 4.0K   ./tmp/1588250134087-0
14:47:52 4.0K   ./tmp/1588250134186-0
14:47:52 84K    ./tmp/1588250142861-0
14:47:52 0      ./tmp/1588250143941-0
14:47:52 184K   ./tmp/1588250144036-0
14:47:52 8.0K   ./tmp/1588249518823-0
14:47:52 8.0K   ./tmp/1588249523701-0
14:47:52 3.0M   ./interface
14:47:52 2.9M   ./interface/thrift
14:47:52 + du -hs ../Cassandra-2.2-dtest-offheap 
../Cassandra-3.0-test-compression ../Cassandra-3.11 ../Cassandra-devbranch 
../Cassandra-devbranch-dtest ../Cassandra-devbranch-test 
../Cassandra-devbranch-test@2 ../Cassandra-devbranch@2 
../Cassandra-trunk-fqltool-test
14:47:52 305M   ../Cassandra-2.2-dtest-offheap
14:47:52 302M   ../Cassandra-3.0-test-compression
14:47:52 9.0M   ../Cassandra-3.11
14:47:52 420K   ../Cassandra-devbranch
14:47:52 442M   ../Cassandra-devbranch-dtest
14:47:52 504M   ../Cassandra-devbranch-test
14:47:52 483M   ../Cassandra-devbranch-test@2
14:47:52 971M   ../Cassandra-devbranch@2
14:47:52 321M   ../Cassandra-trunk-fqltool-test
{noformat}

> All test targets to set jvm arg "java.io.tmpdir" according to ${tmp.dir}
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15777
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15777
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build, Test/unit
>            Reporter: Michael Semb Wever
>            Assignee: Ekaterina Dimitrova
>            Priority: Normal
>             Fix For: 2.2.x, 3.0.x, 3.11.x, 4.0-alpha
>
>
> Make all test targets declare the temp directory (java.io.tmpdir) as defined 
> by tmp.dir
> This was originally done in CASSANDRA-7712 but has been eroded over time as 
> the test targets evolved.
> The attached patch moves the 
> {code}<jvmarg value="-Djava.io.tmpdir=${tmp.dir}"/>{code}
> into the {{testmacrohelper}} macrodef.
> Like CASSANDRA-7712, jenkins agents are filling up their root volumes because 
> of what's left behind under {{"/tmp"}}
> The build scripts have already been configured to define the temp directory 
> to be within the jenkins job's workspace: 
> https://github.com/apache/cassandra-builds/commit/33ba1e30ea196180f7d70f8e6ec47fdf6844f3f6#diff-91876f5f158ec50dab9a70cc06c06922



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to