You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemds.apache.org by ba...@apache.org on 2020/10/30 21:21:15 UTC

[systemds] branch master updated: [SYSTEMDS-2707] Split Federated Tests

This is an automated email from the ASF dual-hosted git repository.

baunsgaard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/master by this push:
     new 5aafde0  [SYSTEMDS-2707] Split Federated Tests
5aafde0 is described below

commit 5aafde0a029360535ead2926200baaa9bdb1c0cf
Author: baunsgaard <ba...@tugraz.at>
AuthorDate: Fri Oct 30 21:17:42 2020 +0100

    [SYSTEMDS-2707] Split Federated Tests
    
    This commit merge federated tests into blocks of reasonable execution times.
    That should sum to ~ 30 min.
    Furthermore this should reduce the number of docker image pulls our tests
    produce, since there is an 6 hour limit of 200 images.
---
 .github/workflows/functionsTests.yml            | 23 ++++++++++++++++++++---
 src/main/python/tests/algorithms/test_kmeans.py |  2 +-
 2 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/functionsTests.yml b/.github/workflows/functionsTests.yml
index 1a84112..55c10aa 100644
--- a/.github/workflows/functionsTests.yml
+++ b/.github/workflows/functionsTests.yml
@@ -35,8 +35,25 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
+        tests: [
+          "**.functions.aggregate.**,**.functions.append.**",
+          "**.functions.binary.frame.**,**.functions.binary.matrix.**,**.functions.binary.scalar.**,**.functions.binary.tensor.**",
+          "**.functions.blocks.**,**.functions.compress.**,**.functions.countDistinct.**,**.functions.data.misc.**,**.functions.data.rand.**,**.functions.data.tensor.**",
+          "**.functions.binary.matrix_full_**",
+          "**.functions.codegenalg.partone**",
+          "**.functions.codegenalg.parttwo**,**.functions.codegen.**,**.functions.caching.**",
+          "**.functions.builtin.**",
+          "**.functions.federated.**",
+          "**.functions.frame.**,**.functions.indexing.**,**.functions.io.**,**.functions.jmlc.**,**.functions.lineage.**",
+          "**.functions.dnn.**,**.functions.misc.**,**.functions.mlcontext.**",
+          "**.functions.paramserv.**",
+          "**.functions.nary.**,**.functions.parfor.**",
+          "**.functions.pipelines.**,**.functions.privacy.**,**.functions.quaternary.**,**.functions.unary.scalar.**,**.functions.updateinplace.**,**.functions.vect.**",
+          "**.functions.r**,**.functions.t**",
+          "**.functions.unary.matrix.**"
+          ]
         os: [ubuntu-latest]
-    name: Function Test
+    name: Function Test ${{ matrix.tests }}
     steps:
     - name: Checkout Repository
       uses: actions/checkout@v2
@@ -49,9 +66,9 @@ jobs:
         restore-keys: |
           ${{ runner.os }}-maven-test-
 
-    - name: Run all Function Tests
+    - name: ${{ matrix.tests }}
       uses: ./.github/action/
       id: test
       with:
-        test-to-run: org.apache.sysds.test.functions.**
+        test-to-run: ${{ matrix.tests }}
 
diff --git a/src/main/python/tests/algorithms/test_kmeans.py b/src/main/python/tests/algorithms/test_kmeans.py
index 426c40b..0b1a8f3 100644
--- a/src/main/python/tests/algorithms/test_kmeans.py
+++ b/src/main/python/tests/algorithms/test_kmeans.py
@@ -90,7 +90,7 @@ class TestKMeans(unittest.TestCase):
     def test_invalid_input_2(self):
         features = Matrix(self.sds, np.array([1]))
         with self.assertRaises(ValueError) as context:
-            kmeans(features, k=-1)
+            kmeans(features, k=-1, seed= 13142)
 
     def generate_matrices_for_k_means(self, dims: (int, int), seed: int = 1234):
         np.random.seed(seed)