Skip to content

Commit 7977298

Browse files
committed
fix an issue in github workflow
1 parent accdf92 commit 7977298

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
build-and-run-tests:
77
runs-on: ubuntu-latest
88
env:
9-
OPENTELEMETRY_CPP_INSTALL: "/home/runner/work/otel_cpp_install"
10-
OPENTELEMETRY_MATLAB_INSTALL: "/home/runner/work/otel_matlab_install"
11-
OPENTELEMETRY_COLLECTOR_INSTALL: "../../otelcol"
9+
OPENTELEMETRY_CPP_INSTALL: "${{ github.workspace }}/otel_cpp_install"
10+
OPENTELEMETRY_MATLAB_INSTALL: "${{ github.workspace }}/otel_matlab_install"
11+
OPENTELEMETRY_COLLECTOR_INSTALL: "${{ github.workspace }}/otelcol"
1212
SYSTEM_LIBSTDCPP_PATH: "/usr/lib/x86_64-linux-gnu/libstdc++.so.6"
1313
steps:
1414
- name: Download OpenTelemetry-Matlab source

test/performance/traceTest.m

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,40 +30,32 @@ function setupOnce(testCase)
3030

3131
methods (TestMethodSetup)
3232
function setup(testCase)
33-
disp("start setup")
3433
commonSetup(testCase);
35-
disp("end setup")
3634
end
3735
end
3836

3937
methods (TestMethodTeardown)
4038
function teardown(testCase)
41-
disp("start teardown")
4239
% Flush all spans that have not yet been exported
4340
tp = opentelemetry.trace.Provider.getTracerProvider();
44-
assert(opentelemetry.sdk.trace.Cleanup.forceFlush(tp));
45-
disp("done forceFlush")
41+
opentelemetry.sdk.trace.Cleanup.forceFlush(tp);
4642

4743
commonTeardown(testCase);
48-
disp("end teardown")
4944
end
5045
end
5146

5247
methods (Test)
5348
function testSpan(testCase)
54-
disp("start test")
5549
% start and end a span
5650
tr = opentelemetry.trace.getTracer("Tracer");
5751

5852
testCase.startMeasuring();
5953
sp = startSpan(tr, "Span");
6054
endSpan(sp);
6155
testCase.stopMeasuring();
62-
disp("end test")
6356
end
6457

6558
function testCurrentSpan(testCase)
66-
disp("start test")
6759
% start a span, put it in current context, end the span
6860
tr = opentelemetry.trace.getTracer("Tracer");
6961

@@ -72,11 +64,9 @@ function testCurrentSpan(testCase)
7264
scope = makeCurrent(sp); %#ok<NASGU>
7365
endSpan(sp);
7466
testCase.stopMeasuring();
75-
disp("end test")
7667
end
7768

7869
function testNestedSpansImplicitContext(testCase)
79-
disp("start test")
8070
% nested spans, using current span as parent
8171
tr = opentelemetry.trace.getTracer("Tracer");
8272

@@ -93,11 +83,9 @@ function testNestedSpansImplicitContext(testCase)
9383
endSpan(isp);
9484
endSpan(osp);
9585
testCase.stopMeasuring();
96-
disp("end test")
9786
end
9887

9988
function testNestedSpansExplicitContext(testCase)
100-
disp("start test")
10189
% nested spans, explicitly setting parents
10290
tr = opentelemetry.trace.getTracer("Tracer");
10391

@@ -114,11 +102,9 @@ function testNestedSpansExplicitContext(testCase)
114102
endSpan(isp);
115103
endSpan(osp);
116104
testCase.stopMeasuring();
117-
disp("end test")
118105
end
119106

120107
function testAttributes(testCase)
121-
disp("start test")
122108
% span with 3 attributes
123109
tr = opentelemetry.trace.getTracer("Tracer");
124110
m = magic(4);
@@ -129,11 +115,9 @@ function testAttributes(testCase)
129115
"attribute 3", m);
130116
endSpan(sp);
131117
testCase.stopMeasuring()
132-
disp("end test")
133118
end
134119

135120
function testEvents(testCase)
136-
disp("start test")
137121
% span with 3 events
138122
tr = opentelemetry.trace.getTracer("Tracer");
139123

@@ -144,11 +128,9 @@ function testEvents(testCase)
144128
addEvent(sp, "event 3");
145129
endSpan(sp);
146130
testCase.stopMeasuring()
147-
disp("end test")
148131
end
149132

150133
function testLinks(testCase)
151-
disp("start test")
152134
% span with 2 links
153135
tr = opentelemetry.trace.getTracer("Tracer");
154136
sp1 = startSpan(tr, "Span 1");
@@ -162,7 +144,6 @@ function testLinks(testCase)
162144
sp3 = startSpan(tr, "Span 3", Links=[link1 link2]);
163145
endSpan(sp3);
164146
testCase.stopMeasuring()
165-
disp("end test")
166147
end
167148

168149
function testGetTracer(testCase)
@@ -180,7 +161,6 @@ function testCreateDefaultTracerProvider(testCase)
180161
end
181162

182163
function testSpanContext(testCase)
183-
disp("start test")
184164
% retrieve trace ID and span ID in the span context
185165
tr = opentelemetry.trace.getTracer("Tracer");
186166
sp = startSpan(tr, "Span");
@@ -190,7 +170,6 @@ function testSpanContext(testCase)
190170
traceid = spctxt.TraceId; %#ok<NASGU>
191171
spanid = spctxt.SpanId; %#ok<NASGU>
192172
testCase.stopMeasuring();
193-
disp("end test")
194173
end
195174

196175
end

0 commit comments

Comments
 (0)