[ARVADOS] updated: 2.1.0-1729-g81f4e0b2f

Git user git at public.arvados.org
Tue Dec 21 17:00:42 UTC 2021


Summary of changes:
 lib/crunchrun/crunchrun_test.go              | 6 +++---
 services/api/app/models/container_request.rb | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

       via  81f4e0b2f8614062ba471c72fdd236c5fce023dc (commit)
      from  6fe152024269d838e31bc224adbd518c43cbfee5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 81f4e0b2f8614062ba471c72fdd236c5fce023dc
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Tue Dec 21 12:00:28 2021 -0500

    18321: Fix tests
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/lib/crunchrun/crunchrun_test.go b/lib/crunchrun/crunchrun_test.go
index 67b18857b..97f91103a 100644
--- a/lib/crunchrun/crunchrun_test.go
+++ b/lib/crunchrun/crunchrun_test.go
@@ -992,7 +992,7 @@ func (s *TestSuite) TestEnableCUDADeviceCount(c *C) {
     "mounts": {"/tmp": {"kind": "tmp"} },
     "output_path": "/tmp",
     "priority": 1,
-    "runtime_constraints": {"cuda_device_count": 2},
+    "runtime_constraints": {"cuda": {"device_count": 2}},
     "state": "Locked",
     "output_storage_classes": ["foo", "bar"]
 }`, nil, 0, func() {
@@ -1010,13 +1010,13 @@ func (s *TestSuite) TestEnableCUDAHardwareCapability(c *C) {
     "mounts": {"/tmp": {"kind": "tmp"} },
     "output_path": "/tmp",
     "priority": 1,
-    "runtime_constraints": {"cuda_hardware_capability": "foo"},
+    "runtime_constraints": {"cuda": {"hardware_capability": "foo"}},
     "state": "Locked",
     "output_storage_classes": ["foo", "bar"]
 }`, nil, 0, func() {
 		fmt.Fprintln(s.executor.created.Stdout, "ok")
 	})
-	c.Check(s.executor.created.CUDADeviceCount, Equals, 1)
+	c.Check(s.executor.created.CUDADeviceCount, Equals, 0)
 }
 
 func (s *TestSuite) TestStopOnSignal(c *C) {
diff --git a/services/api/app/models/container_request.rb b/services/api/app/models/container_request.rb
index a3264e419..17247246c 100644
--- a/services/api/app/models/container_request.rb
+++ b/services/api/app/models/container_request.rb
@@ -348,7 +348,7 @@ class ContainerRequest < ArvadosModel
           v = runtime_constraints['cuda'][k]
           if !v.is_a?(String) || (runtime_constraints['cuda']['device_count'] > 0 && v.to_f == 0.0)
             errors.add(:runtime_constraints,
-                       "[cuda.#{k}]=#{v.inspect} must be a string in format 'X.Y' version")
+                       "[cuda.#{k}]=#{v.inspect} must be a string in format 'X.Y'")
           end
         end
       end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list