From 3cd9ed1c310eb962f999a06bcbbfb2979e941aa1 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Tue, 20 Dec 2016 10:54:38 -0800 Subject: [PATCH] Show sandcastle URL in phabricator Summary: We are passing a string as diff_id which make conduit call fail ``` $ echo '{"diff_id": "20982117", "name":"click here for sandcastle tests for D20982117", "link":"https://our.intern.facebook.com/intern/sandcastle/1984718793/"}' | arc call-conduit differential.updateunitresults {"error":"ERR-CONDUIT-CORE","errorMessage":"ERR-CONDUIT-CORE: Argument 1 passed to EntDiffPropertiesUpdateMutationBuilder::setDiffNumber() must be an instance of int, string given","response":null} ``` fix it by removing double quotes Closes https://github.com/facebook/rocksdb/pull/1700 Differential Revision: D4350227 Pulled By: IslamAbdelRahman fbshipit-source-id: b4504af --- arcanist_util/config/RocksDBCommonHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arcanist_util/config/RocksDBCommonHelper.php b/arcanist_util/config/RocksDBCommonHelper.php index 00fb52f489..de40cc78c3 100644 --- a/arcanist_util/config/RocksDBCommonHelper.php +++ b/arcanist_util/config/RocksDBCommonHelper.php @@ -21,7 +21,7 @@ function postURL($diffID, $url) { assert(is_numeric($diffID)); assert(strlen($url) > 0); - $cmd = 'echo \'{"diff_id": "' . $diffID . '", ' + $cmd = 'echo \'{"diff_id": ' . $diffID . ', ' . '"name":"click here for sandcastle tests for D' . $diffID . '", ' . '"link":"' . $url . '"}\' | ' . 'arc call-conduit ' @@ -35,7 +35,7 @@ function buildUpdateTestStatusCmd($diffID, $test, $status) { assert(strlen($test) > 0); assert(strlen($status) > 0); - $cmd = 'echo \'{"diff_id": "' . $diffID . '", ' + $cmd = 'echo \'{"diff_id": ' . $diffID . ', ' . '"name":"' . $test . '", ' . '"result":"' . $status . '"}\' | ' . 'arc call-conduit '