Skip to content

Conversation

@mjohanse-emr
Copy link
Collaborator

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

What does this Pull Request accomplish?

  • Deletes generated stubs from ni/protobuf/types
  • Deletes generated stubs from ni/panels/v1
  • Updates code references to the deleted stubs to reference stubs from the ni.protobuf.types package.
  • Adds dependency on ni-protobuf-types to the generator and the service. Also to two examples.
  • Update string literals in generator to change imports to point to the ni.protobuf.types package.
  • I didn't see any references to ni.panels.v1, so I didn't make any changes or add a dependency on the ni-panels-v1-proto package.
  • Update grpc stub generator to exclude ni/protobuf/types and ni/panels/v1 paths when generating stubs.

Why should this Pull Request be merged?

AB#3229834

What testing has been done?

Unit tests, system tests, mypy, styleguide.

I have not done any manual testing.

… them in from ni.protobuf.types

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

github-actions bot commented Aug 13, 2025

Test Results

    52 files  ±0      52 suites  ±0   1h 17m 1s ⏱️ - 2m 19s
   713 tests ±0     713 ✅ ±0      0 💤 ±0  0 ❌ ±0 
21 564 runs  ±0  20 488 ✅ ±0  1 076 💤 ±0  0 ❌ ±0 

Results for commit a011964. ± Comparison against base commit 37355e1.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
tests.unit.test_dotenvpath ‑ test___get_nims_path___returns_package_dir
tests.unit.test_dotenvpath ‑ test___get_package_path___returns_package_dir

♻️ This comment has been updated with latest results.

Copy link
Collaborator Author

@mjohanse-emr mjohanse-emr left a comment

Choose a reason for hiding this comment

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

I'm unsure about these pyproject.toml changes. I did what I had to do to get poetry lock to succeed.

Michael Johansen and others added 3 commits August 13, 2025 11:02
Michael Johansen added 5 commits August 13, 2025 15:25
…and ni.panels.v1.

Signed-off-by: Michael Johansen <michael.johansen@ni.com>
…yleguide exclude list since they don't conform to the styleguide as generated.

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>
Signed-off-by: Michael Johansen <michael.johansen@ni.com>
Signed-off-by: Michael Johansen <michael.johansen@ni.com>
@mjohanse-emr mjohanse-emr marked this pull request as ready for review August 15, 2025 14:47
@mjohanse-emr mjohanse-emr requested a review from bkeryan August 15, 2025 14:47
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.

Approved with suggestions

@mjohanse-emr mjohanse-emr changed the title First pass at removing protobuf and panel generated stubs and pulling them in from ni.protobuf.types. Replace ni.protobuf.types stubs with dependency on ni.protobuf.types package Aug 15, 2025
Copy link
Collaborator

@dixonjoel dixonjoel left a comment

Choose a reason for hiding this comment

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

Approved with suggestion

@mjohanse-emr mjohanse-emr merged commit 09c7e7e into main Aug 15, 2025
17 checks passed
@mjohanse-emr mjohanse-emr deleted the users/mjohanse/update_protobuf_deps branch August 15, 2025 17:06
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.

5 participants