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

Collect addional info in mixin #206

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

casparvl
Copy link
Collaborator

@casparvl casparvl commented Nov 14, 2024

Solves #196

Note that the nodenames on which the test is run are already logged by the ReFrame framework, so we don't need to do that.

Discussed on the ReFrame slack channel. The challenge is that we want the variables from the batch nodes, so it has to be printed with postrun_cmds. But then, we need to get it from the output, and into a ReFrame variable so that it is logged. Those need to be initialized in the class body. Then can be updated with the output of the extracted information. We use sanity functions to extract from the output, catching the SanityError that is produced if there is no match (as we don't want the test to fail because of this). Note that SanityError's are actually expected for runs on local software stack, since then the EESSI_* environment variables are not set, and the pattern match fails. That's fine, we just want the variables to read 'None' in those cases.

@casparvl casparvl marked this pull request as ready for review November 14, 2024 21:22
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.

1 participant