Changeset 47166 in webkit


Ignore:
Timestamp:
Aug 12, 2009 5:03:52 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-08-11 Eric Seidel <eric@webkit.org>

Reviewed by Mark Rowe.

bugzilla-tool : various improvements for running the commit-queue
https://bugs.webkit.org/show_bug.cgi?id=28199

Make run_and_throw_if_fail silence STDERR as well as STDIN.
I also changed run_and_throw_if_fail to use the /dev/null trick instead of .communicate() to avoid ever buffering the output (per abarth's suggestion).
Change a few "print" statements to "log" so they appear in the output.
Changed all string + uses to use string formatting instead (this is less error prone as it will automatically convert non-string objects).
Added a little more logging so that --quiet mode is easier to understand.
Changed clear_attachment_review_flag to clear_attachment_flags and made it clear the commit-queue flag as well.
Added the ability for bugzilla-tool to reject patches from the commit-queue when they fail to compile/apply/etc.
Added _find_select_element_for_flag to make the code for finding flag <select> elements clearer.
Made curl call (downloading patch files) quieter.

  • Scripts/bugzilla-tool:
  • Scripts/modules/bugzilla.py:
  • Scripts/modules/scm.py:

<<<<<<< HEAD:WebKitTools/ChangeLog

Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r47154 r47166  
     12009-08-11  Eric Seidel  <eric@webkit.org>
     2
     3        Reviewed by Mark Rowe.
     4
     5        bugzilla-tool : various improvements for running the commit-queue
     6        https://bugs.webkit.org/show_bug.cgi?id=28199
     7
     8        Make run_and_throw_if_fail silence STDERR as well as STDIN.
     9        I also changed run_and_throw_if_fail to use the /dev/null trick instead of .communicate() to avoid ever buffering the output (per abarth's suggestion).
     10        Change a few "print" statements to "log" so they appear in the output.
     11        Changed all string + uses to use string formatting instead (this is less error prone as it will automatically convert non-string objects).
     12        Added a little more logging so that --quiet mode is easier to understand.
     13        Changed clear_attachment_review_flag to clear_attachment_flags and made it clear the commit-queue flag as well.
     14        Added the ability for bugzilla-tool to reject patches from the commit-queue when they fail to compile/apply/etc.
     15        Added _find_select_element_for_flag to make the code for finding flag <select> elements clearer.
     16        Made curl call (downloading patch files) quieter.
     17
     18        * Scripts/bugzilla-tool:
     19        * Scripts/modules/bugzilla.py:
     20        * Scripts/modules/scm.py:
     21
     22<<<<<<< HEAD:WebKitTools/ChangeLog
    1232009-08-12  Peter Kasting  <pkasting@google.com>
    224
     
    1234        * Scripts/svn-create-patch:
    1335        * Scripts/update-webkit:
     36=======
     372009-08-12  Eric Seidel  <eric@webkit.org>
     38
     39        Reviewed by Mark Rowe.
     40
     41        run-webkit-tests needs a --exit-after-failures=N option
     42        https://bugs.webkit.org/show_bug.cgi?id=28192
     43
     44        Added the option and deployed it to bugzilla-tool.
     45
     46        * Scripts/bugzilla-tool:
     47        * Scripts/run-webkit-tests:
     48>>>>>>> 2009-08-12  Eric Seidel  <eric@webkit.org>:WebKitTools/ChangeLog
    1449
    15502009-08-12  Kevin Ollivier  <kevino@theolliviers.com>
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r47121 r47166  
    276276         if quiet:
    277277             args.append("--quiet")
     278         # When landing patches we almost always want to fail as fast as possible.
     279         args.append("--exit-after-n-failures=1")
    278280         cls.run_and_throw_if_fail(args)
    279281
  • trunk/WebKitTools/Scripts/run-webkit-tests

    r47109 r47166  
    110110my $addPlatformExceptions = 0;
    111111my $complexText = 0;
     112my $exitAfterNFailures = 0;
    112113my $guardMalloc = '';
    113114my $httpdPort = 8000;
     
    194195  -c|--configuration config       Set DumpRenderTree build configuration
    195196  -g|--guard-malloc               Enable malloc guard
     197  --exit-after-n-failures N       Exit after the first N failures instead of running all tests
    196198  --help                          Show this help message
    197199  --[no-]http                     Run (or do not run) http tests (default: $httpDefault)
     
    231233my $getOptionsResult = GetOptions(
    232234    'complex-text' => \$complexText,
     235    'exit-after-n-failures=i' => \$exitAfterNFailures,
    233236    'guard-malloc|g' => \$guardMalloc,
    234237    'help' => \$showHelp,
     
    992995
    993996    countFinishedTest($test, $base, $result, $isText);
     997
     998    my $failureCount = $count - $counts{match}; # Includes new tests, timeouts, crashes, etc.
     999    if ($exitAfterNFailures && $failureCount >= $exitAfterNFailures) {
     1000        print "\nExiting early after $failureCount failures.  $count tests run.";
     1001        closeDumpTool();
     1002        last;
     1003    }
    9941004}
    9951005printf "\n%0.2fs total testing time\n", (time - $overallStartTime) . "";
Note: See TracChangeset for help on using the changeset viewer.