-
Notifications
You must be signed in to change notification settings - Fork 71
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
Enable clients to set flags #286
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #286 +/- ##
==========================================
+ Coverage 75.96% 76.32% +0.35%
==========================================
Files 25 25
Lines 1656 1681 +25
==========================================
+ Hits 1258 1283 +25
Misses 291 291
Partials 107 107 ☔ View full report in Codecov by Sentry. |
cc @srikanthccv I followed your hint over at #198, let me know if I'm missing anything 🙌 |
I think this is missing a couple additional things:
I may be missing some more things. This needs a bit more thought and additional test cases that demonstrate the real use cases and behavior in presence of failures. |
Thanks for the feedback @tigrannajaryan I focused only on the client-side implementation but I realize it's a more interconnected change. I'll try to set up an end-to-end test to have at hand and figure out the entire lifecycle of the IDs. |
Signed-off-by: Paschalis Tsilias <[email protected]>
b89e957
to
570152d
Compare
… flag after a new ID was requested and set correctly Signed-off-by: Paschalis Tsilias <[email protected]>
Signed-off-by: Paschalis Tsilias <[email protected]>
Hey there @tigrannajaryan @srikanthccv 👋 Hope your week is going well! I've pushed a couple of commits; bd001cf that handles the cases Tigran mentioned on your last message and ca66f1d that adds a test for how messages containing valid/invalid AgentIdentification fields interact with the state of the flag we're tracking. Let me know how this looks, and if you have any concerns, or ideas. I'm still trying to understand all the moving pieces, so if I'm missing anything please let me know! |
Signed-off-by: Paschalis Tsilias <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just one comment left, would be great to add one more test and we can merge.
Signed-off-by: Paschalis Tsilias <[email protected]>
Thank you @tpaschalis |
Updates #198
This PR adds a new method to the OpAMPClient that allows clients to set their own flags (such as
RequestInstanceUid
).This new method deviates a little bit from other ones as it just sets a uint64 instead of a pointer struct field, and doesn't use the same errors and nil checks.
Thank you in advance for taking and look, and please let me know if I'm missing anything! 🙌