Repository navigation
skip tests which require internet access on offline machines - #279
Conversation
Signed-off-by: laraPPr <[email protected]>
Signed-off-by: laraPPr <[email protected]>
…t in configs Signed-off-by: laraPPr <[email protected]>
Signed-off-by: laraPPr <[email protected]>
There was a problem hiding this comment.
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.
|
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. |
|
Trying the feature way but I'm getting this error |
Signed-off-by: laraPPr <[email protected]>
Signed-off-by: laraPPr <[email protected]>
Co-authored-by: Sam Moors <[email protected]>
smoors
left a comment
There was a problem hiding this comment.
did a dry-run with and without feature offline for the 3 tests that require internet, works well!
No description provided.