Skip to content

Conversation

@greschd
Copy link
Member

@greschd greschd commented Oct 3, 2024

Allow marking gRPC properties as supported since a specific server version. The grpc_data_property_read_only is given a supported_since keyword, and grpc_data_property is given two separate keywords readable_since and writable_since.

Other changes:

  • Change the xfail_before test fixture to raises_before_version, which explicitly checks that a RuntimeError is raised when run on an older server version.
  • Move the supported_since implementation to a separate file.
  • In the CI definition, reuse the DOCKER_IMAGE_NAME variable in more places.

@codecov
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 92.98246% with 4 lines in your changes missing coverage. Please review.

Project coverage is 93.33%. Comparing base (f8b93d7) to head (343f32d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ore/_tree_objects/_grpc_helpers/property_helper.py 87.50% 2 Missing ⚠️
...ore/_tree_objects/_grpc_helpers/supported_since.py 96.55% 1 Missing ⚠️
src/ansys/acp/core/_tree_objects/base.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #603      +/-   ##
==========================================
+ Coverage   93.31%   93.33%   +0.01%     
==========================================
  Files          84       85       +1     
  Lines        4445     4471      +26     
==========================================
+ Hits         4148     4173      +25     
- Misses        297      298       +1     
Flag Coverage Δ
python-3.10 93.24% <87.71%> (+0.08%) ⬆️
python-3.11 93.15% <87.71%> (-0.05%) ⬇️
python-3.12 93.24% <92.98%> (+0.01%) ⬆️
server-242 93.04% <91.22%> (+0.04%) ⬆️
server-latest 93.24% <87.71%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@greschd greschd mentioned this pull request Oct 3, 2024
@greschd
Copy link
Member Author

greschd commented Oct 3, 2024

@roosre FMPOV the codecov failure can be ignored; this feature isn't used yet in the gRPC properties, but will be once the units PR #567 is merged.

Allow marking gRPC properties as supported since a specific
server version. The `grpc_data_property_read_only` is given
a `supported_since` keyword, and `grpc_data_property` is given
two separate keywords `readable_since` and `writable_since`.

Other changes:
- Change the `xfail_before` test fixture to `raises_before_version`,
  which explicitly checks that a `RuntimeError` is raised when run
  on an older server version.
- Move the `supported_since` implementation to a separate file.
- In the CI definition, reuse the `DOCKER_IMAGE_NAME` variable
  in more places.
@greschd greschd force-pushed the feat/supported_since_on_grpc_properties branch from 86c04f0 to ee0d714 Compare October 16, 2024 11:32
@greschd greschd merged commit bc6aa18 into main Oct 16, 2024
24 of 25 checks passed
@greschd greschd deleted the feat/supported_since_on_grpc_properties branch October 16, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants