Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor CiliumExecContext() Retry Logic #28131

Merged
merged 1 commit into from
Sep 13, 2023

Commits on Sep 13, 2023

  1. Refactor CiliumExecContext() Retry Logic

    Previously, the CiliumExecContext() function would retry the cilium command up to 5 times (limitTimes) without verifying the success of previous executions. This pull request introduces a logic enhancement that validates the return code of each executed command and exits upon success.
    
    Additionally, this change optimizes test execution time by reducing unnecessary retries. With a 200ms delay between retries, the overall test execution time is expected to improve by at least 200ms multiplied by the number of cilium commands and the number of cilium pods involved.
    
    Local Ginkgo tests, specifically those focused on 'K8sDatapathBGPTests' 'K8sDatapathCustomCalls' and 'K8sDatapathLRPTests' have shown significant improvements:
    
    Before:
    `Ran 2 of 106 Specs in 233.348 seconds`
    
    After:
    `Ran 2 of 106 Specs in 168.563 seconds`
    
    Signed-off-by: Boris Petrovic <carnerito.b@gmail.com>
    carnerito committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    4a5366d View commit details
    Browse the repository at this point in the history