[ARVADOS] updated: be4852ec32e5eeed1af9a62017cfc39ed66ac186

Git user git at public.curoverse.com
Tue May 2 10:57:21 EDT 2017


Summary of changes:
 .../controllers/container_requests_controller.rb   |  27 +-
 apps/workbench/app/helpers/provenance_helper.rb    |  48 ++
 .../_show_provenance.html.erb                      |   4 +-
 .../container_requests_controller_test.rb          |  21 +
 .../test/integration/container_requests_test.rb    |  12 +
 ...nstall-manual-prerequisites.html.textile.liquid |  10 +-
 doc/install/migrate-docker19.html.textile.liquid   |   9 +-
 sdk/cwl/arvados_cwl/arvcontainer.py                |  62 +-
 sdk/cwl/arvados_cwl/arvjob.py                      |   8 +-
 sdk/cwl/arvados_cwl/arvworkflow.py                 |   5 +-
 sdk/cwl/arvados_cwl/crunch_script.py               |   3 +-
 sdk/cwl/arvados_cwl/pathmapper.py                  |  16 +
 sdk/cwl/arvados_cwl/runner.py                      |  18 +-
 sdk/cwl/tests/test_container.py                    |  84 +++
 sdk/go/arvadosclient/arvadosclient_test.go         |   7 +-
 sdk/go/keepclient/discover.go                      |  15 +-
 sdk/go/keepclient/keepclient.go                    |  22 +-
 sdk/go/keepclient/keepclient_test.go               |  20 +-
 sdk/go/keepclient/support.go                       |  98 +--
 sdk/python/arvados/_ranges.py                      |   2 +-
 sdk/python/arvados/arvfile.py                      | 170 +++--
 sdk/python/tests/run_test_server.py                |   5 +-
 sdk/python/tests/test_collections.py               |  60 +-
 sdk/ruby/lib/arvados.rb                            |  23 +-
 sdk/ruby/lib/arvados/keep.rb                       |   6 +-
 services/api/.gitignore                            |   3 +-
 services/api/Gemfile                               |  53 +-
 services/api/Gemfile.lock                          | 279 ++++----
 services/api/Rakefile                              |   6 -
 .../api/app/controllers/application_controller.rb  |  14 +-
 .../app/controllers/arvados/v1/nodes_controller.rb |   6 +-
 .../controllers/arvados/v1/schema_controller.rb    |   7 +-
 .../app/controllers/arvados/v1/users_controller.rb |   2 +-
 .../api/app/controllers/database_controller.rb     |   4 +-
 .../app/controllers/user_sessions_controller.rb    |   3 +-
 .../api/app/models/api_client_authorization.rb     |   8 +-
 services/api/app/models/arvados_model.rb           |  99 ++-
 services/api/app/models/collection.rb              |   2 +-
 services/api/app/models/link.rb                    |   5 -
 services/api/app/models/log.rb                     |   2 +-
 services/api/app/models/user.rb                    |   8 +-
 services/api/app/models/virtual_machine.rb         |   6 +-
 services/api/config/application.default.yml        |  36 +-
 services/api/config/application.rb                 |  29 +-
 .../api/config/environments/development.rb.example |   3 -
 .../api/config/environments/production.rb.example  |   2 +-
 services/api/config/environments/test.rb.example   |   5 +-
 services/api/config/initializers/eventbus.rb       |  38 +-
 services/api/config/initializers/load_config.rb    |   1 +
 .../api/config/initializers/noop_deep_munge.rb     |   1 +
 .../config/initializers/permit_all_parameters.rb   |   1 +
 services/api/config/initializers/time_format.rb    |   2 +
 services/api/config/routes.rb                      |  28 +-
 ...0170319063406_serialized_columns_accept_null.rb |   5 +
 services/api/db/structure.sql                      |   9 +-
 services/api/lib/can_be_an_owner.rb                |   2 +-
 services/api/lib/create_superuser_token.rb         |   4 +-
 services/api/lib/eventbus.rb                       | 358 ----------
 services/api/lib/has_uuid.rb                       |  14 +-
 services/api/lib/load_param.rb                     |   2 +-
 services/api/lib/serializers.rb                    |   6 +
 .../api/lib/tasks/delete_old_container_logs.rake   |   2 +-
 services/api/lib/tasks/delete_old_job_logs.rake    |   2 +-
 services/api/lib/whitelist_update.rb               |  15 +-
 services/api/log/.gitkeep                          |   0
 .../arvados/v1/collections_controller_test.rb      |   6 +-
 .../functional/arvados/v1/users_controller_test.rb |   1 +
 .../arvados/v1/virtual_machines_controller_test.rb |   4 +-
 .../test/functional/database_controller_test.rb    |   2 +-
 .../api_client_authorizations_scopes_test.rb       |   6 +-
 .../api/test/integration/crunch_dispatch_test.rb   |   2 +-
 .../api/test/integration/database_reset_test.rb    |   2 -
 services/api/test/integration/errors_test.rb       |   2 +-
 services/api/test/integration/pipeline_test.rb     |   2 +-
 .../api/test/integration/reader_tokens_test.rb     |   2 +-
 services/api/test/integration/websocket_test.rb    | 742 ---------------------
 services/api/test/test_helper.rb                   |  26 +-
 services/api/test/unit/arvados_model_test.rb       |  76 ++-
 .../api/test/unit/create_superuser_token_test.rb   |   2 +-
 services/api/test/unit/job_test.rb                 |  23 +-
 services/api/test/unit/user_test.rb                |  12 +-
 services/api/test/unit/workflow_test.rb            |   8 +-
 services/crunch-run/crunchrun.go                   |   6 +-
 services/fuse/tests/test_tmp_collection.py         |  13 +
 services/keep-web/handler.go                       |  12 +-
 services/keep-web/handler_test.go                  |  29 +
 services/keepproxy/keepproxy.go                    | 118 ++--
 services/keepproxy/keepproxy_test.go               |  59 +-
 services/keepproxy/proxy_client.go                 |  19 +
 tools/keep-exercise/keep-exercise.go               |   3 +-
 90 files changed, 1257 insertions(+), 1747 deletions(-)
 copy apps/workbench/app/views/{jobs => container_requests}/_show_provenance.html.erb (52%)
 create mode 100644 services/api/config/initializers/permit_all_parameters.rb
 create mode 100644 services/api/db/migrate/20170319063406_serialized_columns_accept_null.rb
 delete mode 100644 services/api/lib/eventbus.rb
 delete mode 100644 services/api/log/.gitkeep
 delete mode 100644 services/api/test/integration/websocket_test.rb
 create mode 100644 services/keepproxy/proxy_client.go

       via  be4852ec32e5eeed1af9a62017cfc39ed66ac186 (commit)
       via  ed375727b95e6f1cd56c599a177bbd7979e1cf78 (commit)
       via  70166077b0f77780441df216232390f0d09ad31a (commit)
       via  fb72bf49a923ba3f25defa749efc2d49353414b7 (commit)
       via  d2ebb8fe6bdf4b33ec2aeea314efb5e4df22eebb (commit)
       via  fea486f94bb5cc8f51d9563eafc172b6ba2aec57 (commit)
       via  43d1a5d0b9272f6e57a3d0afd59b956054ff4d7a (commit)
       via  e56ae6aad06c37d5512537047871d7363dd97620 (commit)
       via  e39a7d5704932cbec606e85cdca50aa38a1ed053 (commit)
       via  88a25d414025c64231f977a9383fd6a69cf6246a (commit)
       via  72900c01e197d602e79fda8d306b17fd1e32a3ea (commit)
       via  6a7edde0c5b906c58a7e739f2d0c612c67f63dc5 (commit)
       via  41a7f3914a6ced0fd374bd903470fb4fc91ea5e4 (commit)
       via  f5f5de0ae41e12738a380c422417d5a5e5af7f09 (commit)
       via  e8317521741c3814e824e209f75edf23636e32ff (commit)
       via  318c49002aea966128a9d37ab29e601a104d79bb (commit)
       via  b075d1be1377760f5d8497a29f63c8e416cd5378 (commit)
       via  8c5f2973a5c5f042d1d12aef1c470b37519fd416 (commit)
       via  edfc619e6189c5407d16798c75aaace08a13536d (commit)
       via  90209af8fa35bc99c9821db0c815404d1234ef31 (commit)
       via  88c241d7c4fbfadb951f370bf2706db687adad75 (commit)
       via  137ebf94ff14837c9df773533ea86e821469bda9 (commit)
       via  260e85a9d9cf2c20313bcf2edb63da57bdd3a69f (commit)
       via  30146198f24c70941d95af714e036ff3c451626c (commit)
       via  95e2bdda5afc3ffc6afb2f08ea6d7cba8f8d62f1 (commit)
       via  629557aa041a80f0704b02e7c679b2f01d9c0be2 (commit)
       via  f2f8340b18430738a9527f05e707dd8f03508cc0 (commit)
       via  ad7294edfcc59c3e67548328a88c9e689c3ae2cf (commit)
       via  3ef580c47029ff0fbf959b044f29c183f41cb609 (commit)
       via  4ccbea9ef440a7e4252b0df5e710dcb767831c60 (commit)
       via  c043e133b2646037ed630d571e91dbf77344f855 (commit)
       via  93c92875aaebe5b06f8dbfe2822b59a772895c08 (commit)
       via  9905d124877e5695053cce388d3680c667815de5 (commit)
       via  a93d95d85ea15c7afd70657abf60635c29043c89 (commit)
       via  f4661a02245a35f8d223693a5aecaae87083fb16 (commit)
       via  52c6f13db207030bdbe063665c0dd524007db828 (commit)
       via  0ecea550fde014578e71004360b700cdfeae4909 (commit)
       via  7116da151dc8bfd5ac1a9b016b2ed6e4c35572f7 (commit)
       via  bef5d901f00648e703bb6a3ad58fa481a610ffd7 (commit)
       via  de083a9fec0ca08afda5a9369c6cd32dbdcd0965 (commit)
       via  f5d09a4904e609b5df20edd0194a9f1ade40c28a (commit)
       via  0d5be4fa36006459e1579f087b695904e4f32ee3 (commit)
       via  77d9c05d89dabc9e9e9a15f46cd12c8ad61ed64e (commit)
       via  e1e05845b74ce70712e414830f992ce57d7a8453 (commit)
       via  78ff2a600b29f05f522f8e8818967dac88394fd6 (commit)
       via  7fd4aa96f997a133d31b3df88a8d2f4820c5b881 (commit)
       via  fb7bb4c8f17a49abab40e42b7a0101cac7478d60 (commit)
       via  8d9b12f2a87ffd7183d3a36ca32ee1c7e701a0e2 (commit)
       via  d42ec212e992a83f8e7fc48b59fb3daf58a62787 (commit)
       via  c066a2e6d064a270638baea8f8b0d106f5903e0f (commit)
       via  c36272a5f83ba70980160c4cb205bdfb8a1c660b (commit)
       via  045bace65c2395b6efe9f3d8c93bec74196f58e1 (commit)
       via  7c6852e1b3675b3c1de7e9792373333cb752d40d (commit)
       via  dfd8c4bbd6f126b90d436e9d242cd30e15e70d2e (commit)
       via  de4df7f80c531ab16e59ea36671a8efa9e6ff33d (commit)
       via  126dd750f48654cb3b1a4e53c5b7d337003e112f (commit)
       via  30dbddd3b311653652fa731dbff950aba0712301 (commit)
       via  ab314b9ea3618c71556a6a5f6dd7c769beaf2737 (commit)
       via  390af6a13f7c8974329aecc2f23fbfa81f8e298b (commit)
       via  9090c60b28de593b8bb2ce606a9ab35b62b57608 (commit)
       via  84ad215752fde4291070143411a945fa7a94241c (commit)
       via  c9a361f7fd3b1cf7f4959e9b0292d0f495d82771 (commit)
       via  05d453ec38b10a022ea6db77867957e7115b9b35 (commit)
       via  09dcf71e59907c2eaf4b94918c63da07193481a4 (commit)
       via  099a8c62fcb0905855ddf243a3deddc7398c3c10 (commit)
       via  fe446e10da189d3d3e0ea5f19061389cc2200a08 (commit)
       via  6498c7751cd0305a28494df45a70965ccc6c3737 (commit)
      from  c6452ff3cf71462a46c3d7584696e0948dcce4dc (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 be4852ec32e5eeed1af9a62017cfc39ed66ac186
Merge: c6452ff ed37572
Author: Lucas Di Pentima <lucas at curoverse.com>
Date:   Tue May 2 11:56:56 2017 -0300

    11185: Merge branch 'master' into 11185-wb-disable-reuse

diff --cc apps/workbench/test/controllers/container_requests_controller_test.rb
index 01f740c,6f5a6da..bd2f6be
--- a/apps/workbench/test/controllers/container_requests_controller_test.rb
+++ b/apps/workbench/test/controllers/container_requests_controller_test.rb
@@@ -38,51 -38,43 +38,72 @@@ class ContainerRequestsControllerTest 
      get :show, {id: uuid}, session_for(:active)
      assert_response :success
  
 -   assert_includes @response.body, "href=\"/container_requests/#{uuid}/copy\""
 +   assert_includes @response.body, "action=\"/container_requests/#{uuid}/copy\""
    end
  
 -  test "container request copy" do
 -    completed_cr = api_fixture('container_requests')['completed']
 -    post(:copy,
 -         {
 -           id: completed_cr['uuid']
 -         },
 -         session_for(:active))
 -    assert_response 302
 -    copied_cr = assigns(:object)
 -    assert_not_nil copied_cr
 -    assert_equal 'Uncommitted', copied_cr[:state]
 -    assert_equal "Copy of #{completed_cr['name']}", copied_cr['name']
 -    assert_equal completed_cr['cmd'], copied_cr['cmd']
 -    assert_equal completed_cr['runtime_constraints']['ram'], copied_cr['runtime_constraints'][:ram]
 +  [
 +    ['completed', false, false],
 +    ['completed', true, false],
 +    ['completed-older', false, true],
 +    ['completed-older', true, true],
 +  ].each do |cr_fixture, reuse_enabled, uses_acr|
 +    test "container request #{uses_acr ? '' : 'not'} using arvados-cwl-runner copy #{reuse_enabled ? 'with' : 'without'} reuse enabled" do
 +      completed_cr = api_fixture('container_requests')[cr_fixture]
 +      # Set up post request params
 +      copy_params = {id: completed_cr['uuid']}
 +      if reuse_enabled
 +        copy_params.merge!({use_existing: true})
 +      end
 +      post(:copy, copy_params, session_for(:active))
 +      assert_response 302
 +      copied_cr = assigns(:object)
 +      assert_not_nil copied_cr
 +      assert_equal 'Uncommitted', copied_cr[:state]
 +      assert_equal "Copy of #{completed_cr['name']}", copied_cr['name']
 +      assert_equal completed_cr['cmd'], copied_cr['cmd']
 +      assert_equal completed_cr['runtime_constraints']['ram'], copied_cr['runtime_constraints'][:ram]
 +      if reuse_enabled
 +        assert copied_cr[:use_existing]
 +      else
 +        refute copied_cr[:use_existing]
 +      end
 +      # If the CR's command is arvados-cwl-runner, the appropriate flag should
 +      # be passed to it
 +      if uses_acr
 +        if reuse_enabled
 +          # arvados-cwl-runner's default behavior is to enable reuse
 +          assert_includes copied_cr['command'], 'arvados-cwl-runner'
 +          assert_not_includes copied_cr['command'], '--disable-reuse'
 +        else
 +          assert_includes copied_cr['command'], 'arvados-cwl-runner'
 +          assert_includes copied_cr['command'], '--disable-reuse'
 +          assert_not_includes copied_cr['command'], '--enable-reuse'
 +        end
 +      else
 +        # If no arvados-cwl-runner is being used, the command should be left alone
 +        assert_equal completed_cr['command'], copied_cr['command']
 +      end
 +    end
    end
+ 
+   [
+     ['completed', true],
+     ['running', true],
+     ['queued', true],
+     ['uncommitted', false],
+   ].each do |cr_fixture, should_show|
+     test "provenance tab should #{should_show ? '' : 'not'} be shown on #{cr_fixture} container requests" do
+       cr = api_fixture('container_requests')[cr_fixture]
+       assert_not_nil cr
+       get(:show,
+           {id: cr['uuid']},
+           session_for(:active))
+       assert_response :success
+       if should_show
+         assert_includes @response.body, "href=\"#Provenance\""
+       else
+         assert_not_includes @response.body, "href=\"#Provenance\""
+       end
+     end
+   end
  end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list