Repository navigation
test: fix factorization reads - #16292
Planeshifter wants to merge 3 commits into
Conversation
The scheduled `linux_test` workflow failed on develop with four assertion failures in the "stride and offset" test of `fft/base/fftpack/float32/sinqi` (e.g., expected `8`, actual `1.1210387714598537e-44`). Root cause: `rffti1` stores the integer factorization data (sequence length, number of factors, and factors) through a `Uint32Array` view over the `Float32Array` workspace, so reading those slots as floats yields denormals. This commit reads the factorization section through a `Uint32Array` view, consistent with the `cosqi` and `rffti` tests. Ref: https://github.com/stdlib-js/stdlib/actions/runs/39753951313 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CrVhRwPsPFuqS8JdR5SEeJ
Coverage Report
The above coverage report was generated for the changes in this PR. |
|
@gunjjoshi Would you mind reviewing and also determining if anything else needs updating? I believe making changes to |
|
Right. I'll open up a PR to update |
|
The Generated by Claude Code |
|
The Generated by Claude Code |
|
Thank you for working on this pull request. However, we cannot accept your contribution as the issue this pull request seeks to resolve has already been addressed in a different pull request or commit. Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions. |
Description
This pull request:
fft/base/fftpack/float32/sinqi, which fails in the scheduledlinux_testworkflow (run: https://github.com/stdlib-js/stdlib/actions/runs/39753951313).Symptom: four assertions fail (e.g., expected
8, actual1.1210387714598537e-44).Root cause:
rffti1stores the integer factorization data through aUint32Arrayview over theFloat32Arrayworkspace. The test read those slots as floats, which yields denormals. The test now reads the section through aUint32Arrayview, as thecosqiandrfftitests do.Validation: the test file passes locally (12024 passing, 0 failing; 4 failing before the change). Three independent reviews approved; the one style note (
max-lenpragma) is addressed.Related Issues
None.
Questions
No.
Other
Reviewer notes: the
sinqiREADME,lib/main.js,lib/index.js,docs/types/index.d.ts,docs/repl.txt, andexamples/index.jshave the same mistake (factors shown as<Float32Array>[ 8, 2, 2, 4 ]/ read as floats).cosqialready uses theUint32Arrayform. Left out of this PR to keep it to the failing test; follow-up.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was produced by Claude Code running as an automated CI-triage routine: it diagnosed the failing job from the workflow logs, authored the fix, and had it reviewed by separate AI reviewers. No human has reviewed it yet.
@stdlib-js/reviewers
Generated by Claude Code