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

Accept an optional logging Output widget for logging monitor exceptions #669

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

edan-bainglass
Copy link
Member

No description provided.

@edan-bainglass edan-bainglass self-assigned this Feb 3, 2025
Copy link

codecov bot commented Feb 3, 2025

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 83.35%. Comparing base (3f2626f) to head (472fde9).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
aiidalab_widgets_base/process.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #669      +/-   ##
==========================================
- Coverage   83.41%   83.35%   -0.07%     
==========================================
  Files          17       17              
  Lines        3581     3586       +5     
==========================================
+ Hits         2987     2989       +2     
- Misses        594      597       +3     
Flag Coverage Δ
python-3.11 83.35% <40.00%> (-0.07%) ⬇️
python-3.9 83.38% <40.00%> (-0.07%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@superstar54 superstar54 left a comment

Choose a reason for hiding this comment

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

LGTM!

@edan-bainglass edan-bainglass merged commit dee5446 into aiidalab:master Feb 3, 2025
9 of 11 checks passed
edan-bainglass added a commit to aiidalab/aiidalab-qe that referenced this pull request Feb 5, 2025
This PR adds a flag, which if True, adds an `Output` widget at the bottom of the app, accompanied by a reset button. The widget can then be passed down to any part of the app that needs to be tested.
The PR hardcodes one use-case - monitoring. The `ProcessMonitor` was recently changed (aiidalab/aiidalab-widgets-base#669) to accept an output widget and use it to log exceptions in monitored callbacks. This PR passes the output widget (if included) down to the `ProcessMonitor` instance, exposing its exceptions. This is useful for debugging issues in the results step.
@danielhollas danielhollas added the enhancement New feature or request label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants