Skip to content

test(laya): compare the unrouted mixture answer within 1e-6 - #535

Merged
michalharakal merged 1 commit into
developfrom
fix/laya-mixture-test-tolerance
Nov 9, 2026
Merged

michalharakal merged 1 commit into
developfrom
fix/laya-mixture-test-tolerance

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

LayaExpertSyntheticTest.a_mixture_routes_overrides_and_compares_as_specified compared the routed and unrouted answers for exact equality. The two differ by about 2e-9, which is why Build & Test failed on develop at the 0.64.2 merge (b4f9789) and blocks the tag.

  • The assertion now allows 1e-6, the threshold the same test already uses to decide that two answers differ.
  • Test-only: no production code changes.
  • This does not explain why the two calls differ in the last bits. It only stops the test depending on them.

Checked locally: before the change the test failed 6 of 9 runs. After it, 12 of 12 pass, and the full :llm-inference:laya:jvmTest passes.

🤖 Generated with Claude Code

The routed and unrouted calls are not bit-identical (about 2e-9), so the exact
comparison failed intermittently, including on develop at the 0.64.2 merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michalharakal
michalharakal merged commit 65b27ff into develop Nov 9, 2026
2 checks passed
@michalharakal
michalharakal deleted the fix/laya-mixture-test-tolerance branch November 9, 2026 11:02
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