Skip to content

Commit 13229cd

Browse files
authored
Merge branch 'main' into utpilla/Update-OTLP-Exporter-Trace-Pipeline
2 parents 42f86ea + ec9fd62 commit 13229cd

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@ jobs:
110110
- uses: dtolnay/rust-toolchain@1.65.0
111111
- name: Patch dependencies versions # some dependencies bump MSRV without major version bump
112112
run: bash ./scripts/patch_dependencies.sh
113-
- name: Run tests
114-
run: cargo --version &&
115-
cargo test --manifest-path=opentelemetry/Cargo.toml --features trace,metrics,testing &&
116-
cargo test --manifest-path=opentelemetry-zipkin/Cargo.toml
113+
- name: Check MSRV for all crates
114+
run: bash ./scripts/msrv.sh
117115
cargo-deny:
118116
runs-on: ubuntu-latest # This uses the step `EmbarkStudios/cargo-deny-action@v1` which is only supported on Linux
119117
continue-on-error: true # Prevent sudden announcement of a new advisory from failing ci

scripts/msrv.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
echo "Running msrv check for opentelemetry package"
6+
cargo check --manifest-path=opentelemetry/Cargo.toml --all-features
7+
8+
echo "Running msrv check for opentelemetry-sdk package"
9+
cargo check --manifest-path=opentelemetry-sdk/Cargo.toml --all-features
10+
11+
echo "Running msrv check for opentelemetry-stdout package"
12+
cargo check --manifest-path=opentelemetry-stdout/Cargo.toml --all-features
13+
14+
# TODO: Ignoring as this is failing with the following error:
15+
# error: package `prost-derive v0.12.6` cannot be built because it requires rustc 1.70 or newer, while the currently active rustc version is 1.65.0
16+
#echo "Running msrv check for opentelemetry-otlp package"
17+
# cargo check --manifest-path=opentelemetry-otlp/Cargo.toml --all-features
18+
19+
echo "Running msrv check for opentelemetry-http package"
20+
cargo check --manifest-path=opentelemetry-http/Cargo.toml --all-features
21+
22+
echo "Running msrv check for opentelemetry-jaeger-propagator package"
23+
cargo check --manifest-path=opentelemetry-jaeger-propagator/Cargo.toml --all-features
24+
25+
echo "Running msrv check for opentelemetry-zipkin package"
26+
cargo check --manifest-path=opentelemetry-zipkin/Cargo.toml --all-features
27+
28+
echo "Running msrv check for opentelemetry-appender-log package"
29+
cargo check --manifest-path=opentelemetry-appender-log/Cargo.toml --all-features
30+
31+
echo "Running msrv check for opentelemetry-appender-tracing package"
32+
cargo check --manifest-path=opentelemetry-appender-tracing/Cargo.toml --all-features
33+

0 commit comments

Comments
 (0)