Skip to content
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

Rust: Enable server client test on nix #4936

Conversation

youyuanwu
Copy link
Contributor

Description

Enable server client test on linux an macos.
Using test certs in the openssl submodule.
Removed code that sets the handle context to null after the handle close. It causes access violation in some cases, and handle after close should not be accessed anymore.

Testing

NA

Documentation

NA

@nibanks nibanks added the Language: Rust Related to the Rust interop layer label Mar 20, 2025
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.02%. Comparing base (06d7a25) to head (68af645).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4936      +/-   ##
==========================================
- Coverage   87.42%   87.02%   -0.41%     
==========================================
  Files          56       56              
  Lines       17726    17723       -3     
==========================================
- Hits        15497    15423      -74     
- Misses       2229     2300      +71     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@youyuanwu youyuanwu marked this pull request as ready for review March 21, 2025 00:31
@youyuanwu youyuanwu requested a review from a team as a code owner March 21, 2025 00:31
pub fn get_test_cred() -> Credential {
use crate::CertificateFile;
let root_dir = std::env::current_dir().unwrap();
let cert_dir = root_dir.join("submodules/openssl/test/certs");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't care for depending on a specific submodule file.

  1. I want to make sure we can support openssl3 in the near future.
  2. I am thinking about moving away from submodules and dynamically resolving these dependencies (probably via cmake), and they might be in different directories.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to use openssl cli to generate test certs in temp dir.

@nibanks nibanks merged commit 61c3f4b into microsoft:main Mar 24, 2025
419 of 424 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language: Rust Related to the Rust interop layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants