-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dotnet CLI usage: additional deps support to roll-forward #2165
Conversation
opentelemetry-dotnet-instrumentation/.github/workflows/ci.yml Lines 53 to 56 in f1717f9
We could change it (and one more place) to export OTEL_DOTNET_AUTO_HOME="${PWD}/bin/tracer-home"
. ./instrument.sh
cd test/test-applications/integrations/TestApplication.Smoke
dotnet run -f net7.0 I think it was the case before we bumped to .NET 7.... |
This is kind of ironic but hits the problem with the VBCSCompiler as intended, see https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/actions/runs/4110389057/jobs/7093155343#step:5:4366 and here for the explanation. |
Regarding my prev. comment... I have not noticed that it is a PR 🤦 |
Adding the missing probe path while building the shared store, per this comment, fixed the issue locally. |
Oh yeah forgot to update the test with the images... |
Should we keep both current and roll-forward version? Current Roll-Forward |
c1d900f
to
f56fac0
Compare
That's a good point. I did a quick test and as long as the additional |
@otel-telemetry/dotnet-instrumentation-approvers
|
process.ExitCode.Should().Be(0, "Test application exited with non-zero exit code"); | ||
} | ||
|
||
private void RunAppWithDotNetCliAndAssertHttpSpans(string arguments) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private void RunAppWithDotNetCliAndAssertHttpSpans(string arguments) | |
private void TestDotNetCli(string arguments) |
IMO it would be more clear 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, this one I like the long name: we are "testing" every execution of dotnet
CLI the one with the long method name is different in that we want to run the actual application and check for the HTTP spans.
5dd088e
to
b599fa4
Compare
Why
To fix dotnet CLI usage.
Fixes #1744
What
dotnet
CLITests
dotnet CLI
usage.Checklist
CHANGELOG.md
is updated.