You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Jojy Varghese <jo...@mesosphere.io> on 2016/01/26 03:19:25 UTC

Review Request 42773: Added utility function to compute SHA512 digest.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/
-----------------------------------------------------------

Review request for mesos.


Repository: mesos


Description
-------

Added utility function to compute SHA512 digest.


Diffs
-----

  src/common/command_utils.hpp PRE-CREATION 
  src/common/command_utils.cpp PRE-CREATION 
  src/tests/common/command_utils_tests.cpp PRE-CREATION 

Diff: https://reviews.apache.org/r/42773/diff/


Testing
-------

make check.


Thanks,

Jojy Varghese


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/#review116786
-----------------------------------------------------------


Fix it, then Ship it!





src/common/command_utils.hpp (line 65)
<https://reviews.apache.org/r/42773/#comment177876>

    can you s/sha512/shasum/ and add an algorithm parameter (type string).
    
    we can probably create sha512 method still, but will invoke the underlying shasum method.



src/common/command_utils.hpp (lines 65 - 66)
<https://reviews.apache.org/r/42773/#comment177878>

    s/filePath/file/
    
    I mentioned this in a couple of reviews. Please don't forget next time:)



src/common/command_utils.cpp (line 20)
<https://reviews.apache.org/r/42773/#comment177879>

    Why do you need this?



src/common/command_utils.cpp (lines 30 - 31)
<https://reviews.apache.org/r/42773/#comment177880>

    Is it used?



src/common/command_utils.cpp (line 173)
<https://reviews.apache.org/r/42773/#comment177885>

    please make sure the parameter name is consistent with that in the header!



src/common/command_utils.cpp (line 177)
<https://reviews.apache.org/r/42773/#comment177882>

    First letter capitalized



src/common/command_utils.cpp (line 178)
<https://reviews.apache.org/r/42773/#comment177881>

    First letter capitalized.



src/common/command_utils.cpp (line 187)
<https://reviews.apache.org/r/42773/#comment177883>

    s/output//
    
    from shasum command



src/common/command_utils.cpp (lines 193 - 194)
<https://reviews.apache.org/r/42773/#comment177884>

    Ditto.



src/tests/common/command_utils_tests.cpp (line 226)
<https://reviews.apache.org/r/42773/#comment177886>

    s/DigestTest/ShasumTest/



src/tests/common/command_utils_tests.cpp (line 231)
<https://reviews.apache.org/r/42773/#comment177887>

    do you need this temp var?



src/tests/common/command_utils_tests.cpp (line 237)
<https://reviews.apache.org/r/42773/#comment177888>

    s/sha512Future/sha512/



src/tests/common/command_utils_tests.cpp (lines 242 - 243)
<https://reviews.apache.org/r/42773/#comment177889>

    Please don't split this string. You can use
    ```
    // NOLINT(whitespace/line_length)
    ```
    
    in the end to silence style checker.


- Jie Yu


On Jan. 27, 2016, 10:29 p.m., Jojy Varghese wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42773/
> -----------------------------------------------------------
> 
> (Updated Jan. 27, 2016, 10:29 p.m.)
> 
> 
> Review request for mesos.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added utility function to compute SHA512 digest.
> 
> 
> Diffs
> -----
> 
>   src/common/command_utils.hpp PRE-CREATION 
>   src/common/command_utils.cpp PRE-CREATION 
>   src/tests/common/command_utils_tests.cpp PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/42773/diff/
> 
> 
> Testing
> -------
> 
> make check.
> 
> 
> Thanks,
> 
> Jojy Varghese
> 
>


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/#review116820
-----------------------------------------------------------




src/common/command_utils.hpp (line 68)
<https://reviews.apache.org/r/42773/#comment177925>

    s/alg/algorithm/
    
    (e.g., 512)



src/common/command_utils.hpp (line 71)
<https://reviews.apache.org/r/42773/#comment177924>

    s/alg/algorithm/



src/common/command_utils.cpp (line 169)
<https://reviews.apache.org/r/42773/#comment177926>

    hum, can you move the body of this method to shasum and call shasum in this function?
    
    ```
    Future<string> sha512(const Path& input)
    {
      return shasum("512", input);
    }
    ```


- Jie Yu


On Jan. 28, 2016, 6:44 p.m., Jojy Varghese wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42773/
> -----------------------------------------------------------
> 
> (Updated Jan. 28, 2016, 6:44 p.m.)
> 
> 
> Review request for mesos.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added utility function to compute SHA512 digest.
> 
> 
> Diffs
> -----
> 
>   src/common/command_utils.hpp bfab34571dd37980d9f99585e506eb015b499e28 
>   src/common/command_utils.cpp e9d782127f948e165f55d03a2b1bf47946cc7f4e 
>   src/tests/common/command_utils_tests.cpp 938f3995aacf74bac28ae11040de292aa328f1e5 
> 
> Diff: https://reviews.apache.org/r/42773/diff/
> 
> 
> Testing
> -------
> 
> make check.
> 
> 
> Thanks,
> 
> Jojy Varghese
> 
>


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jie Yu <yu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/#review116863
-----------------------------------------------------------


Fix it, then Ship it!




I'll fix the remaining issue for you.


src/common/command_utils.cpp (lines 178 - 179)
<https://reviews.apache.org/r/42773/#comment177964>

    I would put these two in one line.



src/common/command_utils.cpp (lines 191 - 197)
<https://reviews.apache.org/r/42773/#comment177963>

    I would remove this check for now (will keep the TODO here).


- Jie Yu


On Jan. 29, 2016, 12:54 a.m., Jojy Varghese wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/42773/
> -----------------------------------------------------------
> 
> (Updated Jan. 29, 2016, 12:54 a.m.)
> 
> 
> Review request for mesos.
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> Added utility function to compute SHA512 digest.
> 
> 
> Diffs
> -----
> 
>   src/common/command_utils.hpp bfab34571dd37980d9f99585e506eb015b499e28 
>   src/common/command_utils.cpp e9d782127f948e165f55d03a2b1bf47946cc7f4e 
>   src/tests/common/command_utils_tests.cpp 938f3995aacf74bac28ae11040de292aa328f1e5 
> 
> Diff: https://reviews.apache.org/r/42773/diff/
> 
> 
> Testing
> -------
> 
> make check.
> 
> 
> Thanks,
> 
> Jojy Varghese
> 
>


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jojy Varghese <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/
-----------------------------------------------------------

(Updated Jan. 29, 2016, 2:03 a.m.)


Review request for mesos.


Bugs: MESOS-4454
    https://issues.apache.org/jira/browse/MESOS-4454


Repository: mesos


Description
-------

Added utility function to compute SHA512 digest.


Diffs
-----

  src/common/command_utils.hpp bfab34571dd37980d9f99585e506eb015b499e28 
  src/common/command_utils.cpp e9d782127f948e165f55d03a2b1bf47946cc7f4e 
  src/tests/common/command_utils_tests.cpp 938f3995aacf74bac28ae11040de292aa328f1e5 

Diff: https://reviews.apache.org/r/42773/diff/


Testing
-------

make check.


Thanks,

Jojy Varghese


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jojy Varghese <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/
-----------------------------------------------------------

(Updated Jan. 29, 2016, 12:54 a.m.)


Review request for mesos.


Changes
-------

review addressed.


Repository: mesos


Description
-------

Added utility function to compute SHA512 digest.


Diffs (updated)
-----

  src/common/command_utils.hpp bfab34571dd37980d9f99585e506eb015b499e28 
  src/common/command_utils.cpp e9d782127f948e165f55d03a2b1bf47946cc7f4e 
  src/tests/common/command_utils_tests.cpp 938f3995aacf74bac28ae11040de292aa328f1e5 

Diff: https://reviews.apache.org/r/42773/diff/


Testing
-------

make check.


Thanks,

Jojy Varghese


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jojy Varghese <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/
-----------------------------------------------------------

(Updated Jan. 28, 2016, 6:44 p.m.)


Review request for mesos.


Changes
-------

addressed review comments


Repository: mesos


Description
-------

Added utility function to compute SHA512 digest.


Diffs (updated)
-----

  src/common/command_utils.hpp bfab34571dd37980d9f99585e506eb015b499e28 
  src/common/command_utils.cpp e9d782127f948e165f55d03a2b1bf47946cc7f4e 
  src/tests/common/command_utils_tests.cpp 938f3995aacf74bac28ae11040de292aa328f1e5 

Diff: https://reviews.apache.org/r/42773/diff/


Testing
-------

make check.


Thanks,

Jojy Varghese


Re: Review Request 42773: Added utility function to compute SHA512 digest.

Posted by Jojy Varghese <jo...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42773/
-----------------------------------------------------------

(Updated Jan. 27, 2016, 10:29 p.m.)


Review request for mesos.


Changes
-------

simplified the method.


Repository: mesos


Description
-------

Added utility function to compute SHA512 digest.


Diffs (updated)
-----

  src/common/command_utils.hpp PRE-CREATION 
  src/common/command_utils.cpp PRE-CREATION 
  src/tests/common/command_utils_tests.cpp PRE-CREATION 

Diff: https://reviews.apache.org/r/42773/diff/


Testing
-------

make check.


Thanks,

Jojy Varghese