Skip to content
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

fix MicrobatchExecutionDebug message #11071

Merged
merged 5 commits into from
Dec 10, 2024
Merged

fix MicrobatchExecutionDebug message #11071

merged 5 commits into from
Dec 10, 2024

Conversation

MichelleArk
Copy link
Contributor

@MichelleArk MichelleArk commented Nov 28, 2024

Resolves #11111

Problem

We weren't logging the batch information for microbatch debug logs, instead we were logging a pointer to the function which gives the batch description information 🙈

Example:
Screenshot 2024-12-09 at 11 02 14 (2)

Solution

Simply call the function instead of pointing at it 🙃
self.describe_batch => self.describe_batch()

Result
Screenshot 2024-12-09 at 11 35 02 (2)

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@cla-bot cla-bot bot added the cla:yes label Nov 28, 2024
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.86%. Comparing base (c9582c2) to head (05ca09f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11071      +/-   ##
==========================================
- Coverage   88.92%   88.86%   -0.07%     
==========================================
  Files         183      183              
  Lines       23934    23941       +7     
==========================================
- Hits        21283    21274       -9     
- Misses       2651     2667      +16     
Flag Coverage Δ
integration 86.16% <81.81%> (-0.07%) ⬇️
unit 61.95% <27.27%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Unit Tests 61.95% <27.27%> (-0.01%) ⬇️
Integration Tests 86.16% <81.81%> (-0.07%) ⬇️

@QMalcolm QMalcolm marked this pull request as ready for review December 9, 2024 17:39
@QMalcolm QMalcolm requested a review from a team as a code owner December 9, 2024 17:39
Copy link
Contributor Author

@MichelleArk MichelleArk left a comment

Choose a reason for hiding this comment

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

✅ approving the non-me commits :)

@QMalcolm
Copy link
Contributor

QMalcolm commented Dec 9, 2024

The tests are failing due to a bug when there is only one batch. Fix is in #11113. Once that is merged, we'll update this PR and then proceed.

Copy link
Contributor

@ChenyuLInx ChenyuLInx left a comment

Choose a reason for hiding this comment

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

LGTM assuming test is fixed.
Also we might want to add some test since this is a bug fix?

@QMalcolm QMalcolm merged commit fc6167a into main Dec 10, 2024
55 of 56 checks passed
@QMalcolm QMalcolm deleted the fix-microbatch-debug-logs branch December 10, 2024 15:59
github-actions bot pushed a commit that referenced this pull request Dec 10, 2024
* fix MicrobatchExecutionDebug message

* Fix typing in `describe_batch` to convince mypy `batch_start` exists when needed

---------

Co-authored-by: Quigley Malcolm <[email protected]>
(cherry picked from commit fc6167a)
QMalcolm pushed a commit that referenced this pull request Dec 10, 2024
* fix MicrobatchExecutionDebug message

* Fix typing in `describe_batch` to convince mypy `batch_start` exists when needed

---------

Co-authored-by: Quigley Malcolm <[email protected]>
(cherry picked from commit fc6167a)

Co-authored-by: Michelle Ark <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Debug logs for batches are printing out reference to function instead of description details
3 participants