Skip to content

Finish comparison names and argument order in remaining tests - #1237

Open
karthiksenv wants to merge 3 commits into
stumpy-dev:mainfrom
karthiksenv:codex/finish-1175-comparison-names
Open

karthiksenv wants to merge 3 commits into
stumpy-dev:mainfrom
karthiksenv:codex/finish-1175-comparison-names

Conversation

@karthiksenv

@karthiksenv karthiksenv commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Related to #1175, following Sean's invitation to take the remaining files.

Finish ref_* and cmp_* names in the cache, chains, core, FLOSS, MAAMP, precision, and SDP tests. Chain comparisons put the computed result first and use assert_array_equal for individual integer arrays.

All 319 affected cases passed on Ubuntu with JIT disabled, CUDA simulated, and pyFFTW installed. Structural verification confirms that the four added files differ from main only by local variable names.

Validation is complete on c207eb5: all 30 CI unit/coverage jobs passed across Ubuntu, macOS, and Windows (Python 3.11–3.15). Local ./setup.sh dev and ./test.sh ran through the unit and coverage suites. The final coverage gate initially stopped at 99% with four pyFFTW tests skipped. Re-running the SDP/RNG tests through the checkout's Python, with STUMPY_SEED unset to cover random-seed initialization, passed all 11 cases and brought combined coverage to 100%.

Review follow-up in 7a80a3a: added atol=1.5e-07 to all six SDP comparisons requested in review. All nine SDP tests passed with JIT enabled and disabled, including the pyFFTW cases, with no skips. Black and flake8 passed. CI for this follow-up stopped before running tests: generate_python_matrix hit HTTP 429 while fetching the Numba support table, followed by an uninitialized df error in the unchanged versions.py. Retrying requires repository admin rights. See the failed job.

Pull Request Checklist

  • Read our Contributing Guide
  • Referenced a Github issue
  • Read and reviewed the comments and cross-referenced pull requests
  • Checked the affected functions against open PRs
  • Received maintainer confirmation for the remaining migration work
  • Forked, cloned, and checked out the newest version of the code
  • Created a new branch
  • Made necessary code changes
  • Installed Black, flake8, and the test dependencies
  • Ran Black and flake8 on the changed files
  • Ran the repository-wide formatting and static checks
  • Ran ./setup.sh dev and the full unit/coverage suites; corrected the local interpreter for the SDP/RNG rerun and verified 100% combined coverage

@gitnotebooks

gitnotebooks Bot commented Nov 18, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1237

@karthiksenv

Copy link
Copy Markdown
Contributor Author

Hi @seanlaw, both macOS 3.11 jobs were cancelled before getting a runner. Could you retry them when you have a chance? GitHub requires repository admin rights for the retry. The full local suite is still running. Thanks!

@seanlaw

seanlaw commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Done

@karthiksenv

Copy link
Copy Markdown
Contributor Author

Thanks, @seanlaw! Both macOS 3.11 jobs passed, and the full CI matrix is green. Local validation is complete too, with 100% coverage after correcting the test interpreter.

@karthiksenv
karthiksenv marked this pull request as ready for review November 19, 2026 22:01
@karthiksenv
karthiksenv requested a review from seanlaw as a code owner November 19, 2026 22:01
@karthiksenv

Copy link
Copy Markdown
Contributor Author

Hi @seanlaw, this is ready for review now. All 30 test and coverage jobs passed, and local coverage is 100%. Could you take a look when you have a chance? Thanks!

Comment thread tests/test_sdp.py Outdated
comp = func(Q, T)
npt.assert_allclose(comp, ref)
cmp_dot_product = func(Q, T)
npt.assert_allclose(cmp_dot_product, ref_dot_product)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're missing all of the , atol=1.5e-07 in npt.assert_allclose

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching these. Added atol=1.5e-07 to all six comparisons in 7a80a3a. All nine SDP tests pass with JIT enabled and disabled, including pyFFTW, and Black and flake8 pass too.

Comment thread tests/test_sdp.py Outdated
npt.assert_allclose(comp, ref)
ref_dot_product = naive.rolling_window_dot_product(Q, T)
cmp_dot_product = func(Q, T)
npt.assert_allclose(cmp_dot_product, ref_dot_product)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing , atol=1.5e-07

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added atol=1.5e-07 here in 7a80a3a too.

Comment thread tests/test_sdp.py Outdated
ref_dot_product = naive.rolling_window_dot_product(Q, T)

np.testing.assert_allclose(comp, ref)
np.testing.assert_allclose(cmp_dot_product, ref_dot_product)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing , atol=1.5e-07

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added atol=1.5e-07 here in 7a80a3a too.

Comment thread tests/test_sdp.py Outdated
ref_dot_product = naive.rolling_window_dot_product(Q, T)

np.testing.assert_allclose(comp, ref)
np.testing.assert_allclose(cmp_dot_product, ref_dot_product)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing , atol=1.5e-07

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added atol=1.5e-07 here in 7a80a3a too.

Comment thread tests/test_sdp.py Outdated
ref_dot_product = naive.rolling_window_dot_product(Q, T)

np.testing.assert_allclose(comp, ref)
np.testing.assert_allclose(cmp_dot_product, ref_dot_product)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing , atol=1.5e-07

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added atol=1.5e-07 here in 7a80a3a too.

Comment thread tests/test_sdp.py Outdated
ref_dot_product = naive.rolling_window_dot_product(Q, T)

np.testing.assert_allclose(comp, ref)
np.testing.assert_allclose(cmp_dot_product, ref_dot_product)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing , atol=1.5e-07

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added atol=1.5e-07 here in 7a80a3a too.

@karthiksenv

Copy link
Copy Markdown
Contributor Author

@seanlaw, the new CI run stopped before the tests: versions.py hit HTTP 429 while fetching the Numba support table. Could you rerun the failed job when you have a chance? GitHub requires repository admin rights for the retry. All nine SDP tests passed locally in both JIT modes, including pyFFTW.

@seanlaw

seanlaw commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

@karthiksenv While we're at it, would you mind checking all other test files and ensuring that they all have an atol= parameter defined when npt.assert_allclose is used?

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.

2 participants