Skip to content

ROX-28981: Split methods for collector iservice #2085

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

Draft
wants to merge 1 commit into
base: mauro/ROX-28526-use-collector-iservice
Choose a base branch
from

Conversation

Molter73
Copy link
Collaborator

@Molter73 Molter73 commented Apr 15, 2025

Description

Due to a limitation on collector side with the C++ gRPC API, we have decided to split the RPC method into one per message type collector can send.

This patch changes and regenerates the protobuf definitions and reworks the collector service to comply with the new definition.

Sibling PR: stackrox/stackrox#14991

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2025

Codecov Report

Attention: Patch coverage is 7.14286% with 13 lines in your changes missing coverage. Please review.

Project coverage is 27.02%. Comparing base (ddfe9e2) to head (ffbe42c).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
collector/lib/SensorClientFormatter.cpp 0.00% 5 Missing and 1 partial ⚠️
collector/lib/ProcessSignalHandler.cpp 0.00% 3 Missing ⚠️
collector/lib/SensorClient.cpp 0.00% 3 Missing ⚠️
collector/lib/SensorClient.h 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                            Coverage Diff                             @@
##           mauro/ROX-28526-use-collector-iservice    #2085      +/-   ##
==========================================================================
+ Coverage                                   26.96%   27.02%   +0.06%     
==========================================================================
  Files                                          98       98              
  Lines                                        6060     6046      -14     
  Branches                                     2703     2701       -2     
==========================================================================
  Hits                                         1634     1634              
+ Misses                                       3707     3693      -14     
  Partials                                      719      719              
Flag Coverage Δ
collector-unit-tests 27.02% <7.14%> (+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.

@Molter73 Molter73 force-pushed the mauro/ROX-28981-rework-collector-iservice-protobuf branch 2 times, most recently from 85cb9c6 to ffbe42c Compare April 15, 2025 13:12
@Molter73 Molter73 force-pushed the mauro/ROX-28526-use-collector-iservice branch from ddfe9e2 to 9a81385 Compare April 23, 2025 13:37
@Molter73 Molter73 force-pushed the mauro/ROX-28981-rework-collector-iservice-protobuf branch from ffbe42c to efc1c53 Compare April 23, 2025 13:38
@Molter73 Molter73 force-pushed the mauro/ROX-28526-use-collector-iservice branch from 9a81385 to 785dffb Compare April 23, 2025 15:20
@Molter73 Molter73 force-pushed the mauro/ROX-28981-rework-collector-iservice-protobuf branch from efc1c53 to 6f05199 Compare April 23, 2025 15:29
@Molter73 Molter73 force-pushed the mauro/ROX-28526-use-collector-iservice branch from 785dffb to 81a7b0c Compare April 23, 2025 16:33
@Molter73 Molter73 force-pushed the mauro/ROX-28981-rework-collector-iservice-protobuf branch from 6f05199 to 51fdfaa Compare April 23, 2025 16:33
@Molter73 Molter73 force-pushed the mauro/ROX-28526-use-collector-iservice branch from 81a7b0c to a1d1772 Compare June 3, 2025 16:28
Due to a limitation on collector side with the C++ gRPC API, we have
decided to split the RPC method into one per message type collector can
send.

This patch changes and regenerates the protobuf definitions and reworks
the collector service to comply with the new definition.
@Molter73 Molter73 force-pushed the mauro/ROX-28981-rework-collector-iservice-protobuf branch from 51fdfaa to fcac496 Compare June 9, 2025 14:43
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.

2 participants