Re: Review Request 51794: Updated `ROOT_CGROUPS_CFS_Big_Quota` to test a CFS quota with decimal.

2016-09-13 Thread Qian Zhang


> On Sept. 13, 2016, 11:01 a.m., Qian Zhang wrote:
> > src/tests/containerizer/cgroups_tests.cpp, lines 517-523
> > 
> >
> > I think we may not need these code anymore since `100.5` has already 
> > covered both `big` and `decimal`.
> 
> haosdent huang wrote:
> I think it still make sense that we test `100` and `100.5` separately. If 
> we only have `100.5` and we failed at this test case, we not sure it failed 
> because of BigQuota or Decimal. But if we test `100` first, we could verify 
> whether BigQuota works or not.

Agree, then I think we may need to handle them as two separate tests: one for 
big quota (`ROOT_CGROUPS_CFS_Big_Quota`), another one for decimal quota 
(`ROOT_CGROUPS_CFS_Decimal_Quota`) which seems more clear to me.


- Qian


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


On Sept. 13, 2016, 4:22 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51794/
> ---
> 
> (Updated Sept. 13, 2016, 4:22 p.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Qian Zhang.
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Test writing CFS quota with decimal and rename
> `ROOT_CGROUPS_CFS_Big_Quota` to `ROOT_CGROUPS_CFS_BigQuotaDecimal`.
> 
> 
> Diffs
> -
> 
>   src/tests/containerizer/cgroups_tests.cpp 
> 821c7860ab424bcfadbf597902e046bce9ba3044 
> 
> Diff: https://reviews.apache.org/r/51794/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 51794: Updated `ROOT_CGROUPS_CFS_Big_Quota` to test a CFS quota with decimal.

2016-09-13 Thread haosdent huang

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

(Updated Sept. 13, 2016, 8:22 a.m.)


Review request for mesos, Gilbert Song, Jie Yu, and Qian Zhang.


Changes
---

Rebase.


Repository: mesos


Description
---

Test writing CFS quota with decimal and rename
`ROOT_CGROUPS_CFS_Big_Quota` to `ROOT_CGROUPS_CFS_BigQuotaDecimal`.


Diffs (updated)
-

  src/tests/containerizer/cgroups_tests.cpp 
821c7860ab424bcfadbf597902e046bce9ba3044 

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


Testing
---


Thanks,

haosdent huang



Re: Review Request 51794: Updated `ROOT_CGROUPS_CFS_Big_Quota` to test a CFS quota with decimal.

2016-09-13 Thread haosdent huang


> On Sept. 13, 2016, 3:01 a.m., Qian Zhang wrote:
> > src/tests/containerizer/cgroups_tests.cpp, lines 517-523
> > 
> >
> > I think we may not need these code anymore since `100.5` has already 
> > covered both `big` and `decimal`.

I think it still make sense that we test `100` and `100.5` separately. If we 
only have `100.5` and we failed at this test case, we not sure it failed 
because of BigQuota or Decimal. But if we test `100` first, we could verify 
whether BigQuota works or not.


- haosdent


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


On Sept. 13, 2016, 3:17 a.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51794/
> ---
> 
> (Updated Sept. 13, 2016, 3:17 a.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Qian Zhang.
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Test writing CFS quota with decimal and rename
> `ROOT_CGROUPS_CFS_Big_Quota` to `ROOT_CGROUPS_CFS_BigQuotaDecimal`.
> 
> 
> Diffs
> -
> 
>   src/tests/containerizer/cgroups_tests.cpp 
> 821c7860ab424bcfadbf597902e046bce9ba3044 
> 
> Diff: https://reviews.apache.org/r/51794/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> haosdent huang
> 
>



Re: Review Request 51794: Updated `ROOT_CGROUPS_CFS_Big_Quota` to test a CFS quota with decimal.

2016-09-12 Thread haosdent huang

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

(Updated Sept. 13, 2016, 3:17 a.m.)


Review request for mesos, Gilbert Song, Jie Yu, and Qian Zhang.


Changes
---

Address @qian's comment.


Repository: mesos


Description (updated)
---

Test writing CFS quota with decimal and rename
`ROOT_CGROUPS_CFS_Big_Quota` to `ROOT_CGROUPS_CFS_BigQuotaDecimal`.


Diffs (updated)
-

  src/tests/containerizer/cgroups_tests.cpp 
821c7860ab424bcfadbf597902e046bce9ba3044 

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


Testing
---


Thanks,

haosdent huang



Re: Review Request 51794: Updated `ROOT_CGROUPS_CFS_Big_Quota` to test a CFS quota with decimal.

2016-09-12 Thread Qian Zhang

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




src/tests/containerizer/cgroups_tests.cpp (line 512)


Suggest to rename the test from `ROOT_CGROUPS_CFS_Big_Quota` to 
`ROOT_CGROUPS_CFS_Big_Quota_Decimal`



src/tests/containerizer/cgroups_tests.cpp (lines 517 - 523)


I think we may not need these code anymore since `100.5` has already 
covered both `big` and `decimal`.


- Qian Zhang


On Sept. 12, 2016, 12:46 p.m., haosdent huang wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51794/
> ---
> 
> (Updated Sept. 12, 2016, 12:46 p.m.)
> 
> 
> Review request for mesos, Gilbert Song, Jie Yu, and Qian Zhang.
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Updated `ROOT_CGROUPS_CFS_Big_Quota` to test a CFS quota with decimal.
> 
> 
> Diffs
> -
> 
>   src/tests/containerizer/cgroups_tests.cpp 
> 821c7860ab424bcfadbf597902e046bce9ba3044 
> 
> Diff: https://reviews.apache.org/r/51794/diff/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> haosdent huang
> 
>