From patchwork Mon Jun 11 02:03:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqin Liu X-Patchwork-Id: 9180 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 4059323E4F for ; Mon, 11 Jun 2012 02:03:17 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id D523AA18124 for ; Mon, 11 Jun 2012 02:03:16 +0000 (UTC) Received: by obbun3 with SMTP id un3so6902034obb.11 for ; Sun, 10 Jun 2012 19:03:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :content-type:mime-version:x-launchpad-project:x-launchpad-branch :x-launchpad-message-rationale:x-launchpad-branch-revision-number :x-launchpad-notification-type:to:from:subject:message-id:date :reply-to:sender:errors-to:precedence:x-generated-by :x-launchpad-hash:x-gm-message-state; bh=hr2a70yrADdGXWArCj37TtU1bpCVhbAVUOBGnGwjnKg=; b=XgNmdWN64mVvGi/W+GUqdsRL/GlB7fOf01eOBsJ4QMaktUM36k3hlvg0nl7MSimPgf cw6ME6r+WAxD0LV6QdRfR2h2qEmulf5f2JHAqKWWYVlxzNFqAtWdHxeKwbZXJTIObqLY YrGVgQfobsGoNctkt08HGWxlYNFq3SA9uKCN6Gap77bCf+SG0x5jkNarQA2eDTjEduBz +a+lSz3NQHVni5+gZPoVkRJGplCptw45mEcyEi854iLLHvONmECuZ3sd6DGtLAhHRzck bpBs02Qmt8V17fS7dbDRop5BWE7lvM4oe2jl1NQOA/n1dlVo3LOSytkHEwPhFyEc0Uzp ENTg== Received: by 10.50.203.39 with SMTP id kn7mr5491298igc.53.1339380195972; Sun, 10 Jun 2012 19:03:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp71335ibb; Sun, 10 Jun 2012 19:03:14 -0700 (PDT) Received: by 10.180.78.233 with SMTP id e9mr16832977wix.5.1339380194104; Sun, 10 Jun 2012 19:03:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id eu9si13745149wib.29.2012.06.10.19.03.13 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 10 Jun 2012 19:03:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SdtyL-0006f3-J9 for ; Mon, 11 Jun 2012 02:03:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 86E93E00A9 for ; Mon, 11 Jun 2012 02:03:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 320 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 320: increase the number of retry and decrease the wait time for _deploy_tarball_to_board method Message-Id: <20120611020313.27333.86413.launchpad@ackee.canonical.com> Date: Mon, 11 Jun 2012 02:03:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="15376"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 323ca2c7cecb417c11f08b85dabcefcff876f85d X-Gm-Message-State: ALoCoQkBK0I1+Iy/vQ6sT7p+8QWMtiyS8Sw1jcaLBFqa66olORevIikTOFxCwDGJxOxGWiUkH4vX Merge authors: Yongqin Liu (liuyq0307) Related merge proposals: https://code.launchpad.net/~liuyq0307/lava-dispatcher/update_retry_number_and_wait_time/+merge/109296 proposed by: Yongqin Liu (liuyq0307) review: Approve - Michael Hudson-Doyle (mwhudson) ------------------------------------------------------------ revno: 320 [merge] committer: Yongqin Liu branch nick: lava-dispatcher timestamp: Mon 2012-06-11 10:00:56 +0800 message: increase the number of retry and decrease the wait time for _deploy_tarball_to_board method modified: lava_dispatcher/client/master.py --- lp:lava-dispatcher https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk You are subscribed to branch lp:lava-dispatcher. To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription === modified file 'lava_dispatcher/client/master.py' --- lava_dispatcher/client/master.py 2012-06-06 04:10:19 +0000 +++ lava_dispatcher/client/master.py 2012-06-08 06:22:05 +0000 @@ -69,7 +69,7 @@ WGET_DEBUGGING_OPTIONS='-S --progress=dot -e dotbytes=2M' -def _deploy_tarball_to_board(session, tarball_url, dest, timeout=-1, num_retry=2): +def _deploy_tarball_to_board(session, tarball_url, dest, timeout=-1, num_retry=5): decompression_char = '' if tarball_url.endswith('.gz') or tarball_url.endswith('.tgz'): decompression_char = 'z' @@ -94,9 +94,9 @@ if num_retry > 1: # send CTRL C in case wget still hasn't exited. session._client.proc.sendcontrol("c") - session._client.proc.sendline("echo 'retry left %s'" % (num_retry-1)) + session._client.proc.sendline("echo 'retry left %s time(s)'" % (num_retry-1)) # And wait a little while. - sleep_time=5*60 + sleep_time = 60 logging.info("Wait %d second before retry" % sleep_time) time.sleep(sleep_time) num_retry = num_retry - 1