--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
Sorry about that. I'd be fine with changing the defaults - maybe let's see what other people think, and in case of no comments you can just remind me or send a CL for that.I'll be changing some things buildbot-side, which will also make it easier to pass a "quiet" option on the bots.
On Wed, Oct 30, 2013 at 2:14 PM, Paweł Hajdan, Jr. <phajd...@chromium.org> wrote:
Sorry about that. I'd be fine with changing the defaults - maybe let's see what other people think, and in case of no comments you can just remind me or send a CL for that.I'll be changing some things buildbot-side, which will also make it easier to pass a "quiet" option on the bots.Shouldn't we change the tests to not print so much instead of suppressing stdout by default? Is stderr suppressed too?
Continuing from the discussion on https://codereview.chromium.org/61363002
On 2013/11/06 19:47:19, Paweł Hajdan Jr. wrote:
> On 2013/11/06 17:39:55, sadrul wrote:
> > It would hurt the bots even less to add a custom flag to suppress the
> > stdout/stderr. We should not require developers to remember all the flags they
> > need to use. The bots can remember that with much more ease.
>
> Sadrul, I'm happy to continue the discussion off-Rietveld. Short response for
> now: arguably there are cases when running locally you want to run the tests as
> fast as possible (and with retries for stability). When you are debugging,
> passing one flag is reasonable IMHO. Assumption that developers are always
> debugging is just not true I think, unless there is evidence (can be just many
> people agreeing with that).
This is precisely my point. Developers are usually not always
debugging the tests. Which is exactly why the developers will forget
this special flag they have to use, and waste time looking for it when
they do have to debug. It's easy for the bots, on the other hand, to
always use the flag to suppress the output.
> Feel free to do a poll or something -
Have we always made such decisions based on polls/votes?
--
This is more or less what chrome_frame_tests.exe does. It has been very useful.
On Thu, Nov 7, 2013 at 12:04 PM, Sadrul Chowdhury <sad...@chromium.org> wrote:
Continuing from the discussion on https://codereview.chromium.org/61363002
On 2013/11/06 19:47:19, Paweł Hajdan Jr. wrote:
> On 2013/11/06 17:39:55, sadrul wrote:
> > It would hurt the bots even less to add a custom flag to suppress the
> > stdout/stderr. We should not require developers to remember all the flags they
> > need to use. The bots can remember that with much more ease.
>
> Sadrul, I'm happy to continue the discussion off-Rietveld. Short response for
> now: arguably there are cases when running locally you want to run the tests as
> fast as possible (and with retries for stability). When you are debugging,
> passing one flag is reasonable IMHO. Assumption that developers are always
> debugging is just not true I think, unless there is evidence (can be just many
> people agreeing with that).
This is precisely my point. Developers are usually not always
debugging the tests. Which is exactly why the developers will forget
this special flag they have to use, and waste time looking for it when
they do have to debug. It's easy for the bots, on the other hand, to
always use the flag to suppress the output.I'm open to reversing the defaults given enough data. For now I added an option so that it's possible to debug the tests easily with the new launcher. FWIW the option is --test-launcher-developer-mode . To anyone participating in the discussion: please sync your tree, check it out (--brave-new-test-launcher --test-launcher-developer-mode) and let me know what you think.
Note that there are two types of test runs developers do:1. Run tests (all or subset) as quickly and reliably as possible to validate a local change to the code. Given that parallelization can speed this up several times depending on the number of CPU cores, and test retries help with reliability, both are very important for this scenario.2. Debug specific failing tests (sometimes new tests being added). Here the priority is ease of debugging (including printf-based debugging).Furthermore, bots do exactly scenario (1) above.The question now is - what do developers do more often: (1) or (2)? Should we be doing (1) locally more often now that it's faster and more stable? Feedback loops are obviously faster locally than with trybots.> Feel free to do a poll or something -
Have we always made such decisions based on polls/votes?I've seen a couple of polls on blink-dev. Here the question is: how do you get the data which scenario (1 or 2) do developers do more often? How do you back with data claims whether majority of developers knows or wants something or not? That can also be part of the discussion, but so far I don't see a widespread criticism of the defaults.Please note I'm aware of different workflows and styles. Hey, I'm using version control workflow that is not documented anywhere and officially not supported. I'd like to support whatever people are doing that helps them be productive (or even is essential to productivity) that fits well with other parts of testing infrastructure. Defaults are more tricky - while the current ones make sense to me, I can be convinced otherwise.Paweł
--
I'm equally fine with automatically switching to single-process-tests
if supplying a filter that identifies one test.
Could we use base::debug::BeingDebugged() to check if the test binary is being run in the debugger, and if so, do not shard the tests?