feat: include detected GROMACS modules in default worker init for simulate - #37
Merged
gregorweiss merged 2 commits intoAug 11, 2026
Merged
Conversation
gregorweiss
marked this pull request as ready for review
August 11, 2026 15:03
Collaborator
Author
Code ReviewCriticalFinding 1 (test-reviewer):
ImportantFinding 2 (test-reviewer): Integration path for build context (
SuggestionsFinding 3 (test-reviewer): Combined GROMACS modules + pixi env present is not tested
Finding 4 (code-reviewer):
Strengths
Agents run: code-reviewer, error-auditor (no findings), test-reviewer, completeness-checker (all AC met) Reviewed by mach6 |
Collaborator
Author
Review AssessmentClassifications
Action PlanNo genuine issues — PR is clear to merge. Deferred items for optional follow-up (not blocking):
Assessment by mach6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #35.
When the TUI is invoked for
simulate(i.e.stagesis non-empty orNone),_default_worker_init()now detects loaded GROMACS modules from$LOADEDMODULESand prependsmodule loadcommands to the default worker init suggestion.This ensures that when a user has loaded GROMACS via
module load gromacs/...on the login node, the same module is suggested for compute node activation — sogmx/gmx_mpiare available on workers.Changes
_detect_gromacs_modules()— new helper that parses$LOADEDMODULESfor modules withgromacsorgmxprefix (case-insensitive)_default_worker_init(for_simulate=False)— addedfor_simulatekwarg; whenTrue, prepends detected GROMACS module loads separated by;_configure_with_cluster,_configure_manual) now passfor_simulate=Truewhen stages indicate simulate contextExample output
With
LOADEDMODULES=cuda/12.2:gromacs/2024.3-gpu:openmpi/4.1and pixi environment present:For
buildcontext (empty stages), only the pixi shell-hook is included — no module load.