Skip to content

compiler: Tweak use of degenerating_indices when determining iteration directions#2873

Merged
EdCaunt merged 2 commits intomainfrom
hotfix-degenerating-indices
Mar 20, 2026
Merged

compiler: Tweak use of degenerating_indices when determining iteration directions#2873
EdCaunt merged 2 commits intomainfrom
hotfix-degenerating-indices

Conversation

@EdCaunt
Copy link
Contributor

@EdCaunt EdCaunt commented Mar 19, 2026

Tweaking the logic for treatment of degenerating indices created through Buffer(1) made the time loop direction default to forward in setups where it shouldn't. This hotfix should correct this behaviour and introduces additional checks for this.

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

❌ Patch coverage is 90.90909% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.06%. Comparing base (805394b) to head (5326df0).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
tests/test_mpi.py 20.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2873   +/-   ##
=======================================
  Coverage   79.05%   79.06%           
=======================================
  Files         248      248           
  Lines       51252    51276   +24     
  Branches     4428     4431    +3     
=======================================
+ Hits        40518    40539   +21     
- Misses       9924     9927    +3     
  Partials      810      810           

☔ View full report in Codecov by Sentry.
📢 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.

super().__init__(*args)

# Register the cached type
# Register the cached type and eagerly create its cache, bound to its
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a Claude fix 😅 LogicalDependence objects kept getting constructed as Dependence objects due to the caching

Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

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

OK, GTG

@EdCaunt EdCaunt merged commit e147aaa into main Mar 20, 2026
42 checks passed
@EdCaunt EdCaunt deleted the hotfix-degenerating-indices branch March 20, 2026 10:48
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