Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration option purge_environment not working in ReFrame 4.3.3 #3200

Closed
gkaf89 opened this issue May 17, 2024 · 2 comments · Fixed by #3206
Closed

Configuration option purge_environment not working in ReFrame 4.3.3 #3200

gkaf89 opened this issue May 17, 2024 · 2 comments · Fixed by #3206
Assignees
Milestone

Comments

@gkaf89
Copy link

gkaf89 commented May 17, 2024

We are using in our systems ReFrame 4.3.3, installed with EasyBuild 4.9.1 as a module. We set the purge_environment general configuration option to True to ensure that any modules loaded when ReFrame is launched are removed during the compilation and run phases. However, we noticed that modules remain loaded. This does not happen if we set the command line option --purge-env.

Is this known behavior?

Our relevant configuration options:

site_configuration = {                                                                                                                                        
    'general' : [                                                                                                                                             
        {                                                                                                                                                     
            'use_login_shell': True,                                                                                                                          
            'purge_environment': True,                                                                                                                        
        },                                                                                                                                                    
    ],                                                                                                                                                        
}
@vkarak
Copy link
Contributor

vkarak commented May 27, 2024

Hi @gkaf89, which modules system do you use? Also what's the output of reframe -C path/to/your/config.py --show-config=general/0/purge_environment?

@vkarak
Copy link
Contributor

vkarak commented May 27, 2024

Ok, I was able to confirm the bug:

$ reframe -C /path/to/config.py --show-config=general/0/purge_environment
false
$ reframe -C /path/to/config.py --purge-env --show-config=general/0/purge_environment
true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2 participants