-
Notifications
You must be signed in to change notification settings - Fork 14
updates to release/0.8 #1188
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
updates to release/0.8 #1188
Conversation
…nto branch/0.8.2
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.
Pull request overview
This PR updates the PyPrimeMesh package to version 0.8.2, introducing secure gRPC communication capabilities with mutual TLS support and improving connection security between client and server.
Key Changes:
- Added secure gRPC communication with mutual TLS (mTLS) support using client and server certificates
- Introduced
ConnectionTypeenum to distinguish between secure and insecure gRPC connections - Updated default remote version from '251-sp2' to 'latest'
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Version bump from 0.8.1 to 0.8.2 |
| src/ansys/meshing/prime/internals/config.py | Added ConnectionType enum for connection type management |
| src/ansys/meshing/prime/internals/launcher.py | Enhanced launch_prime and launch_server_process functions with certificate directory parameters and secure connection support |
| src/ansys/meshing/prime/internals/client.py | Updated Client class to handle secure/insecure connections with certificate validation |
| src/ansys/meshing/prime/internals/grpc_communicator.py | Added get_secure_channel function for TLS channel creation and removed unused server_command method |
| src/ansys/meshing/prime/params/primestructs.py | Added extra blank comment line |
| docker/linux/Dockerfile | Added COPY instruction for certificates directory |
| docker/build_docker_linux.py | Enhanced Docker image build script with version tagging and error handling |
| doc/source/getting_started/index.rst | Added documentation for gRPC connection types and secure certificate-based connections |
| doc/styles/config/vocabularies/ANSYS/accept.txt | Added 'client_certs_dir' to accepted vocabulary |
| .github/workflows/ci_cd.yml | Updated Docker image tag from 25.1.2 to 25.1.4 |
| doc/changelog.d/1188.documentation.md | Added changelog entry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| tls_client_files : list | ||
| List of paths to the TLS files. The list should contain: | ||
| - client certificate file path | ||
| - client key file path | ||
| - CA certificate file path |
Copilot
AI
Dec 10, 2025
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.
The parameter documentation refers to 'tls_client_files' but the actual parameter is named 'client_certs_dir'. Update the parameter name in the docstring to match the function signature.
| tls_client_files : list | |
| List of paths to the TLS files. The list should contain: | |
| - client certificate file path | |
| - client key file path | |
| - CA certificate file path | |
| client_certs_dir : str | |
| Path to the directory containing the TLS certificate files. The directory should contain: | |
| - client.crt (client certificate file) | |
| - client.key (client key file) | |
| - ca.crt (CA certificate file) |
| GRPC_SECURE = (1,) | ||
| GRPC_INSECURE = (2,) |
Copilot
AI
Dec 10, 2025
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.
The enum values use single-element tuples (1,) and (2,) instead of simple integers. This is unnecessary and unconventional. Change to GRPC_SECURE = 1 and GRPC_INSECURE = 2 for clarity.
| GRPC_SECURE = (1,) | |
| GRPC_INSECURE = (2,) | |
| GRPC_SECURE = 1 | |
| GRPC_INSECURE = 2 |
| "Warning: Ignoring client certificate \ | ||
| directory for insecure connections" |
Copilot
AI
Dec 10, 2025
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.
The string continuation with backslash creates a multi-line string literal with embedded whitespace. Use implicit string concatenation with parentheses or a single-line string for cleaner code.
| "Warning: Ignoring client certificate \ | |
| directory for insecure connections" | |
| ( | |
| "Warning: Ignoring client certificate " | |
| "directory for insecure connections" | |
| ) |
| - Ensure that ca.crt file is the same for the client and the server. You should not modify the | ||
| file names in the client_certs_dir and server_certs_dir respectively. | ||
|
|
||
| - The path of input the files must be the same for server and client and should be on the shared network. |
Copilot
AI
Dec 10, 2025
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.
Grammatical error: 'path of input the files' should be 'path of the input files' or 'path to the input files'.
| - The path of input the files must be the same for server and client and should be on the shared network. | |
| - The path to the input files must be the same for server and client and should be on the shared network. |
| if ip == defaults.ip(): | ||
| port = utils.get_available_local_port(port) | ||
|
|
||
| channel = None |
Copilot
AI
Dec 10, 2025
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.
The variable channel is initialized to None but never assigned a different value before being passed to the Client constructor at line 336. Consider removing this unused initialization or documenting its intended purpose.
…to branch/0.8.2
Description
Please provide a brief description of the changes made in this pull request.
Issue linked
Please mention the issue number or describe the problem this pull request addresses.
Checklist
feat: wrap with feature edges)