Add markdown link check (#4287) · sfriberg/opentelemetry-java@559d05a · GitHub
Skip to content

Commit 559d05a

Browse files
authored
Add markdown link check (open-telemetry#4287)
* Add markdown link check * Fix links * Now detects anchor links too! * Reword comment
1 parent e54e7ac commit 559d05a

6 files changed

Lines changed: 47 additions & 18 deletions

File tree

Lines changed: 11 additions & 0 deletions

.github/workflows/main-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,37 @@ jobs:
6868
name: coverage-report
6969
path: all/build/reports/jacoco/test/html
7070

71+
markdown-link-check:
72+
# release branches are excluded because links to external urls can break at any time which
73+
# requires unnecessary release branch maintenance
74+
if: ${{ !startsWith(github.ref_name, 'v') }}
75+
runs-on: ubuntu-latest
76+
steps:
77+
- uses: actions/checkout@v3
78+
79+
- name: Check markdown links
80+
# using retry because of sporadic external site failures
81+
uses: nick-invision/retry@v2.6.0
82+
with:
83+
# timing out has not been a problem
84+
timeout_minutes: 15
85+
# give external site some time to hopefully recover
86+
retry_wait_seconds: 120
87+
max_attempts: 5
88+
command: |
89+
npm install -g markdown-link-check
90+
find . -type f \
91+
-name '*.md' \
92+
-not -path './.github/*' \
93+
-not -path './node_modules/*' \
94+
-print0 \
95+
| xargs -0 -n1 markdown-link-check --config .github/scripts/markdown_link_check_config.json
96+
7197
publish-snapshots:
7298
name: Publish snapshots
7399
if: ${{ github.event_name == 'push' && github.repository == 'open-telemetry/opentelemetry-java' }}
100+
# snapshot publishing is not dependent on markdown-link-check success, because links to external
101+
# urls can break at any time
74102
needs: build
75103
runs-on: ubuntu-20.04
76104
steps:

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ in the `opentelemetry-sdk-extension-autoconfigure` module, where it is actually
745745
Note: In an effort to accelerate our work toward a 1.0.0 release, we have skipped the deprecation phase
746746
on a number of breaking changes. We apologize for the inconvenience this may have caused. We are very
747747
aware that these changes will impact users. If you need assistance in migrating from previous releases,
748-
please open a [discussion topic](https://github.com/opentelemetry/opentelemetry-java/discussions) at
749-
[https://github.com/opentelemetry/opentelemetry-java/discussions](https://github.com/opentelemetry/opentelemetry-java/discussions).
748+
please open a [discussion topic](https://github.com/open-telemetry/opentelemetry-java/discussions) at
749+
[https://github.com/open-telemetry/opentelemetry-java/discussions](https://github.com/open-telemetry/opentelemetry-java/discussions).
750750

751751
Many classes have been made final that previously were not. Please reach out if you have a need to
752752
provide extended functionality, and we can figure out how best to solve your use-case.
@@ -813,8 +813,8 @@ the `http://` or `https://` in front of your endpoint.
813813
Note: In an effort to accelerate our work toward a 1.0.0 release, we have skipped the deprecation phase
814814
on a number of breaking changes. We apologize for the inconvenience this may have caused. We are very
815815
aware that these changes will impact users. If you need assistance in migrating from previous releases,
816-
please open a [discussion topic](https://github.com/opentelemetry/opentelemetry-java/discussions) at
817-
[https://github.com/opentelemetry/opentelemetry-java/discussions](https://github.com/opentelemetry/opentelemetry-java/discussions).
816+
please open a [discussion topic](https://github.com/open-telemetry/opentelemetry-java/discussions) at
817+
[https://github.com/open-telemetry/opentelemetry-java/discussions](https://github.com/open-telemetry/opentelemetry-java/discussions).
818818

819819
#### Breaking Changes
820820

@@ -1385,7 +1385,7 @@ See the `opentelemetry-extension-kotlin` module for details.
13851385
- `DefaultSpan` was removed from the public API. Instead, use `Span.wrap(spanContext)` if you need a non-functional span that propagates the trace context.
13861386
- `DefaultMeter`, `DefaultMeterProvider`, `DefaultTracer` and `DefaultTracerProvider` were removed from the public API. You can access the same functionality with `getDefault()` methods on the `Meter`, `MeterProvider, `Tracer`, and `TracerProvider` classes, respectively.
13871387
- Some functionality from the `Tracer` interface is now available either on the `Span` interface or `Context` interface.
1388-
- The `OpenTelemetry` class is now an interface, with implementations. Methods on this interface have changed their names to reflect this change. For more information, see [OpenTelemetry.java](/api/src/main/java/io/opentelemetry/api/OpenTelemetry.java).
1388+
- The `OpenTelemetry` class is now an interface, with implementations. Methods on this interface have changed their names to reflect this change. For more information, see [OpenTelemetry.java](api/all/src/main/java/io/opentelemetry/api/OpenTelemetry.java).
13891389
- All builder-creation methods have been renamed to `.builder()`.
13901390
- `StatusCanonicalCode` has been renamed to `StatusCode`.
13911391
- `Span.getContext()` has been renamed to `Span.getSpanContext()`.

CONTRIBUTING.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,6 @@ of libraries with the old version number.
163163
To update it, you must fetch the tags, via `git fetch --all --tags` - which should work, even if you
164164
have forked the repo, as long as the trunk repo is set as an upstream remote.
165165

166-
### Updating OTLP proto dependency version
167-
168-
The OTLP proto dependency version is defined [here](proto/build.gradle). To bump the version,
169-
170-
1. Find the latest release
171-
version [here](https://github.com/open-telemetry/opentelemetry-proto/releases/latest)
172-
2. Download the zip source code archive
173-
3. Run `shasum -a 256 ~/path/to/downloaded.zip` to compute its checksum
174-
4. Update `protoVersion` and `protoChecksum` in the build file with the new version and checksum
175-
176166
### Composing builds
177167

178168
Beware that this section is only meant for developers of opentelemetry-java, or closely related

exporters/zipkin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Javadocs][javadoc-image]][javadoc-url]
44

5-
This is an OpenTelemetry exporter that sends span data using the [io.zipkin.reporter2:zipkin-reporter](https://github.com/openzipkin/zipkin-reporter-java") library.
5+
This is an OpenTelemetry exporter that sends span data using the [io.zipkin.reporter2:zipkin-reporter](https://github.com/openzipkin/zipkin-reporter-java) library.
66

77
By default, this POSTs json in [Zipkin format](https://zipkin.io/zipkin-api/#/default/post_spans) to
88
a specified HTTP URL. This could be to a [Zipkin](https://zipkin.io) service, or anything that

sdk-extensions/autoconfigure/README.md

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)