[ARVADOS] updated: 1.1.3-75-g2727970
Git user
git at public.curoverse.com
Fri Feb 16 14:05:02 EST 2018
Summary of changes:
services/api/app/controllers/arvados/v1/nodes_controller.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
discards 64213b141eb2399593d9c3a814e820e997454d89 (commit)
via 2727970da3aa2537df0b465bca1f08142208d4d9 (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 (64213b141eb2399593d9c3a814e820e997454d89)
\
N -- N -- N (2727970da3aa2537df0b465bca1f08142208d4d9)
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 2727970da3aa2537df0b465bca1f08142208d4d9
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Fri Feb 16 13:55:24 2018 -0500
13098: 12199: Fix hostname assigned but not saved.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/services/api/app/controllers/arvados/v1/nodes_controller.rb b/services/api/app/controllers/arvados/v1/nodes_controller.rb
index 247d15e..a2b22ea 100644
--- a/services/api/app/controllers/arvados/v1/nodes_controller.rb
+++ b/services/api/app/controllers/arvados/v1/nodes_controller.rb
@@ -39,6 +39,7 @@ class Arvados::V1::NodesController < ApplicationController
}
@object.update_attributes!(attrs_to_update)
@object.assign_slot if params[:assign_slot]
+ @object.save!
show
end
diff --git a/services/api/test/functional/arvados/v1/nodes_controller_test.rb b/services/api/test/functional/arvados/v1/nodes_controller_test.rb
index c198c4c..dc8b3ac 100644
--- a/services/api/test/functional/arvados/v1/nodes_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/nodes_controller_test.rb
@@ -92,6 +92,10 @@ class Arvados::V1::NodesControllerTest < ActionController::TestCase
assert_operator 0, :<, json_response['slot_number']
n = json_response['slot_number']
assert_equal "compute#{n}", json_response['hostname']
+
+ node = Node.where(uuid: json_response['uuid']).first
+ assert_equal n, node.slot_number
+ assert_equal "compute#{n}", node.hostname
end
test "update node and assign slot" do
@@ -102,6 +106,10 @@ class Arvados::V1::NodesControllerTest < ActionController::TestCase
assert_operator 0, :<, json_response['slot_number']
n = json_response['slot_number']
assert_equal "compute#{n}", json_response['hostname']
+
+ node.reload
+ assert_equal n, node.slot_number
+ assert_equal "compute#{n}", node.hostname
end
test "update node and assign slot, don't clobber hostname" do
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list