Skip to content

Add discovery annotations as a public subpackage#103

Merged
mjohanse-emr merged 11 commits intomainfrom
users/mjohanse/move_annotations
Sep 8, 2025
Merged

Add discovery annotations as a public subpackage#103
mjohanse-emr merged 11 commits intomainfrom
users/mjohanse/move_annotations

Conversation

@mjohanse-emr
Copy link
Collaborator

@mjohanse-emr mjohanse-emr commented Aug 28, 2025

What does this Pull Request accomplish?

Adds annotation string constants as a public subpackage of ni.measurementlink.discovery.v1.proto so they can be used by both server and client packages.

In order to allow for a "non-generated" subpackage, I made some updates to grpc_generator to only cleanup directories that end in "_pb2" or "_pb2_grpc". Any other directory is assumed to be non-generated and won't be deleted at codegen time.

See this PR comment for more context:
#93 (comment)

Why should this Pull Request be merged?

Implements #97

What testing has been done?

  • ni.measurementlink.discovery.v1.proto
    • mypy, pyright, and styleguide.
  • grpc_generator
    • Added a new unit test.
    • All unit tests pass
    • mypy, pyright, styleguide

Signed-off-by: Michael Johansen <michael.johansen@ni.com>
@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2025

Test Results

   66 files  ±0     66 suites  ±0   1m 53s ⏱️ +9s
  185 tests +1    185 ✅ +1   0 💤 ±0  0 ❌ ±0 
1 830 runs  +6  1 820 ✅ +6  10 💤 ±0  0 ❌ ±0 

Results for commit 44068e7. ± Comparison against base commit 034c829.

♻️ This comment has been updated with latest results.

Michael Johansen added 4 commits August 28, 2025 14:01
…odegen.

Signed-off-by: Michael Johansen <michael.johansen@ni.com>
…ubpackage mode.

Signed-off-by: Michael Johansen <michael.johansen@ni.com>
Signed-off-by: Michael Johansen <michael.johansen@ni.com>
Signed-off-by: Michael Johansen <michael.johansen@ni.com>
Copy link
Collaborator

@jfriedri-ni jfriedri-ni left a comment

Choose a reason for hiding this comment

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

Thanks for the improvements to the generator!

@mjohanse-emr mjohanse-emr marked this pull request as ready for review August 28, 2025 22:17
@mjohanse-emr mjohanse-emr requested a review from bkeryan as a code owner August 28, 2025 22:17
Co-authored-by: Joe F <114173023+jfriedri-ni@users.noreply.github.com>
Michael Johansen added 2 commits September 2, 2025 10:35
…to file. Add comments to each constant.

Signed-off-by: Michael Johansen <michael.johansen@ni.com>
@mjohanse-emr mjohanse-emr requested a review from bkeryan September 2, 2025 15:41
Michael Johansen added 3 commits September 4, 2025 15:39
Signed-off-by: Michael Johansen <michael.johansen@ni.com>
Signed-off-by: Michael Johansen <michael.johansen@ni.com>
Copy link
Collaborator

@bkeryan bkeryan left a comment

Choose a reason for hiding this comment

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

The discovery annotations look good to me.

@mjohanse-emr mjohanse-emr changed the title Add annotations as a public subpackage Add discovery annotations as a public subpackage Sep 8, 2025
@mjohanse-emr mjohanse-emr merged commit 7e3da2a into main Sep 8, 2025
79 checks passed
@mjohanse-emr mjohanse-emr deleted the users/mjohanse/move_annotations branch September 8, 2025 13:38
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.

4 participants