Skip to content

skip tests which require internet access on offline machines - #279

Merged
smoors merged 13 commits into
EESSI:mainfrom
laraPPr:skip_online_tests
Aug 21, 2025
Merged

smoors merged 13 commits into
EESSI:mainfrom
laraPPr:skip_online_tests

Conversation

@laraPPr

@laraPPr laraPPr commented Jul 31, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread eessi/testsuite/tests/apps/gromacs.py Resolved
Comment thread eessi/testsuite/eessi_mixin.py Resolved

@casparvl casparvl left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm... confused. For the TensorFlow test, you were creating the ability to stage the data manually. That means it should not be skipped. Is this just for tests where such staging is impossible?

I'm not sure how we do this in a way that is not confusing tbh. The issue is that yes, the TF test requires internet too. But, if you stage the data, it doesn't. I guess here, you only want to skip the tests where data staging is not an option...

Note that we don't need to create this new skip mechanism. I think what we should do is use features for this, and then add -offline to the valid_systems.

From the docs:

Every partition and environment can define a set of arbitrary features or key/value pairs in the features and extras options respectively. ReFrame will try to match system partitions and environments to a test based on the test’s specification in valid_systems and valid_prog_environs. More specifically, a feature is requested with the +feat and excluded with -feat, whereas an extra is requested with %key=val ...

# Valid only for system partitions that define `feat0` and `key0=val` but not `feat1`
valid_systems = [r'+feat0 -feat1 %key0=val']

Note that this approach is preferable because it will make sure that the test instance doesn't get generated in the first place. Skipping is only needed if we need information that is specific to e.g. the partition (e.g. the core count of a node), since by the time we get a current_partition, it is too late to not generate.

@laraPPr

laraPPr commented Aug 13, 2025

Copy link
Copy Markdown
Collaborator Author

No I don't think it is possible to stage the data. You have to manually add on MareNostrum because the login nodes also do not have internet access. So I put the skip for when the file is not manually added. I'll look at the features and extras to use that instead of the skip.

@laraPPr

laraPPr commented Aug 14, 2025

Copy link
Copy Markdown
Collaborator Author

Trying the feature way but I'm getting this error reframe.core.exceptions.ReframeFatalError: The variable 'valid_systems' has value ['-offline'], but the only valid value is ['*']

Comment thread eessi/testsuite/hooks.py Resolved
Comment thread eessi/testsuite/hooks.py Resolved

@smoors smoors left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

did a dry-run with and without feature offline for the 3 tests that require internet, works well!

@smoors
smoors merged commit ea4e79a into EESSI:main Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants