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

added: call getinfo when debug logging is activated and not solved #152

Merged
merged 6 commits into from
Jan 23, 2025

Conversation

franckgaga
Copy link
Member

Applies to LinearMPC, NonLinMPC and MovingHorizonEstimator
getinfo is an expensive function but as mentioned in the doc, the function is not called at all when debug logging is disabled.

It can be useful to get additionnal context in github CI. It theoretically allows the user to save the debug logging with full context in a separate file.

Before this change, I was only showing JuMP.solution_summary in the debug log.

the `Union` type was overly complex and `getinfo` should not be used in "normal" operation, only for troubleshoothing. The computational performance are not that important (there is already many allocations in this function)
The full output without ellipsis can still be shown in the REPL with the following logger:
`debuglogger = ConsoleLogger(stderr, Logging.Debug, show_limited=false)`
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2025

Codecov Report

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

Project coverage is 98.88%. Comparing base (3ed42e4) to head (371a150).

Files with missing lines Patch % Lines
src/controller/execute.jl 75.00% 1 Missing ⚠️
src/estimator/mhe/execute.jl 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #152      +/-   ##
==========================================
- Coverage   98.88%   98.88%   -0.01%     
==========================================
  Files          24       24              
  Lines        3766     3765       -1     
==========================================
- Hits         3724     3723       -1     
  Misses         42       42              

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

@franckgaga franckgaga merged commit 84f6688 into main Jan 23, 2025
3 of 4 checks passed
@franckgaga franckgaga deleted the debug_moreinfo branch January 23, 2025 21:50
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.

2 participants