|
1 | | -# This file controls the release system. |
| 1 | +# This file controls the toys-release gem. |
2 | 2 |
|
3 | 3 | # The repo organization and name. |
4 | 4 | repo: open-telemetry/opentelemetry-ruby-contrib |
5 | | -# The main branch name. Releases must happen on this branch. |
6 | | -main_branch: main |
| 5 | + |
7 | 6 | # Time in seconds for release scripts to wait for CI to complete. |
8 | 7 | required_checks_timeout: 1200 |
| 8 | + |
| 9 | +# Regex matching which GitHub checks are required to pass before a release |
| 10 | +# can occur. |
9 | 11 | required_checks: "^(ci|CI).*" |
| 12 | + |
10 | 13 | # Git user attached to commits for release pull requests. |
11 | 14 | git_user_name: otelbot |
12 | 15 | |
13 | 16 |
|
14 | | -# Control the conventional commit linter. |
15 | | -commit_lint: |
16 | | - # Whether conventional commit errors should cause a GitHub check fail. |
17 | | - fail_checks: true |
18 | | - # Merge types allowed by the repo. |
19 | | - merge: squash |
20 | | - |
21 | | -# List of all releasable gems. Each gem should include: |
| 17 | +# List of all releaseable gems. Each gem should include: |
22 | 18 | # * name: The name of the gem. (Required.) |
23 | | -# * directory: Gem directory relative to the repo root. (Required.) |
| 19 | +# * directory: Gem directory relative to the repo root. |
| 20 | +# (Required unless the gem name matches the directory name exactly. This |
| 21 | +# means it's always required in this repo because every gem directory is in |
| 22 | +# a subdirectory of "instrumentation", "helpers", "propagator", etc..) |
24 | 23 | # * version_rb_path: Path to version.rb relative to the gem directory. |
25 | 24 | # (Required only if it does not match the gem name. e.g. The gem |
26 | | -# "opentelemetry-sdk" would default to lib/opentelemetry/sdk/version.rb) |
| 25 | +# "opentelemetry-helpers-sql" would default to |
| 26 | +# "lib/opentelemetry/helpers/sql/version.rb", so this field is required |
| 27 | +# only if the actual path is different.) |
27 | 28 | # * version_constant: The fully-qualified version constant as an array. |
28 | | -# (Required because the OpenTelemetry namespace does not match the gem |
29 | | -# name "opentelemetry".) |
30 | | -# * changelog_path: Path to CHANGELOG.md relative to the gem directory. |
31 | | -# (Required only if it is not in the expected location.) |
| 29 | +# (Required if the actual constant name, including its capitalization, |
| 30 | +# differs from what would be inferred from the gem name. This means it's |
| 31 | +# always required in this repo, because the capitalization of the |
| 32 | +# "OpenTelemetry" namespace does not match the gem name "opentelemetry".) |
| 33 | +# * changelog_path: Path to the changelog relative to the gem directory. |
| 34 | +# (Required only if it is not in the expected location, which is the file |
| 35 | +# "CHANGELOG.md" at the root of the gem directory.) |
32 | 36 | gems: |
33 | 37 | - name: opentelemetry-instrumentation-factory_bot |
34 | 38 | directory: instrumentation/factory_bot |
|
43 | 47 | version_constant: [OpenTelemetry, Instrumentation, ActiveStorage, VERSION] |
44 | 48 |
|
45 | 49 | - name: opentelemetry-helpers-sql |
46 | | - # we append a slash here to avoid the naive substring start_with? directory-matching condition in underlying toys gem |
47 | | - # which causes helpers/sql to incorrectly match when changes occur in helpers/sql-processor or helpers/sql-obfuscation |
48 | | - # https://github.com/dazuma/toys/blob/17ed449da8299f272b834470ff6b279a59e8070b/.toys/release/.lib/release_utils.rb#L436 |
49 | | - # https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1727 |
50 | | - directory: helpers/sql/ |
| 50 | + directory: helpers/sql |
51 | 51 | version_constant: [OpenTelemetry, Helpers, Sql, VERSION] |
52 | 52 |
|
53 | 53 | - name: opentelemetry-instrumentation-gruf |
@@ -141,11 +141,7 @@ gems: |
141 | 141 | version_constant: [OpenTelemetry, Instrumentation, LMDB, VERSION] |
142 | 142 |
|
143 | 143 | - name: opentelemetry-instrumentation-http |
144 | | - # we append a slash here to avoid the naive substring start_with? directory-matching condition in underlying toys gem |
145 | | - # which causes instrumentation/http to incorrectly match when changes occur in instrumentation/httpx |
146 | | - # https://github.com/dazuma/toys/blob/17ed449da8299f272b834470ff6b279a59e8070b/.toys/release/.lib/release_utils.rb#L436 |
147 | | - # https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues/1512 |
148 | | - directory: instrumentation/http/ |
| 144 | + directory: instrumentation/http |
149 | 145 | version_constant: [OpenTelemetry, Instrumentation, HTTP, VERSION] |
150 | 146 |
|
151 | 147 | - name: opentelemetry-instrumentation-graphql |
@@ -275,22 +271,18 @@ gems: |
275 | 271 |
|
276 | 272 | - name: opentelemetry-resource-detector-aws |
277 | 273 | directory: resources/aws |
278 | | - version_rb_path: lib/opentelemetry/resource/detector/aws/version.rb |
279 | 274 | version_constant: [OpenTelemetry, Resource, Detector, AWS, VERSION] |
280 | 275 |
|
281 | 276 | - name: opentelemetry-resource-detector-azure |
282 | 277 | directory: resources/azure |
283 | | - version_rb_path: lib/opentelemetry/resource/detector/azure/version.rb |
284 | 278 | version_constant: [OpenTelemetry, Resource, Detector, Azure, VERSION] |
285 | 279 |
|
286 | 280 | - name: opentelemetry-resource-detector-container |
287 | 281 | directory: resources/container |
288 | | - version_rb_path: lib/opentelemetry/resource/detector/container/version.rb |
289 | 282 | version_constant: [OpenTelemetry, Resource, Detector, Container, VERSION] |
290 | 283 |
|
291 | 284 | - name: opentelemetry-resource-detector-google_cloud_platform |
292 | 285 | directory: resources/google_cloud_platform |
293 | | - version_rb_path: lib/opentelemetry/resource/detector/google_cloud_platform/version.rb |
294 | 286 | version_constant: [OpenTelemetry, Resource, Detector, GoogleCloudPlatform, VERSION] |
295 | 287 |
|
296 | 288 | - name: opentelemetry-sampler-xray |
|
0 commit comments