Skip to content

[bugfix] Preserve prgenv filters in execution modes - #3741

Closed
sb123sb123 wants to merge 2 commits into
reframe-hpc:developfrom
sb123sb123:fix/3734-mode-prgenv
Closed

sb123sb123 wants to merge 2 commits into
reframe-hpc:developfrom
sb123sb123:fix/3734-mode-prgenv

Conversation

@sb123sb123

@sb123sb123 sb123sb123 commented Oct 3, 2026 •

Copy link
Copy Markdown

Summary

Execution-mode options are parsed separately from command-line options. Parser defaults such as --prgenv=.* were being reapplied with an explicit CLI filter, allowing other programming environments through. The mode parse now suppresses defaults, while the normal command-line reparse still applies explicit options and standard defaults. The regression exercises --mode=env_vars -p PrgEnv-gnu on testsys:gpu.

Fixes #3734.

Testing

  • unittests/test_cli.py::test_execution_mode_preserves_prgenv_filter — 1 passed
  • unittests/test_argparser.py — 8 passed
  • unittests/test_cli.py -k 'execution_mode or invalid_mode' — 5 passed
  • A combined run of the two modules was stopped at about 52% after two failures appeared and the task drive became space-constrained. No final report was produced, so this run is incomplete and is not counted as passing.
  • DCO passed. GitHub Actions reports action_required; those workflows have not run for this PR.

Signed-off-by: NekoPaw <152394158+sb123sb123@users.noreply.github.com>
Signed-off-by: NekoPaw <152394158+sb123sb123@users.noreply.github.com>
@vkarak

vkarak commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

The proposed fix is very intrusive and misses the point. This PR is replaced by #3755.

@vkarak vkarak closed this Nov 25, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in ReFrame Backlog Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

-p/--prgenv has no effect when --mode is used

2 participants