Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2295 [Umbrella] Stabilize E2E tests
  3. YUNIKORN-2293

Flaky E2E Test: Failed asserts in LogTestClusterInfoWrapper() blocked the resources cleanup steps

    XMLWordPrintableJSON

Details

    Description

      If an E2E test fails, we will dump the cluster status through the following functions:

      1. test/e2e/wrappers.go#LogTestClusterInfoWrapper()
      2. test/e2e/wrappers.go#LogYunikornContainer()

      However, these log functions contain several assertions, and a failed assertion will block other cleanup steps in AfterEach. Incomplete cleanup can cause other E2E tests to fail.
       
      For example, E2E test (#967) failed due to a flaky assert in gang scheduling. The afterEach status have no application in queue, which caused an assert function failed.  Furthermore, the incompleted resources cleanup caused the following E2E tests to fail as well:

      • simple_preemptor
      • state_aware_app_scheduling
      • user_group_limit

      We should remove the assertions in those dump functions and just purely log the error messages.

      Attachments

        Issue Links

          Activity

            People

              Yu-Lin Chen Yu-Lin Chen
              Yu-Lin Chen Yu-Lin Chen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: