Conversation
Summary of ChangesHello @tdavidcl, 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 focuses on improving the debugging and observability capabilities within the codebase. It introduces an enhancement to the Highlights
Changelog
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces changes to add detailed messages to stack traces, which is used for debugging in serialize.hpp. My review focuses on two main points:
- The implementation of the new tracing in
serialize.hppis very verbose and looks like temporary debugging code. I've suggested either removing it or refactoring it into a macro for better readability if it's intended to be a permanent feature. - The constructor for
SourceLocationhas been modified in a way that breaks backward compatibility. I've proposed a solution using overloaded constructors to add the new functionality without breaking existing code.
| std::optional<std::string> message; | ||
|
|
||
| inline explicit SourceLocation(srcloc _loc = srcloc::current()) : loc(_loc) {} | ||
| inline explicit SourceLocation(std::optional<std::string> _message = std::nullopt,srcloc _loc = srcloc::current()) : loc(_loc), message(_message) {} |
There was a problem hiding this comment.
The change to the SourceLocation constructor is a breaking API change. Code that previously compiled, such as SourceLocation(my_srcloc_object), will now fail. To add support for an optional message while maintaining backward compatibility, it's better to use overloaded constructors.
| inline explicit SourceLocation(std::optional<std::string> _message = std::nullopt,srcloc _loc = srcloc::current()) : loc(_loc), message(_message) {} | |
| inline explicit SourceLocation(srcloc _loc = srcloc::current()) : loc(_loc), message(std::nullopt) {} | |
| inline explicit SourceLocation(std::string _message, srcloc _loc = srcloc::current()) : loc(_loc), message(std::move(_message)) {} |
|
Thanks @tdavidcl for opening this PR! You can do multiple things directly here: Once the workflow completes a message will appear displaying informations related to the run. Also the PR gets automatically reviewed by gemini, you can: |
Workflow reportworkflow report corresponding to commit 10f743a Light CI is enabled. This will only run the basic tests and not the full tests. Pre-commit check reportPre-commit check: ✅ Test pipeline can run. Doxygen diff with
|
No description provided.