Skip to content

Commit d5c428c

Browse files
committed
Suppress error messages from test, update GitHub workflows
1 parent e1795c0 commit d5c428c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Build OpenTelemetry-cpp
3939
run:
4040
cd opentelemetry-cpp
41-
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_STANDARD=20 -DWITH_OTLP=TRUE -DWITH_OTLP_HTTP=TRUE -DWITH_OTLP_GRPC=TRUE -DOPENTELEMETRY_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake
41+
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_CXX_STANDARD=20 -DWITH_OTLP_HTTP=TRUE -DWITH_OTLP_GRPC=TRUE -DOPENTELEMETRY_INSTALL=ON -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake
4242
cmake --build build --config Release --target all
4343
cmake --install build --prefix ${{ env.OPENTELEMETRY_CPP_INSTALL }}
4444
- name: Build OpenTelemetry-Matlab

test/tcontextPropagation.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ function testInjectContext(testCase)
145145
% inject
146146
carrier = opentelemetry.context.propagation.injectContext();
147147
headers = carrier.Headers;
148+
endSpan(sp);
148149

149150
% verify the injected traceparent contains the trace and span IDs
150151
verifySubstring(testCase, headers(1,2), spancontext.TraceId);
@@ -378,6 +379,7 @@ function testInjectContextComposite(testCase)
378379
% inject
379380
carrier = opentelemetry.context.propagation.injectContext();
380381
headers = carrier.Headers;
382+
endSpan(sp);
381383

382384
% verify the baggage header
383385
baggagerow = find(headers(:,1) == "baggage");

test/ttrace.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,10 @@ function testLinks(testCase)
518518

519519
endSpan(sp4);
520520

521+
% end the rest of the spans
522+
endSpan(sp1);
523+
endSpan(sp3);
524+
521525
results = readJsonResults(testCase);
522526

523527
% one link, no attributes

0 commit comments

Comments
 (0)