Fix cache dir, add more large test tags

master
agibsonccc 2021-03-26 15:04:57 +09:00
parent cf26ffe3d3
commit c2e487781d
5 changed files with 14 additions and 4 deletions

View File

@ -22,6 +22,8 @@ jobs:
cmake --version cmake --version
protoc --version protoc --version
export OMP_NUM_THREADS=1 export OMP_NUM_THREADS=1
mvn -DexcludedGroups="long-running-tests,large-resources, distributed-systems" -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pnd4j-tests-cpu clean test mkdir -p ${GITHUB_WORKSPACE}/resources
mvn -Dgroups="long-running-tests, large-resources, distributed-systems" -Ptestresources -Pnd4j-tests-cpu -Dtest.offheap.size=14g -Dtest.heap.size=6g -Dsurefire.parallel.forcedTimeout=200 0Dsurefire.parallel.timeout=200 -Dsurefire.timeout=200 -Dsurefire.exitTimeout=200 test mkdir -p ${GITHUB_WORKSPACE}/cache
mvn -Dorg.nd4j.strumpf.resource.dirs=${GITHUB_WORKSPACE}/resources -Dorg.nd4j.test.resources.cache.dir=${GITHUB_WORKSPACE}/cache -DexcludedGroups="long-running-tests, large-resources, distributed-systems" -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pnd4j-tests-cuda clean test --fail-never
mvn -Dorg.nd4j.strumpf.resource.dirs=${GITHUB_WORKSPACE}/resources -Dorg.nd4j.test.resources.cache.dir=${GITHUB_WORKSPACE}/cache -Dgroups="long-running-tests, large-resources, distributed-systems" -Ptestresources -Pnd4j-tests-cuda -Dtest.offheap.size=14g -Dtest.heap.size=6g -Dsurefire.parallel.forcedTimeout=200 0Dsurefire.parallel.timeout=200 -Dsurefire.timeout=200 -Dsurefire.exitTimeout=200 test --fail-never

View File

@ -34,6 +34,8 @@ jobs:
cmake --version cmake --version
protoc --version protoc --version
export OMP_NUM_THREADS=1 export OMP_NUM_THREADS=1
mvn -DexcludedGroups="long-running-tests, large-resources, distributed-systems" -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pnd4j-tests-cuda clean test --fail-never mkdir -p ${GITHUB_WORKSPACE}/resources
mvn -Dgroups="long-running-tests, large-resources, distributed-systems" -Ptestresources -Pnd4j-tests-cuda -Dtest.offheap.size=14g -Dtest.heap.size=6g -Dsurefire.parallel.forcedTimeout=200 0Dsurefire.parallel.timeout=200 -Dsurefire.timeout=200 -Dsurefire.exitTimeout=200 test --fail-never mkdir -p ${GITHUB_WORKSPACE}/cache
mvn -Dorg.nd4j.strumpf.resource.dirs=${GITHUB_WORKSPACE}/resources -Dorg.nd4j.test.resources.cache.dir=${GITHUB_WORKSPACE}/cache -DexcludedGroups="long-running-tests, large-resources, distributed-systems" -DskipTestResourceEnforcement=true -Ptestresources -Pintegration-tests -Pnd4j-tests-cuda clean test --fail-never
mvn -Dorg.nd4j.strumpf.resource.dirs=${GITHUB_WORKSPACE}/resources -Dorg.nd4j.test.resources.cache.dir=${GITHUB_WORKSPACE}/cache -Dgroups="long-running-tests, large-resources, distributed-systems" -Ptestresources -Pnd4j-tests-cuda -Dtest.offheap.size=14g -Dtest.heap.size=6g -Dsurefire.parallel.forcedTimeout=200 0Dsurefire.parallel.timeout=200 -Dsurefire.timeout=200 -Dsurefire.exitTimeout=200 test --fail-never

View File

@ -53,6 +53,8 @@ import static org.junit.jupiter.api.Assertions.*;
@Tag(TagNames.FILE_IO) @Tag(TagNames.FILE_IO)
@NativeTag @NativeTag
@Tag(TagNames.LARGE_RESOURCES)
@Tag(TagNames.LONG_TEST)
public class TestBertIterator extends BaseDL4JTest { public class TestBertIterator extends BaseDL4JTest {
private static File pathToVocab = Resources.asFile("other/vocab.txt"); private static File pathToVocab = Resources.asFile("other/vocab.txt");

View File

@ -51,6 +51,8 @@ import static org.junit.jupiter.api.Assertions.*;
@Slf4j @Slf4j
@Tag(TagNames.FILE_IO) @Tag(TagNames.FILE_IO)
@NativeTag @NativeTag
@Tag(TagNames.LONG_TEST)
@Tag(TagNames.LARGE_RESOURCES)
public class FastTextTest extends BaseDL4JTest { public class FastTextTest extends BaseDL4JTest {

View File

@ -662,6 +662,8 @@ public class ParagraphVectorsTest extends BaseDL4JTest {
public void testIterator(@TempDir Path testDir) throws IOException { public void testIterator(@TempDir Path testDir) throws IOException {
val folder_labeled = new File(testDir.toFile(),"labeled"); val folder_labeled = new File(testDir.toFile(),"labeled");
val folder_unlabeled = new File(testDir.toFile(),"unlabeled"); val folder_unlabeled = new File(testDir.toFile(),"unlabeled");
assertTrue(folder_labeled.mkdirs());
assertTrue(folder_labeled.mkdirs());
new ClassPathResource("/paravec/labeled/").copyDirectory(folder_labeled); new ClassPathResource("/paravec/labeled/").copyDirectory(folder_labeled);
new ClassPathResource("/paravec/unlabeled/").copyDirectory(folder_unlabeled); new ClassPathResource("/paravec/unlabeled/").copyDirectory(folder_unlabeled);