dependabot-common 0.95.54 → 0.95.55

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13741bfbc94d2b4fe61be336631f4f3626003a37475125815df78a303d83c853
4
- data.tar.gz: 4a30039376a2c846e5c77bc9a23a4a47b321b625f77a271a8b3cb6c60c10823a
3
+ metadata.gz: 1719ff6cde17a1b89f4137d99087062afc7cac00142d7cead53d99233d3d3aed
4
+ data.tar.gz: 66dff3999fabbd62874b66c782882bc3d2b4822ed4d324fbc17d03d3de9d8733
5
5
  SHA512:
6
- metadata.gz: bcba67b17b29c226d81c6c9e9b642aed69c5796b72582e3775a0db2dde78c452e6f69ef90b5e29ded39973740d7e2dea9de488650f69d1f327ccaeeea613dbb6
7
- data.tar.gz: dfb0ce2395ce3b3f24be27fd909669d97513d479d578a54d6c832168b98d6f51537ead1587c4d6f7ca0b241b32a08049c89b47bc13843a01273cbd63cd7b1ed4
6
+ metadata.gz: 4a748ceff58499242fa7f1ba7d1d8a06817b3dcd55afa77a4ecbbf59dc9e8a252be36be2563bae2635e8f3e01e9cc7ce763fbf8ad78e01c8b65f663291b3a6e3
7
+ data.tar.gz: c9991d1b53df730114c65bd682cb01ff556b301cfce4ef7c93c4711637b9c7af43718ccab2c581db14dcc1a37b4ed4b31065e28fce007ad6f325f4f73719ab01
@@ -114,13 +114,25 @@ module Dependabot
114
114
  options[:signature] = commit_signature(tree, options[:author])
115
115
  end
116
116
 
117
- github_client_for_source.create_commit(
118
- source.repo,
119
- commit_message,
120
- tree.sha,
121
- base_commit,
122
- options
123
- )
117
+ begin
118
+ github_client_for_source.create_commit(
119
+ source.repo,
120
+ commit_message,
121
+ tree.sha,
122
+ base_commit,
123
+ options
124
+ )
125
+ rescue Octokit::UnprocessableEntity => error
126
+ raise unless error.message == "Tree SHA does not exist"
127
+
128
+ # Sometimes a race condition on GitHub's side means we get an error
129
+ # here. No harm in retrying if we do.
130
+ # NOTE: Error here might be that the tree got deleted somehow. If it's
131
+ # that we'll need to change this retry to recreate the tree, too.
132
+ retry_count ||= 0
133
+ retry_count += 1
134
+ retry_count > 3 ? raise : retry
135
+ end
124
136
  end
125
137
 
126
138
  def create_tree
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.95.54"
4
+ VERSION = "0.95.55"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.95.54
4
+ version: 0.95.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-21 00:00:00.000000000 Z
11
+ date: 2019-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-ecr