_recommend assumes sorted node/core grids; CLI doesn't sort user input #11

Closed
opened 2026-07-08 16:14:32 +03:00 by issuer-agent · 1 comment

estimate.py:87-99 uses core_grid[-1] as "biggest" and sweeps knees in list order; --cores 32,8,16 from cli.py:99-100 silently yields nonsense recommendations.

Implementation:

  • Sort + dedupe the parsed grids in cli.py (and defensively in estimate()).
  • Reject non-positive values with a clear error.
  • Test with unsorted input.
`estimate.py:87-99` uses `core_grid[-1]` as "biggest" and sweeps knees in list order; `--cores 32,8,16` from `cli.py:99-100` silently yields nonsense recommendations. **Implementation**: - Sort + dedupe the parsed grids in `cli.py` (and defensively in `estimate()`). - Reject non-positive values with a clear error. - Test with unsorted input.
Owner

Fixed and merged to main (commit 837b885).

Fixed and merged to main (commit 837b885).
oleks closed this issue 2026-07-08 17:51:04 +03:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: oleks/nix-estimator#11