[ARVADOS] updated: 37d18d1d7754e7955bccf2fce37a7298e84a6c8f

Git user git at public.curoverse.com
Tue May 3 09:12:47 EDT 2016


Summary of changes:
 build/run-tests.sh                                 |   2 +
 doc/install/install-keepstore.html.textile.liquid  |   2 +
 sdk/cli/bin/arv                                    |   2 +-
 sdk/cli/test/test_arv-collection-create.rb         |  18 +-
 sdk/cwl/arvados_cwl/__init__.py                    | 150 +++++++++--
 sdk/cwl/setup.py                                   |   2 +-
 sdk/cwl/tests/matcher.py                           |  23 ++
 sdk/cwl/tests/order/empty_order.json               |   1 +
 sdk/cwl/tests/order/inputs_test_order.json         |   9 +
 sdk/cwl/tests/test_job.py                          |  23 +-
 sdk/cwl/tests/test_submit.py                       | 299 +++++++++++++++------
 sdk/cwl/tests/wf/inputs_test.cwl                   |  27 ++
 sdk/go/httpserver/request_limiter.go               |  29 ++
 sdk/go/httpserver/request_limiter_test.go          | 106 ++++++++
 sdk/python/arvados/commands/keepdocker.py          |  41 +--
 sdk/python/arvados/commands/put.py                 |  18 ++
 sdk/python/arvados/keep.py                         |  46 +++-
 sdk/python/tests/arvados_testutil.py               |   3 +-
 sdk/python/tests/keepstub.py                       |  14 +
 sdk/python/tests/test_api.py                       |   2 +-
 sdk/python/tests/test_arv_put.py                   |  37 +++
 sdk/python/tests/test_keep_client.py               | 130 +++++++++
 .../api/app/controllers/application_controller.rb  |  25 +-
 .../arvados/v1/collections_controller.rb           |   2 +-
 .../integration/collections_performance_test.rb    |   2 +-
 services/api/test/test_helper.rb                   |   4 +
 services/keepstore/handler_test.go                 |   2 +-
 services/keepstore/keepstore.go                    |  20 +-
 services/keepstore/logging_router.go               |   9 +-
 tools/arvbox/lib/arvbox/docker/crunch-setup.sh     |   6 +-
 30 files changed, 875 insertions(+), 179 deletions(-)
 create mode 100644 sdk/cwl/tests/matcher.py
 create mode 100644 sdk/cwl/tests/order/empty_order.json
 create mode 100644 sdk/cwl/tests/order/inputs_test_order.json
 create mode 100644 sdk/cwl/tests/wf/inputs_test.cwl
 create mode 100644 sdk/go/httpserver/request_limiter.go
 create mode 100644 sdk/go/httpserver/request_limiter_test.go

  discards  c17687082226d198aa2479522f22d6879166cd1d (commit)
       via  37d18d1d7754e7955bccf2fce37a7298e84a6c8f (commit)
       via  25505fc5105bc776ed2d6d898f18f91d6451088b (commit)
       via  01cf080f9983313a50b902e477d7b30b03afa131 (commit)
       via  0278f7f56ed5ce972803079bdeb4ba031676a171 (commit)
       via  7fecb3e2a7fc7aa5b7230f12b3cc3878872fff68 (commit)
       via  c9c39efa9118a4d30a422c26726076bc54e6da17 (commit)
       via  306747a2b8971f095a13a507b0155ea64d53c98d (commit)
       via  e62a18f3786d0f3c12865f865294a0f4d39ff548 (commit)
       via  d8c84ea91f8c4a26860e637197f234f2dd909abb (commit)
       via  5e991889ca6c18cdd901b98b5083c4cee7d260c9 (commit)
       via  e09af1d4876cb1295785db9abb5f3d2d10323097 (commit)
       via  6599824f22cdb45ab30657ac95071aa0beeee08b (commit)
       via  b6e5a10028551a1c2b1379c5c8ed039582434f25 (commit)
       via  ec9df4864de8033b4efd8b1cecfd1875fefc303e (commit)
       via  f22692a8fdf6610045db0c34c4827a0ebcb0ae0a (commit)
       via  4c360c5a3a9564f584dac973810059d2d45d08ef (commit)
       via  fd57cb09ccf75c49653f8fb66fe6f4c1da49b687 (commit)
       via  3ede45e668eaad4cb23cc11f11a1a7ea6e688c88 (commit)
       via  16ec502827d038e4afe61faae53c64b17e0a0767 (commit)
       via  1535c8d141b07f246a501d288a0d3a903ce41a56 (commit)
       via  0dc0c5650ddcd8376aea84d32d2b81b1cdba0946 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (c17687082226d198aa2479522f22d6879166cd1d)
            \
             N -- N -- N (37d18d1d7754e7955bccf2fce37a7298e84a6c8f)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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 37d18d1d7754e7955bccf2fce37a7298e84a6c8f
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon May 2 16:46:08 2016 -0400

    9119: Use Oj strict mode for decoding JSON.

diff --git a/sdk/python/tests/test_api.py b/sdk/python/tests/test_api.py
index 795a9aa..6c379e1 100644
--- a/sdk/python/tests/test_api.py
+++ b/sdk/python/tests/test_api.py
@@ -37,7 +37,7 @@ class ArvadosApiTest(run_test_server.TestCaseWithServers):
 
     def test_empty_list(self):
         answer = arvados.api('v1').humans().list(
-            filters=[['uuid', 'is', None]]).execute()
+            filters=[['uuid', '=', None]]).execute()
         self.assertEqual(answer['items_available'], len(answer['items']))
 
     def test_nonempty_list(self):
diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb
index e91e3ce..3a88818 100644
--- a/services/api/app/controllers/application_controller.rb
+++ b/services/api/app/controllers/application_controller.rb
@@ -327,7 +327,7 @@ class ApplicationController < ActionController::Base
     return @attrs if @attrs
     @attrs = params[resource_name]
     if @attrs.is_a? String
-      @attrs = Oj.load @attrs, symbol_keys: true
+      @attrs = Oj.strict_load @attrs, symbol_keys: true
     end
     unless @attrs.is_a? Hash
       message = "No #{resource_name}"
@@ -441,7 +441,7 @@ class ApplicationController < ActionController::Base
 
   def load_json_value(hash, key, must_be_class=nil)
     if hash[key].is_a? String
-      hash[key] = Oj.load(hash[key], symbol_keys: false)
+      hash[key] = Oj.strict_load(hash[key], symbol_keys: false)
       if must_be_class and !hash[key].is_a? must_be_class
         raise TypeError.new("parameter #{key.to_s} must be a #{must_be_class.to_s}")
       end
diff --git a/services/api/app/controllers/arvados/v1/api_client_authorizations_controller.rb b/services/api/app/controllers/arvados/v1/api_client_authorizations_controller.rb
index 83968be..5229d80 100644
--- a/services/api/app/controllers/arvados/v1/api_client_authorizations_controller.rb
+++ b/services/api/app/controllers/arvados/v1/api_client_authorizations_controller.rb
@@ -15,7 +15,7 @@ class Arvados::V1::ApiClientAuthorizationsController < ApplicationController
       new(user_id: system_user.id,
           api_client_id: params[:api_client_id] || current_api_client.andand.id,
           created_by_ip_address: remote_ip,
-          scopes: Oj.load(params[:scopes] || '["all"]'))
+          scopes: Oj.strict_load(params[:scopes] || '["all"]'))
     @object.save!
     show
   end
diff --git a/services/api/lib/eventbus.rb b/services/api/lib/eventbus.rb
index ac53876..9bf95f5 100644
--- a/services/api/lib/eventbus.rb
+++ b/services/api/lib/eventbus.rb
@@ -162,7 +162,7 @@ class EventBus
     begin
       begin
         # Parse event data as JSON
-        p = (Oj.load event.data).symbolize_keys
+        p = (Oj.strict_load event.data).symbolize_keys
         filter = Filter.new(p)
       rescue Oj::Error => e
         ws.send ({status: 400, message: "malformed request"}.to_json)
diff --git a/services/api/lib/load_param.rb b/services/api/lib/load_param.rb
index d7b9bb7..5b22274 100644
--- a/services/api/lib/load_param.rb
+++ b/services/api/lib/load_param.rb
@@ -17,7 +17,7 @@ module LoadParam
       @where = params[:where]
     elsif params[:where].is_a? String
       begin
-        @where = Oj.load(params[:where])
+        @where = Oj.strict_load(params[:where])
         raise unless @where.is_a? Hash
       rescue
         raise ArgumentError.new("Could not parse \"where\" param as an object")
@@ -33,7 +33,7 @@ module LoadParam
       @filters += params[:filters]
     elsif params[:filters].is_a? String and !params[:filters].empty?
       begin
-        f = Oj.load params[:filters]
+        f = Oj.strict_load params[:filters]
         if not f.nil?
           raise unless f.is_a? Array
           @filters += f
@@ -72,7 +72,7 @@ module LoadParam
       (case params[:order]
        when String
          if params[:order].starts_with? '['
-           od = Oj.load(params[:order])
+           od = Oj.strict_load(params[:order])
            raise unless od.is_a? Array
            od
          else
@@ -142,7 +142,7 @@ module LoadParam
       @select = params[:select]
     when String
       begin
-        @select = Oj.load params[:select]
+        @select = Oj.strict_load params[:select]
         raise unless @select.is_a? Array or @select.nil?
       rescue
         raise ArgumentError.new("Could not parse \"select\" param as an array")
diff --git a/services/api/lib/record_filters.rb b/services/api/lib/record_filters.rb
index 350c380..caf62c7 100644
--- a/services/api/lib/record_filters.rb
+++ b/services/api/lib/record_filters.rb
@@ -126,6 +126,8 @@ module RecordFilters
             end
           end
           cond_out << cond.join(' OR ')
+        else
+          raise ArgumentError.new("Invalid operator '#{operator}'")
         end
       end
       conds_out << cond_out.join(' OR ') if cond_out.any?
diff --git a/services/api/test/integration/websocket_test.rb b/services/api/test/integration/websocket_test.rb
index c4d6d5e..313a22d 100644
--- a/services/api/test/integration/websocket_test.rb
+++ b/services/api/test/integration/websocket_test.rb
@@ -56,7 +56,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
 
     ws_helper do |ws|
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         status = d["status"]
         ws.close
       end
@@ -75,7 +75,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         status = d["status"]
         ws.close
       end
@@ -97,7 +97,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -134,7 +134,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -174,7 +174,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -213,7 +213,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -257,7 +257,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -297,7 +297,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -342,7 +342,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -390,7 +390,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -435,7 +435,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -507,7 +507,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -531,7 +531,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         status = d["status"]
         ws.close
       end
@@ -549,7 +549,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         status = d["status"]
         ws.close
       end
@@ -567,7 +567,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         status = d["status"]
         ws.close
       end
@@ -590,7 +590,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when (1..EventBus::MAX_FILTERS)
           assert_equal 200, d["status"]
@@ -625,7 +625,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
@@ -664,7 +664,7 @@ class WebsocketTest < ActionDispatch::IntegrationTest
       end
 
       ws.on :message do |event|
-        d = Oj.load event.data
+        d = Oj.strict_load event.data
         case state
         when 1
           assert_equal 200, d["status"]
diff --git a/services/api/test/test_helper.rb b/services/api/test/test_helper.rb
index 197ae24..881a080 100644
--- a/services/api/test/test_helper.rb
+++ b/services/api/test/test_helper.rb
@@ -26,7 +26,7 @@ require 'mocha/mini_test'
 
 module ArvadosTestSupport
   def json_response
-    Oj.load response.body
+    Oj.strict_load response.body
   end
 
   def api_token(api_client_auth_name)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list