Skip to content

Conversation

@ewu63
Copy link
Collaborator

@ewu63 ewu63 commented May 29, 2024

Purpose

Should be good to go after #438. Turns out we never had any unconstrained tests... It's also clear that NSGA2 was never thoroughly tested.

Expected time until merged

Type of change

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (non-backwards-compatible fix or feature)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Documentation update
  • Maintenance update
  • Other (please describe)

Testing

Checklist

  • I have run flake8 and black to make sure the Python code adheres to PEP-8 and is consistently formatted
  • I have formatted the Fortran code with fprettify or C/C++ code with clang-format as applicable
  • I have run unit and regression tests which pass locally with my changes
  • I have added new tests that prove my fix is effective or that my feature works
  • I have added necessary documentation

@marcomangano
Copy link
Collaborator

marcomangano commented Feb 5, 2025

The windows action failure is due to a (temporary?) failure to download the miniconda executables from the official repo.

Ensuring installer...
  Can we use bundled Miniconda?
  Can we download a custom installer by URL?
  Can we download Miniforge?
  ... will download Miniforge.
  Will fetch Mambaforge latest from https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe
  Ensuring Installer...
  Checking for cached Mambaforge@latest...
  Did not find Mambaforge-Windows-x86_64.exe latest in cache

@ewu63 ewu63 force-pushed the add-uncon-tests branch from 6cccf01 to caaa459 Compare March 13, 2025 06:01
@ewu63 ewu63 force-pushed the add-uncon-tests branch from 6f2052c to fada1de Compare April 20, 2025 07:06
@ewu63 ewu63 marked this pull request as ready for review April 21, 2025 16:24
@ewu63 ewu63 requested a review from a team as a code owner April 21, 2025 16:24
@ewu63 ewu63 requested a review from kanekosh April 21, 2025 16:24
@ewu63 ewu63 changed the title WIP: add unconstrained tests for all optimizers Add unconstrained tests for all optimizers Apr 21, 2025
@ewu63 ewu63 force-pushed the add-uncon-tests branch from 98c24e8 to 042d964 Compare April 26, 2025 05:36
@ewu63
Copy link
Collaborator Author

ewu63 commented Apr 26, 2025

Ok that's so weird, so the NSGA2 test segfaults when running in isolated mode, but it runs fine without on my computer. Hmmm

@ewu63 ewu63 force-pushed the add-uncon-tests branch from 05910da to bb7944f Compare April 28, 2025 16:28
@ewu63 ewu63 force-pushed the add-uncon-tests branch from f7f5b18 to e675265 Compare August 1, 2025 00:57
@ewu63 ewu63 force-pushed the add-uncon-tests branch from 6e2ecd2 to 49d50e7 Compare August 1, 2025 01:37
@codecov
Copy link

codecov bot commented Aug 1, 2025

Codecov Report

❌ Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.17%. Comparing base (bf7d311) to head (86a0dc9).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
pyoptsparse/pyNSGA2/pyNSGA2.py 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #402      +/-   ##
==========================================
- Coverage   86.26%   86.17%   -0.09%     
==========================================
  Files          24       24              
  Lines        3399     3406       +7     
==========================================
+ Hits         2932     2935       +3     
- Misses        467      471       +4     

☔ View full report in Codecov by Sentry.
📢 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.

@ewu63 ewu63 mentioned this pull request Aug 1, 2025
13 tasks
"seed": 1235,
}
},
"NSGA2": {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now we skip the NSGA2 test, should we remove the NSGA2 options here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That would apply to the change in pyOpt_testing.py too. I am not sure if we want to remove this completely since we might want to test it locally at some point, but we should at least adding a comment clarifying which optimizers are not tested.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added comment, in the future I'd like to bring it back once #448 is addressed

@ewu63 ewu63 requested a review from kanekosh August 11, 2025 22:42
@ewu63
Copy link
Collaborator Author

ewu63 commented Aug 12, 2025

@marcomangano this is ready

Copy link
Collaborator

@marcomangano marcomangano left a comment

Choose a reason for hiding this comment

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

LGTM. Maybe when we fix the testing issues with NSGA-II we can also update the name in our code to match the metadata

@marcomangano marcomangano merged commit 2b35f53 into main Aug 13, 2025
18 checks passed
@marcomangano marcomangano deleted the add-uncon-tests branch August 13, 2025 14:26
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