Details

    • 9223372036854775807

    Description

      Tests should not use skip_env if they are skipped because FSTYPE != "ldiskfs".

      Such tests would always be skipped when the filesystem type is ZFS, and this is not an indication of a deficient test environment. The skip_env() check is meant for detecting test environments that are lacking things like test programs (e.g. dbench or IOR) or are configured incorrectly (e.g. MDT or OST is too small, or not enough of them for basic tests). The intent is that skip_env() allows such tests to be skipped during developer testing, where the test environment may not have everything configured, but it should be considered an error() if the autotest environment does not have everything installed properly in order to execute the test case.

      The regular "skip" check is intended to skip tests when the configuration is unsuitable for the current test for whatever reason, so we don't need to mark such cases with "skip_env".

      It looks like several such checks are in the current tests:

      • sanity.sh test 17m (ldiskfs), 17n, 24E, 51e, 57a, 57b, 60a, 77a (GSS), 77b, 77c, 77d, 77f, 77g, 77k, 100, 101a, 103a, 129, 130a (ZFS), 130b, 130c, 130d, 130e, 228a, 228b, 228c, 233a, 233b, 252, 315, 399b, 804,

      Attachments

        Issue Links

          Activity

            [LU-12146] remove "skip_env" for FSTYPE=zfs

            There are a bunch of other places that skip_env is incorrectly used, in particular for $MDSCOUNT and other places that are just variations in the test configs, and not shortcomings in the Lustre autotest environment. I guess we could force all tests to run with multiple MDTs, but I don't think that is the case today.

            It would be interesting to at least try one test run with $FAIL_ON_SKIP_ENV=true and see what fails. Ideally once these patches are run and any resulting failures are fixed, then we could enable this by default in the future?

            adilger Andreas Dilger added a comment - There are a bunch of other places that skip_env is incorrectly used, in particular for $MDSCOUNT and other places that are just variations in the test configs, and not shortcomings in the Lustre autotest environment. I guess we could force all tests to run with multiple MDTs, but I don't think that is the case today. It would be interesting to at least try one test run with $FAIL_ON_SKIP_ENV=true and see what fails. Ideally once these patches are run and any resulting failures are fixed, then we could enable this by default in the future?

            People

              wc-triage WC Triage
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: