Skip to content

Fix SCIP warnings caused by parallel test execution - #1257

Open
adamj34 wants to merge 2 commits into
scipopt:masterfrom
adamj34:parallel-testing
Open

adamj34 wants to merge 2 commits into
scipopt:masterfrom
adamj34:parallel-testing

Conversation

@adamj34

@adamj34 adamj34 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes SCIP warnings that appear when running the test suite with parallel execution (pytest -nauto).
Updates CHANGELOG.md.

Before:

When using pytest -nauto:
par-testing-nauto-before

It can be seen on the screenshot above that warnings originate from flp-subprob, which is defined inside testBenders in tests/test_customizedbenders.py. testBenders is later used by two tests.

However, the same warnings are not present when just using pytest:
par-testin-seq-before

Fix

Manually free the subproblem instance of testBenders.

After:

After the fix, pytest -nauto no longer produces any warnings:
par-testing-nauto-after

@adamj34
adamj34 marked this pull request as ready for review September 16, 2026 20:40
@Joao-Dionisio

Copy link
Copy Markdown
Member

Hey @adamj34 , thank you! The end result is pretty useful, but it feels strange to ask a Python user to free a problem. This might be an issue on the SCIP side, I'll take a look later.

@adamj34

adamj34 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Sure @Joao-Dionisio, take your time, I don't think it's very urgent.

It's pretty weird that these warnings only appear when the tests are executed in parallel but they are absent when the tests are executed sequentially, so I guess that the real issue lies somewhere else than the tests themselves.

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