Skip to content

Add MPI barrier before all tests#2148

Closed
brownbaerchen wants to merge 1 commit into
helmholtz-analytics:mainfrom
brownbaerchen:barrier_in_tests
Closed

Add MPI barrier before all tests#2148
brownbaerchen wants to merge 1 commit into
helmholtz-analytics:mainfrom
brownbaerchen:barrier_in_tests

Conversation

@brownbaerchen

Copy link
Copy Markdown
Collaborator

The CI currently runs into deadlocks with some IO tests. We have not understood why, but seemingly adding some MPI barriers helps. In this PR, I simply add a global MPI barrier before every test that is derived from the basic TestCase using the setUp function.
Since I cannot reproduce the problem locally and we don't understand the problem, I have no clue if this fixes the issue. Nevertheless, I don't think this hurts and I'd rather do this in a centralized place for all tests than randomly spamming barriers in the code.
Schauen wir mal was wird.

Looking forward to being able to just do this on my fork without requiring a review from somebody else once we have merged #2139 ;)

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for the PR!

@JuanPedroGHM

Copy link
Copy Markdown
Member

Should we remove some other barriers at the start of tests within this PR?

@brownbaerchen

Copy link
Copy Markdown
Collaborator Author

Should we remove some other barriers at the start of tests within this PR?

Actually, I didn't find any places where there is a barrier at the start of the test. Only at the end. This is very similar, but since we don't understand the problem, I don't want to do everything at once. Can you approve this PR, such that the CI runs and we see if this fixes the problem at all? Then we can try removing the barriers at the end of IO tests.

@github-project-automation github-project-automation Bot moved this from Todo to Merge queue in Roadmap Feb 24, 2026
@brownbaerchen

Copy link
Copy Markdown
Collaborator Author

So, this is not the solution, sadly. Let's go with the barrier in a specific place suggested in #2147 then..

@github-project-automation github-project-automation Bot moved this from Merge queue to Done in Roadmap Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants