Skip to content

opal_path_nfs test is undeterministic and may fail in chroot environments (such as mock) #628

@dvandok

Description

@dvandok

Rebuilding from the source RPM (http://koji.fedoraproject.org/koji/buildinfo?buildID=636070) failed in our private mock environment at the moment the opal_path_nfs test was run.

The reason is that mock runs in a chroot environment, which doesn't expose the mount points from outside on the inside. But mock will mount the /proc directory before doing the chroot, so in /proc all the mounts from outside are visible. We happen to have some NFS mounts on the build machines. The test will assert that these are recognised by opal_path_nfs as being NFS mounts, but inside the chroot they really are not. The output of the mount command can not really be relied upon.

https://github.com/open-mpi/ompi/blob/master/test/util/opal_path_nfs.c#L137

Overall, the test depends too much on circumstance, as it may run a test if an NFS mount point is found and will just pass otherwise. For a deterministic, repeatable build process I would recommend to skip this test by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions