Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a future to lock in the behavior when an iterator is unstable #26591

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

lydia-duncan
Copy link
Member

See #26590 . Basically, marking any iterator as unstable will cause the unstable warning to fire, even if that particular iterator is not used. This test demonstrates the issue for serial iterators, but standalone, leader, and follower iterators were also exhibiting the same behavior (and I suspect will be solved by the same solution).

I intend to exercise more aspects of it, but this one is sufficient to
demonstrate the problem, imo

I might change the test based on how running it on another system goes.  I
suspect that the number of follower calls is variable, but it was good
verification that the iterator overload I thought should be called was actually
being called

----
Signed-off-by: Lydia Duncan <[email protected]>
Uses an atomic bool to track if we've messaged about the follower already for
this set of calls.  Clears it in between the first and the second zippered calls

----
Signed-off-by: Lydia Duncan <[email protected]>
@lydia-duncan lydia-duncan merged commit bf1ff3d into chapel-lang:main Jan 23, 2025
8 checks passed
@lydia-duncan lydia-duncan deleted the iteratorUnstableTests branch January 23, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants