Skip to content

Options for running with Apptainer#33

Merged
F-Ross merged 8 commits intomainfrom
feature/BetterApptainerCompatibility
Nov 13, 2025
Merged

Options for running with Apptainer#33
F-Ross merged 8 commits intomainfrom
feature/BetterApptainerCompatibility

Conversation

@F-Ross
Copy link
Copy Markdown
Collaborator

@F-Ross F-Ross commented Sep 5, 2025

The aim of this pull request is to enable pytest-isolate-mpi to work with Apptainer on an HPC system. For this two command line options were added:

  • --python-executable, which allows to set the path to a custom Python with which to run the spawned subsessions, the intention being that this will be the Python inside the container.
  • --custom-ini-for-subsession that allows the subsession to use a different ini than the outer Pytest call. Some of the mpi args can cause problems when used inside an Apptainer container, so this is a very flexible way to remove those.

@F-Ross F-Ross self-assigned this Sep 5, 2025
@F-Ross F-Ross marked this pull request as ready for review September 18, 2025 09:21
@F-Ross F-Ross requested a review from sebasgo September 18, 2025 09:21
Copy link
Copy Markdown
Member

@sebasgo sebasgo left a comment

Choose a reason for hiding this comment

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

The new features need to be documented as well:

  • please add an entry to CHANGES.rst under the Version 0.4 header stating we introduced new options to facilitate the use of Apptainer
  • please expand the Command Line Options section in docs/usage.rst

Comment thread src/pytest_isolate_mpi/_plugin.py Outdated
Comment thread src/pytest_isolate_mpi/_plugin.py Outdated
Comment thread src/pytest_isolate_mpi/_plugin.py Outdated
Comment thread src/pytest_isolate_mpi/_plugin.py Outdated
Comment thread src/pytest_isolate_mpi/_plugin.py Outdated
@F-Ross F-Ross changed the title Options for running with apptainer Options for running with Apptainer Oct 17, 2025
@F-Ross
Copy link
Copy Markdown
Collaborator Author

F-Ross commented Oct 17, 2025

CHANGES.rst and docs/usage.rst have been updated.

@F-Ross F-Ross requested a review from sebasgo October 17, 2025 12:28
sebasgo
sebasgo previously approved these changes Nov 7, 2025
Copy link
Copy Markdown
Member

@sebasgo sebasgo left a comment

Choose a reason for hiding this comment

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

Apart, from the one typo, this is good to go 😀

Comment thread docs/usage.rst Outdated
Co-authored-by: Sebastian Gottfried <sebastian.gottfried@dlr.de>
@F-Ross F-Ross merged commit a4affa4 into main Nov 13, 2025
25 checks passed
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