You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,11 +12,14 @@
12
12
Use `solves` instead, and assign the PR [milestone](https://github.com/DataDog/dd-trace-java/milestones) to the issue
13
13
- Update the [CODEOWNERS](https://github.com/DataDog/dd-trace-java/blob/master/.github/CODEOWNERS) file on source file addition, migration, or deletion
14
14
- Update [public documentation](https://docs.datadoghq.com/tracing/trace_collection/library_config/java/) with any new configuration flags or behaviors
15
+
- Add your completed PR to the merge queue by commenting `/merge`. You can also:
16
+
- Customize the commit message associated with the merge with `/merge --commit-message "..."`
17
+
- Remove your PR from the merge queue with `/merge -c`
18
+
- Skip all merge queue checks with `/merge -f --reason "reason"`; please use this judiciously, as some checks do not run at the PR-level
19
+
- Get more information in [this doc](https://datadoghq.atlassian.net/wiki/spaces/DEVX/pages/3121612126/MergeQueue)
15
20
16
21
Jira ticket: [PROJ-IDENT]
17
22
18
-
***Note:*****Once your PR is ready to merge, add it to the merge queue by commenting `/merge`.**`/merge -c` cancels the queue request. `/merge -f --reason "reason"` skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see [this doc](https://datadoghq.atlassian.net/wiki/spaces/DEVX/pages/3121612126/MergeQueue).
19
-
20
23
<!--
21
24
# Opening vs Drafting a PR:
22
25
When opening a pull request, please open it as a draft to not auto assign reviewers before you feel the pull request is in a reviewable state.
// In rare cases, the version resolution range silently failed with the maven proxy,
145
-
// retries 3 times at most then suggest to restart the job later.
146
-
var range = system.resolveVersionRange(session, rangeRequest)
147
-
for (i in0..3) {
148
-
if (range.lowestVersion !=null&& range.highestVersion !=null) {
153
+
// retries 3 times immediately, then backs off before suggesting to restart the job later.
154
+
var attemptCount =0
155
+
var range:VersionRangeResult?=null
156
+
var failure:VersionRangeResolutionException?=null
157
+
funattemptResolve(): VersionRangeResult? {
158
+
attemptCount++
159
+
returntry {
160
+
range = system.resolveVersionRange(session, rangeRequest)
161
+
failure =null
162
+
range?.takeIf { it.hasBounds() }
163
+
} catch (e:VersionRangeResolutionException) {
164
+
failure = e
165
+
range = e.result ?: range
166
+
null
167
+
}
168
+
}
169
+
170
+
repeat(4) {
171
+
attemptResolve()?.let { range ->
149
172
return range
150
173
}
151
-
range = system.resolveVersionRange(session, rangeRequest)
152
174
}
153
175
154
-
throwIllegalStateException("The version range resolution failed during report, this is not expected. Advised course of action: Restart the job later.")
0 commit comments