Skip to content

fix: change format messages to out of place#77

Merged
parthchadha merged 4 commits intomainfrom
format-messages-out-of-place
Mar 31, 2025
Merged

fix: change format messages to out of place#77
parthchadha merged 4 commits intomainfrom
format-messages-out-of-place

Conversation

@KiddoZhu
Copy link
Contributor

@KiddoZhu KiddoZhu commented Mar 24, 2025

What does this PR do ?

Existing implementation of get_formatted_message_log() modifies message_log in-place and is not reentrant. This PR fixes it.

Issues

List issues that this PR closes (syntax):

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? Visit our Testing Guide for how to run tests
  • Did you add or update any necessary documentation? Visit our Document Development Guide for how to write, build and test the docs.

Additional Information

  • ...

Signed-off-by: KiddoZhu <zhaochengz@nvidia.com>
@KiddoZhu KiddoZhu force-pushed the format-messages-out-of-place branch from 84b03fd to 970dd10 Compare March 24, 2025 23:53
@terrykong
Copy link
Contributor

i definitely stand behind making things more functionally pure!

We're trying to push v0.1.1, but i triggered the CI to prefetch

terrykong
terrykong previously approved these changes Mar 25, 2025
parthchadha
parthchadha previously approved these changes Mar 25, 2025
SahilJain314
SahilJain314 previously approved these changes Mar 26, 2025
Copy link
Contributor

@SahilJain314 SahilJain314 left a comment

Choose a reason for hiding this comment

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

Love it!

Signed-off-by: Sahil Jain <sahilj@nvidia.com>
@SahilJain314 SahilJain314 force-pushed the format-messages-out-of-place branch from 4c86158 to 8f4667a Compare March 31, 2025 21:29
@parthchadha parthchadha merged commit 7d4d5de into main Mar 31, 2025
11 checks passed
@parthchadha parthchadha deleted the format-messages-out-of-place branch March 31, 2025 21:55
yfw pushed a commit that referenced this pull request Apr 2, 2025
Signed-off-by: KiddoZhu <zhaochengz@nvidia.com>
Signed-off-by: Sahil Jain <sahilj@nvidia.com>
Co-authored-by: Parth Chadha <pchadha@nvidia.com>
Co-authored-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com>
Signed-off-by: Yi-Fu Wu <yifu.wu@gmail.com>
KiddoZhu added a commit that referenced this pull request May 6, 2025
Signed-off-by: KiddoZhu <zhaochengz@nvidia.com>
Signed-off-by: Sahil Jain <sahilj@nvidia.com>
Co-authored-by: Parth Chadha <pchadha@nvidia.com>
Co-authored-by: Sahil Jain <48468750+SahilJain314@users.noreply.github.com>
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.

4 participants