Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-61331

Test execution failing with error: 'error running a test suite: no tests to run'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.20
    • Test Framework
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      When running tests from openshift/origin, under test_suite like 'openshift/conformance/serial', test execution skips and outputs below error:'no tests to run'
      
      

      Version-Release number of selected component (if applicable):

      openshift-tests image extracted from OCP build 4.20.0-0.nightly-2025-09-01-101753

       

      How reproducible:

      Always

      Steps to Reproduce:

          1. Setup OCP cluster, eg. OCP 4.20 on GCE
          2. Export TEST_SUITE=openshift/conformance/serial
          3. Execute test run passing '--dry-run', outputs expected test-cases,
      For example,
      
      $ ./openshift-tests run "${TEST_SUITE}" --dry-run | grep -E "*gke.*Dynamic PV.*volumes should allow exec of files on the volume*" | ./openshift-tests run --dry-run -f -
      
      INFO[0014] Filter chain completed with 496 tests         component=test-filter final_count=496
      "[sig-storage] CSI Volumes [Driver: pd.csi.storage.gke.io] [Serial] [Testpattern: Dynamic PV (default fs)] volumes should allow exec of files on the volume [Suite:openshift/conformance/serial] [Suite:k8s]"
      "[sig-storage] CSI Volumes [Driver: pd.csi.storage.gke.io] [Serial] [Testpattern: Dynamic PV (ext3)] volumes should allow exec of files on the volume [Suite:openshift/conformance/serial] [Suite:k8s]"
      "[sig-storage] CSI Volumes [Driver: pd.csi.storage.gke.io] [Serial] [Testpattern: Dynamic PV (ext4)] volumes should allow exec of files on the volume [Suite:openshift/conformance/serial] [Suite:k8s]"
      "[sig-storage] CSI Volumes [Driver: pd.csi.storage.gke.io] [Serial] [Testpattern: Dynamic PV (ntfs)] [Feature:Windows] volumes should allow exec of files on the volume [Suite:openshift/conformance/serial] [Suite:k8s]"
      
          4. Now remove '--dry-run' and execute test run, results in 'error: no tests to run'

      Actual results:

      $ $ ./openshift-tests run "${TEST_SUITE}" --dry-run | grep -E "*gke.*Dynamic PV.*volumes should allow exec of files on the volume*" | ./openshift-tests run "${TEST_SUITE}" -f -
      
      INFO[0018] Generated skips for cluster state             skips="[[Skipped:gce] [Skipped:Network/OVNKubernetes] [Feature:Networking-IPv6] [Feature:IPv6DualStack [Feature:SCTPConnectivity]]" INFO[0018] Applying filter: suite-qualifiers             before=7010 component=test-filter filter=suite-qualifiers INFO[0029] Filter suite-qualifiers completed - removed 6670 tests  after=340 before=7010 component=test-filter filter=suite-qualifiers removed=6670 INFO[0029] Applying filter: kube-rebase-tests            before=340 component=test-filter filter=kube-rebase-tests INFO[0029] Filter kube-rebase-tests completed - removed 0 tests  after=340 before=340 component=test-filter filter=kube-rebase-tests removed=0 INFO[0029] Applying filter: disabled-tests               before=340 component=test-filter filter=disabled-tests INFO[0029] Filter disabled-tests completed - removed 0 tests  after=340 before=340 component=test-filter filter=disabled-tests removed=0 INFO[0029] Applying filter: match-function               before=340 component=test-filter filter=match-function INFO[0029] Filter match-function completed - removed 340 tests  after=0 before=340 component=test-filter filter=match-function removed=340 INFO[0029] Applying filter: cluster-state                before=0 component=test-filter filter=cluster-state INFO[0029] Filter cluster-state completed - removed 0 tests  after=0 before=0 component=test-filter filter=cluster-state removed=0 
      
      INFO[0029] Filter chain completed with 0 tests           component=test-filter final_count=0 Suite run returned error: no tests to run error: error running a test suite: no tests to run
      
      

      Expected results:

      Test run should result in execution of expected test cases

      Additional info:

          

              stbenjam Stephen Benjamin
              rh-ee-rdeore Rahul Deore
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: