[SCM] ci-tooling packaging branch, master, updated. 35119ae2f382f6d30d2b71a538bab194fb154752
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Thu Aug 20 11:04:52 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=35119ae
The following commit has been merged in the master branch:
commit 35119ae2f382f6d30d2b71a538bab194fb154752
Author: Harald Sitter <sitter at kde.org>
Date: Thu Aug 20 13:04:47 2015 +0200
launchpad now sometimes doesn't respond
this shit is making me so incredibly angry....
retry the bloody crap open to get the bloody build log
---
kci/source_publisher.rb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/kci/source_publisher.rb b/kci/source_publisher.rb
index 36c17f1..5c4db3a 100755
--- a/kci/source_publisher.rb
+++ b/kci/source_publisher.rb
@@ -6,6 +6,7 @@ require 'tempfile'
require_relative 'lib/debian/changelog'
require_relative 'lib/lp'
+require_relative 'lib/retry'
class SourcePublisher
WAITING_STATES = ['Needs building', 'Currently building', 'Uploading build', 'Cancelling build']
@@ -156,7 +157,10 @@ class SourcePublisher
Dir.mkdir(log_dir)
source.getBuilds.each do |build|
- tmpfile = open(build.build_log_url)
+ tmpfile = false
+ Retry.retry_it(times: 2, sleep: 8) do
+ tmpfile = open(build.build_log_url)
+ end
unless tmpfile.is_a?(Tempfile)
fail IOError, 'open() did not return a Tempfile'
end
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list