Skip to content

FIX: Improve grpc tests #1392

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

Merged
merged 33 commits into from
Jul 21, 2025
Merged

FIX: Improve grpc tests #1392

merged 33 commits into from
Jul 21, 2025

Conversation

maxcapodi78
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the testing Anything related to testing label Jul 17, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jul 17, 2025

Codecov Report

Attention: Patch coverage is 50.46154% with 161 lines in your changes missing coverage. Please review.

Project coverage is 49.68%. Comparing base (373b65d) to head (d9e29dd).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1392      +/-   ##
==========================================
- Coverage   50.02%   49.68%   -0.34%     
==========================================
  Files         251      251              
  Lines       37837    37945     +108     
==========================================
- Hits        18927    18853      -74     
- Misses      18910    19092     +182     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

svandenb-dev
svandenb-dev previously approved these changes Jul 17, 2025
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

svandenb-dev
svandenb-dev previously approved these changes Jul 17, 2025
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

@svandenb-dev svandenb-dev requested a review from Copilot July 17, 2025 13:14
Copy link
Contributor

@Copilot Copilot AI left a 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 pull request improves the gRPC tests for the EDB (Electronic Design Database) testing framework by modifying the close() method calls to explicitly disable RPC session termination. The change ensures that test environments maintain better control over gRPC session lifecycle management and prevents potential cleanup issues during test execution.

  • Updates all edb.close() calls to use edb.close(terminate_rpc_session=False) parameter
  • Adds proper test cleanup handling for gRPC sessions in configuration tests
  • Includes minor API parameter name standardization in source excitation methods

Reviewed Changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/unit/test_edb.py Updates close() calls to prevent RPC session termination
tests/system/test_edb_*.py Systematically updates all test files to use non-terminating close() calls
src/pyedb/grpc/database/source_excitations.py Standardizes parameter names and adds new port creation options
src/pyedb/grpc/database/simulation_setup/siwave_simulation_setup.py Adds property accessors and improves sweep method return values
src/pyedb/grpc/database/hierarchy/component.py Enhances package definition creation with component part name support
src/pyedb/grpc/database/components.py Adds new port creation method for RLC components
src/pyedb/dotnet/edb.py Updates close() method signature to accept keyword arguments
src/pyedb/dotnet/database/sim_setup_data/io/siwave.py Adds deprecated property and standardizes mesh property naming
Comments suppressed due to low confidence (2)

tests/system/test_edb_configuration_2p0.py:145

  • There are two test methods with identical names 'test_13b_stackup_materials'. The second one should have a unique name to avoid conflicts.
    def test_13b_stackup_materials(self, edb_examples):

tests/system/test_edb_configuration_2p0.py:1518

  • There are two test methods with identical names 'test_08a_operations_cutout'. The second one should have a unique name to avoid conflicts.
    def test_08a_operations_cutout(self, edb_examples):

svandenb-dev
svandenb-dev previously approved these changes Jul 17, 2025
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

…_grpc_tests

# Conflicts:
#	src/pyedb/grpc/database/utility/value.py
@github-actions github-actions bot added the grpc-transition Changes that need to be included in gRPC transition label Jul 18, 2025
svandenb-dev
svandenb-dev previously approved these changes Jul 18, 2025
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

@svandenb-dev svandenb-dev self-requested a review July 18, 2025 13:13
svandenb-dev
svandenb-dev previously approved these changes Jul 18, 2025
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

# Conflicts:
#	tests/system/test_edb_configuration_2p0.py
svandenb-dev
svandenb-dev previously approved these changes Jul 21, 2025
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

@svandenb-dev svandenb-dev self-requested a review July 21, 2025 13:37
Copy link
Collaborator

@svandenb-dev svandenb-dev left a comment

Choose a reason for hiding this comment

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

LGTM

@svandenb-dev svandenb-dev merged commit 7fc1db6 into main Jul 21, 2025
23 checks passed
@svandenb-dev svandenb-dev deleted the improve_grpc_tests branch July 21, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grpc-transition Changes that need to be included in gRPC transition testing Anything related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants