Skip to content

Fix bug where Python interpreter exit status is consumed by ORBIT_MPI_Finalize hook. Add ORBIT_MPI_Gather/ORBIT_MPI_Allgather - #144

Merged
woodtp merged 2 commits into
PyORBIT-Collaboration:mainfrom
woodtp:orbit-mpi-gather-operations
Oct 14, 2026
Merged

woodtp merged 2 commits into
PyORBIT-Collaboration:mainfrom
woodtp:orbit-mpi-gather-operations

Conversation

@woodtp

@woodtp woodtp commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

#119 was growing in scope, so I split off the work in orbit_mpi into its own PR.

  1. Fixes a bug where ORBIT_MPI_Finalize called at Py_AtExit would not propagate the exit status of the interpreter, and so would always return a successful exit code. This meant that running pytest with MPI would always "succeed" even if tests fail.
  2. Introduce ORBIT_MPI_Gather and ORBIT_MPI_Allgather compatibility shims.

@woodtp
woodtp requested review from azukov and shishlo September 8, 2026 18:56
@woodtp woodtp self-assigned this Sep 8, 2026
@woodtp woodtp added bug Something isn't working enhancement New feature or request labels Sep 8, 2026

@azukov azukov left a comment

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.

Looks ok

@woodtp
woodtp merged commit 28df660 into PyORBIT-Collaboration:main Oct 14, 2026
6 checks passed
@woodtp
woodtp deleted the orbit-mpi-gather-operations branch October 14, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants