Skip to content

[bugfix] Do not re-apply default option arguments when mode options are parsed - #3755

Merged
vkarak merged 1 commit into
reframe-hpc:masterfrom
vkarak:bugfix/prgenv-modes
Nov 26, 2026
Merged

vkarak merged 1 commit into
reframe-hpc:masterfrom
vkarak:bugfix/prgenv-modes

Conversation

@vkarak

@vkarak vkarak commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

This is achieved by do not applying at all during parsing the defaults passed through add_argument()'s default argument, but rather apply them during access of the namespace through its __getattr__() method.

Closes #3734.
Replaces #3741.

Signed-off-by: Vasileios Karakasis <vkarak@gmail.com>
@vkarak
vkarak force-pushed the bugfix/prgenv-modes branch from 17f99a1 to 4adec8f Compare November 25, 2026 22:41
@vkarak
vkarak changed the base branch from develop to master November 25, 2026 22:43
@codecov

codecov Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.05%. Comparing base (9c4060f) to head (4adec8f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3755   +/-   ##
=======================================
  Coverage   92.04%   92.05%           
=======================================
  Files          72       72           
  Lines       14718    14709    -9     
=======================================
- Hits        13547    13540    -7     
+ Misses       1171     1169    -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@victorusu victorusu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in ReFrame Backlog Nov 26, 2026
@vkarak
vkarak merged commit 68a4769 into reframe-hpc:master Nov 26, 2026
99 of 108 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in ReFrame Backlog Nov 26, 2026
@vkarak
vkarak deleted the bugfix/prgenv-modes branch November 26, 2026 17:00
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