DP-1.14: fix potential nil pointer dereference errors#5363
DP-1.14: fix potential nil pointer dereference errors#5363karthikeya-remilla wants to merge 4 commits intoopenconfig:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a stability issue in the QoS basic test suite where missing telemetry data caused nil pointer dereference panics. By implementing proper validation checks before accessing the returned values, the tests now handle missing data gracefully without aborting execution. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Pull Request Functional Test Report for #5363 / d86dedaVirtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request updates the QoS basic test by adding null checks for counter values and correcting the argument order in error messages. The review feedback suggests using t.Fatalf instead of t.Errorf for these critical counter retrievals to ensure the test fails fast if baseline data is unavailable. Furthermore, the reviewer noted that the explicit count == nil checks are redundant because the ok return value from Await(t) already guarantees the presence of a non-nil value.
|
@AmrNJ please help in getting this merged by requesting internal reviews. |
In instances where the telemetry values are not received, code still goes on to check related data causing panic and test abortion. This diff plans to handle errors gracefully.