Changeset 95363 in webkit


Ignore:
Timestamp:
Sep 16, 2011 9:15:13 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

update-webkit-chromium should retry the gclient call if it fails once
https://bugs.webkit.org/show_bug.cgi?id=68252

Patch by Tom Zakrajsek <tomz@codeaurora.org> on 2011-09-16
Reviewed by Adam Barth.

  • Scripts/update-webkit-chromium:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r95330 r95363  
     12011-09-16  Tom Zakrajsek  <tomz@codeaurora.org>
     2
     3        update-webkit-chromium should retry the gclient call if it fails once
     4        https://bugs.webkit.org/show_bug.cgi?id=68252
     5
     6        Reviewed by Adam Barth.
     7
     8        * Scripts/update-webkit-chromium:
     9
    1102011-09-16  Rob Buis  <rbuis@rim.com>
    211
  • trunk/Tools/Scripts/update-webkit-chromium

    r93939 r95363  
    7878push @gclientArgs, "--delete_unversioned_trees" if $force;
    7979push @gclientArgs, "--deps=unix,android" if isChromiumAndroid();
    80 system(@gclientArgs) == 0 or die $!;
     80
     81my $cmd = join(" ",@gclientArgs);
     82my $max_attempts = 3;
     83my $rc = -1;
     84
     85# The following will call glient up to $max_attempts times before
     86# it gives up and fails.  We need this because glcient can fail
     87# for several reasons, some of which are transient (flakiness).
     88
     89for (1 .. $max_attempts) {
     90    $rc = system($cmd);
     91    print "Re-trying '" . $cmd . "'\n" if $rc != 0;
     92    last if $rc == 0;
     93}
     94
     95die "Error: '$cmd' failed $max_attempts tries and returned " . $rc if ($rc);
Note: See TracChangeset for help on using the changeset viewer.