Skip to content

Migrate Ostinato test comparisons to assert_allclose - #1232

Merged
seanlaw merged 1 commit into
stumpy-dev:mainfrom
karthiksenv:codex/migrate-ostinato-comparisons
Nov 18, 2026
Merged

seanlaw merged 1 commit into
stumpy-dev:mainfrom
karthiksenv:codex/migrate-ostinato-comparisons

Conversation

@karthiksenv

@karthiksenv karthiksenv commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Related to #1175. Sean confirmed the remaining migration scope.

Migrate 22 comparisons in the normalized Ostinato tests. A local three-way merge of this file with #1012 was clean. The computed result comes first and the reference result second.

All 109 Ostinato tests passed on Ubuntu before and after the migration with JIT enabled and disabled. Both builds report the same pre-existing divide-by-zero warning.

The full Ubuntu JIT and CUDA-simulator coverage runs used a checkout containing all five migration patches. The JIT run had 2,363 passes and 32 skips. The coverage run had 2,510 passes and 17 skips, with 100% coverage across 15,109 measured statements. The repository-wide format, lint, docstring, and fastmath checks passed. The full runs used an environment without Ray or pyFFTW. Ray was tested separately with Ray installed.

Pull Request Checklist

Below is a simple checklist but please do not hesitate to ask for assistance!

  • Read our Contributing Guide
  • Referenced a Github issue (or create one if one doesn't already exist)
  • Read and reviewed all of the comments in the Github issue that you've referenced (along with cross-referenced issues/pull requests) to ensure that the issue still requires a pull request
  • Checked that the issue has not already been assigned to anybody else or is already being addressed in another pull request
  • Left a meaningful comment on the original Github issue to discuss the detailed approach for your contribution and received confirmation from the maintainers before proceeding with this pull request
  • Forked, cloned, and checked out the newest version of the code
  • Created a new branch
  • Made necessary code changes
  • Installed black (i.e., python -m pip install black or conda install -c conda-forge black)
  • Installed flake8 (i.e., python -m pip install flake8 or conda install -c conda-forge flake8)
  • Installed pytest-cov (i.e., python -m pip install pytest-cov or conda install -c conda-forge pytest-cov)
  • Ran black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./ in the root stumpy directory
  • Ran flake8 --extend-exclude=.venv ./ in the root stumpy directory
  • Ran ./setup.sh dev && ./test.sh in the root stumpy directory and ensured that all tests are passing locally
  • Check this box if AI code assistance was used to generate
    • less than 25% of the code in this pull request
    • 25-50% of the code in this pull request
    • more than 50% of the code in this pull request

Please do not commit any code to avoid/circumvent a failing test and, instead, engage in a discussion (below) to determine the best course of action.

Only request a review after the checklist above is fully completed!

@gitnotebooks

gitnotebooks Bot commented Nov 17, 2026

Copy link
Copy Markdown

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

@karthiksenv
karthiksenv marked this pull request as ready for review November 17, 2026 04:42
@karthiksenv
karthiksenv requested a review from seanlaw as a code owner November 17, 2026 04:42
@seanlaw
seanlaw merged commit 0f933bd into stumpy-dev:main Nov 18, 2026
34 checks passed
@seanlaw

seanlaw commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@karthiksenv Thanks for the PR

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