Skip to content

Test align_bounds throwing assert when realizing into pre-allocated buffer - #9373

Open
mcourteaux wants to merge 3 commits into
mainfrom
mcourteaux/test-alignbounds-assert
Open

Test align_bounds throwing assert when realizing into pre-allocated buffer#9373
mcourteaux wants to merge 3 commits into
mainfrom
mcourteaux/test-alignbounds-assert

Conversation

@mcourteaux

Copy link
Copy Markdown
Contributor

Just add a test that I felt like was relevant. Created with Claude during my work on #9357.

Checklist

  • Tests added or updated (not required for docs, CI config, or typo fixes)
  • Documentation updated (if public API changed)
  • Python bindings updated (if public API changed)
  • Benchmarks are included here if the change is intended to affect performance.
  • Commits include AI attribution where applicable (see Code of Conduct)

mcourteaux and others added 2 commits August 21, 2026 09:38
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.00%. Comparing base (bb5426d) to head (e8aca6e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9373      +/-   ##
==========================================
- Coverage   70.08%   70.00%   -0.08%     
==========================================
  Files         259      260       +1     
  Lines       79158    79287     +129     
  Branches    19293    19327      +34     
==========================================
+ Hits        55477    55504      +27     
- Misses      17886    17913      +27     
- Partials     5795     5870      +75     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

printf("%d: Expected an error due to align_bounds being "
"violated by the output buffer's min/extent, but the "
"pipeline ran and traced bounds [%d, %d)\n",
__LINE__, trace_min, trace_min + trace_extent);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why print the line number in the test file here?

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.

Because that happens in all the other tests above too. Useful for debugging when it trips.

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