Open sandy2008 opened 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.21%. Comparing base (
6250307
) to head (f6c4b00
). Report is 321 commits behind head on main.
@reyang Hi! Fixed accordingly.
@reyang Do you know what's the next step to get it merged, so that we can work on the remaining PRs to support mTLS? 🥹
@reyang Do you know what's the next step to get it merged, so that we can work on the remaining PRs to support mTLS? 🥹
@reyang @alanwest Please kindly review again!
@sandy2008 try running the test locally. The CI does not pass.
@sandy2008 try running the test locally. The CI does not pass.
Sorry sorry, I forgot to push one change..
@alanwest Hmm, seems I need to give one fix, will fix it tmr.
Sorry, I was little busy during the weekend, I will work on it again today.
@alanwest Please review again, all fixed :)
@sandy2008 The test is still failing.
The certs are not being written to the necessary directory
To validate that things will work, you can run this integration test locally in the same way the CI runs it
Be sure to run this command from the root of the repository:
docker compose --file=test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/docker-compose.yml --file=build/docker-compose.net8.0.yml --project-directory=. up --exit-code-from=tests --build
```shell docker compose --file=test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/docker-compose.yml --file=build/docker-compose.net8.0.yml --project-directory=. up --exit-code-from=tests --build
Hi, it seems that the tests are successfully locally, is it a way that I can trigger my own tests on cloud?
opentelemetry-dotnet-tests-1 | Test Run Successful.
opentelemetry-dotnet-tests-1 | Total tests: 26
opentelemetry-dotnet-tests-1 | Passed: 26
opentelemetry-dotnet-tests-1 | Total time: 1.0136 Minutes
opentelemetry-dotnet-tests-1 exited with code 0
Aborting on container exit...
[+] Stopping 2/0
✔ Container opentelemetry-dotnet-tests-1 Stopped 0.0s
✔ Container opentelemetry-dotnet-otel-collector-1 Stopped 0.1
```shell docker compose --file=test/OpenTelemetry.Exporter.OpenTelemetryProtocol.Tests/IntegrationTest/docker-compose.yml --file=build/docker-compose.net8.0.yml --project-directory=. up --exit-code-from=tests --build
Hi, it seems that the tests are successfully locally, is it a way that I can trigger my own tests on cloud?
opentelemetry-dotnet-tests-1 | Test Run Successful. opentelemetry-dotnet-tests-1 | Total tests: 26 opentelemetry-dotnet-tests-1 | Passed: 26 opentelemetry-dotnet-tests-1 | Total time: 1.0136 Minutes opentelemetry-dotnet-tests-1 exited with code 0 Aborting on container exit... [+] Stopping 2/0 ✔ Container opentelemetry-dotnet-tests-1 Stopped 0.0s ✔ Container opentelemetry-dotnet-otel-collector-1 Stopped 0.1
Oh I re-produced the error, let me fix it.
Fixes #2009
Based on PR https://github.com/open-telemetry/opentelemetry-dotnet/pull/4731
Changes
This PR introduces an improvement in how integration tests handle TLS/mTLS certificates by generating them at build time via MSBuild. The generated certificates are stored in the build output directory.
Key Changes:
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changesLicense Information
THIS SOFTWARE IS CONTRIBUTED SUBJECT TO THE TERMS OF THE APACHE LICENSE V.2.0. YOU MAY OBTAIN A COPY OF THE LICENSE AT https://github.com/open-telemetry/opentelemetry-python/blob/master/LICENSE.
THIS SOFTWARE IS LICENSED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY OF NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THIS SOFTWARE MAY BE REDISTRIBUTED TO OTHERS ONLY BY EFFECTIVELY USING THIS OR ANOTHER EQUIVALENT DISCLAIMER IN ADDITION TO ANY OTHER REQUIRED LICENSE TERMS.