Skip to content

test: make sequential regression test platform-portable#97

Merged
bartzbeielstein merged 1 commit into
developfrom
fix/sequential-regression-portability
Jun 9, 2026
Merged

test: make sequential regression test platform-portable#97
bartzbeielstein merged 1 commit into
developfrom
fix/sequential-regression-portability

Conversation

@bartzbeielstein

Copy link
Copy Markdown
Contributor

Fixes the Tests (fast) failure on the 1.0.0 release PR (#96).

The test_sequential_equivalence_regression byte-identity check (assert_array_equal vs a golden fixture captured on macOS) failed on Linux CI — seeded SpotOptim results are bit-identical only on the same platform/BLAS; across macOS↔Linux the iterative surrogate trajectory amplifies FP rounding into different (equally valid) optima. This is a test-design flaw, not a behavior regression (CI: 1571 passed, only these 2 assertions failed at ~1e-4).

Now asserts portable invariants: same-seed determinism (bit-exact within a run), exact eval budget (nfev/nit/success), and convergence quality in the golden ballpark.

test: type → no independent release; the 1.0.0 bump still comes from the feat! commits already on develop.

🤖 Generated with Claude Code

The byte-identity check (assert_array_equal vs a golden fixture captured on
macOS) failed on Linux CI: seeded SpotOptim results are bit-identical only on
the same platform/BLAS, and an iterative surrogate trajectory amplifies
floating-point rounding into different (equally valid) optima across platforms.

Assert portable invariants instead: same-seed determinism (bit-exact within a
run), exact evaluation budget (nfev/nit/success), and convergence quality in
the golden ballpark. The fixture still supplies the case definitions and the
budget/quality references.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bartzbeielstein bartzbeielstein merged commit 7395e70 into develop Jun 9, 2026
@bartzbeielstein bartzbeielstein deleted the fix/sequential-regression-portability branch June 9, 2026 17:56
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