Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-21112

[Tech-debt] Refine import-controller e2e test to reduce the execution time

XMLWordPrintable

    • Refine import-controller e2e test to reduce the execution time
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • Green
    • In Progress
    • 33% To Do, 0% In Progress, 67% Done

      OCP/Telco Definition of Done
      https://docs.google.com/document/d/1TP2Av7zHXz4_fmeX4q9HB0m9cqSZ4F6Jd4AiVoaF_2s/edit#heading=h.gaa58bzbvwde
      Epic Template descriptions and documentation.
      https://docs.google.com/document/d/14CUCEg6hQ_jpsFzJtWo29GfFVWmun2Uivrxq3_Fkgdg/edit
      ACM-wide Product Requirements (Top-level Epics)
      https://docs.google.com/document/d/1uIp6nS2QZ766UFuZBaC9USs8dW_I5wVdtYF9sUObYKg/edit

      *<--- Cut-n-Paste the entire contents of this description into your new
      Epic --->*

      Epic Goal

      Why is this important?

      Currently, it takes more than 1 hours to run the e2e test case of the the import-controller repo.

      Ran 43 of 44 Specs in 4184.795 seconds
      SUCCESS! -- 43 Passed | 0 Failed | 0 Pending | 1 Skipped
      --- PASS: TestE2E (4184.80s)

      And the execution of some test case lasts for 190+ seconds.

      Importing a managed cluster manually Should import the cluster manually
      /home/runner/work/managedcluster-import-controller/managedcluster-import-controller/test/e2e/manuallyimport_test.go:39
        STEP: Create managed cluster namespace import-test-rlhjvt @ 05/29/25 13:48:08.663
        ... ...
        STEP: Delete the managed cluster import-test-rlhjvt @ 05/29/25 13:48:29.983
        STEP: Should delete the managed cluster import-test-rlhjvt @ 05/29/25 13:48:29.994
        DEBUG: spending time: 164.54 seconds
        STEP: Should delete the managed cluster namespace import-test-rlhjvt @ 05/29/25 13:51:14.53
        DEBUG: spending time: 5.02 seconds
        STEP: Should delete the open-cluster-management-agent namespace @ 05/29/25 13:51:19.546
        DEBUG: delete the open-cluster-management-agent namespace spending time: 0.00 seconds
        STEP: Should delete the klusterlet crd @ 05/29/25 13:51:19.548
        DEBUG: delete klusterlet crd spending time: 0.00 seconds
      • [190.885 seconds] 

      It's necessary to refine either the test cases or the e2e job to reduce the total e2e test execution time, which will speed up the PR commit of this repo.

      Scenarios

      ...

      Acceptance Criteria

      ...

      Dependencies (internal and external)

      1. ...

      Previous Work (Optional):

      1. ...

      Open questions:

      Done Checklist

      • CI - CI is running, tests are automated and merged.
      • Release Enablement <link to Feature Enablement Presentation>
      • DEV - Upstream code and tests merged: <link to meaningful PR or GitHub
        Issue>
      • DEV - Upstream documentation merged: <link to meaningful PR or GitHub
        Issue>
      • DEV - Downstream build attached to advisory: <link to errata>
      • QE - Test plans in Polarion: <link or reference to Polarion>
      • QE - Automated tests merged: <link or reference to automated tests>
      • DOC - Doc issue opened with a completed template. Separate doc issue
        opened for any deprecation, removal, or any current known
        issue/troubleshooting removal from the doc, if applicable.
      • Considerations were made for Extended Update Support (EUS)

              jiazhu@redhat.com Jian Zhu
              leyan@redhat.com Le Yang
              Hui Chen Hui Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: