Skip to content

Add the full status of the subsolver - #34

Draft
BenjaminPINEAU wants to merge 10 commits into
JuliaSmoothOptimizers:mainfrom
BenjaminPINEAU:status
Draft

Add the full status of the subsolver#34
BenjaminPINEAU wants to merge 10 commits into
JuliaSmoothOptimizers:mainfrom
BenjaminPINEAU:status

Conversation

@BenjaminPINEAU

Copy link
Copy Markdown
Collaborator

Description

This is a proposal for obtaining the exact status of the sub-solver. Before, we only had the keyword “:error,” which isn't very specific when we use Envelopt.jl in other algorithm or debugging.

Related issues

There is no related issue.

Checklist

  • Tests are passing
  • Lint workflow is passing
  • Docs were updated and workflow is passing

@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@f82bf8f). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/envelopt_solver.jl 0.00% 2 Missing ⚠️
src/madnlp_sub.jl 0.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #34   +/-   ##
=======================================
  Coverage        ?   68.88%           
=======================================
  Files           ?       11           
  Lines           ?      585           
  Branches        ?        0           
=======================================
  Hits            ?      403           
  Misses          ?      182           
  Partials        ?        0           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@BenjaminPINEAU

Copy link
Copy Markdown
Collaborator Author

@dpo Should we update the tests to test each status? Personally, I don't think it's necessary because each solver tests these statuses internally.

Comment thread src/madnlp_sub.jl Outdated
MadNLP.INVALID_NUMBER_DETECTED => :invalid_number,
MadNLP.ERROR_IN_STEP_COMPUTATION => :step_error,
MadNLP.INTERNAL_ERROR => :internal_error,
MadNLP.USER_REQUESTED_STOP => :user_stop,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
MadNLP.USER_REQUESTED_STOP => :user_stop,
MadNLP.USER_REQUESTED_STOP => :user,

Make sure the statuses match those here: https://github.com/JuliaSmoothOptimizers/SolverCore.jl/blob/main/src/stats.jl

@dpo

dpo commented Aug 11, 2026

Copy link
Copy Markdown
Member

Also, the Julia formatter isn’t happy. Check the “linting” job output. The best is to install pre_commit locally, as described in the BestieTemplate documentation.

dependabot Bot and others added 8 commits August 11, 2026 15:11
Updates the requirements on [TOML](https://github.com/JuliaLang/TOML.jl) to permit the latest version.
- [Release notes](https://github.com/JuliaLang/TOML.jl/releases)
- [Commits](https://github.com/JuliaLang/TOML.jl/commits)

---
updated-dependencies:
- dependency-name: TOML
  dependency-version: 1.0.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [MadNLP](https://github.com/MadNLP/MadNLP.jl) to permit the latest version.
- [Release notes](https://github.com/MadNLP/MadNLP.jl/releases)
- [Commits](https://github.com/MadNLP/MadNLP.jl/commits/v0.10.1)

---
updated-dependencies:
- dependency-name: MadNLP
  dependency-version: 0.10.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@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.

2 participants