Skip to content

fix: remove unfilled placeholder values from SCIP event data - #115

Merged
tlambert03 merged 2 commits into
funkelab:mainfrom
tlambert03:fix/backend-consistency
Nov 17, 2026
Merged

tlambert03 merged 2 commits into
funkelab:mainfrom
tlambert03:fix/backend-consistency

Conversation

@tlambert03

Copy link
Copy Markdown
Member

The SCIP event handler had a bunch of keys whose values were literally ... (placeholders that were never filled in), so on_event callbacks were getting Ellipsis for things like upperbound, cutoffbound, nnzs, etc. This just drops them from the payload and from the SCIPPresolve/SCIPBestSol TypedDicts.

I looked at actually filling them in instead, but pyscipopt can't provide most of them: getNActiveConss, getNEnabledConss, getNFixedVars, getNNZs and getTransGap aren't wrapped at all (as of 6.3.0). getCutoffbound/getLowerbound exist since 5.7, and getUpperbound/getAvgDualbound/getAvgLowerbound showed up sometime after 6.1... so those could come back in a follow-up, along with a pyscipopt minimum version.

Also fixes the _SCIPData type hint, which said deterministictime while the runtime key has always been deterministic_time.

@codecov

codecov Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.05%. Comparing base (91b13e2) to head (1ab9709).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #115      +/-   ##
==========================================
- Coverage   73.27%   73.05%   -0.22%     
==========================================
  Files          12       12              
  Lines        1115     1106       -9     
==========================================
- Hits          817      808       -9     
  Misses        298      298              

☔ 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.

@tlambert03
tlambert03 merged commit c4c1875 into funkelab:main Nov 17, 2026
30 of 32 checks passed
@tlambert03
tlambert03 deleted the fix/backend-consistency branch November 17, 2026 18:21
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.

1 participant