-
Notifications
You must be signed in to change notification settings - Fork 19
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
Low performance on TG initialization in tests #155
Comments
After a long test run when reusing Ixia sessions, some tests might start timing out when trying to access tgen api (start protocols, assign ports, etc.). This is most often seen with the older The easiest solution that we have is to delete the current session at the end of every test (or every test group). This will ensure that there is no persistent configuration left in the session that might cause this issue. Unfortunately, this will significantly increase the test run duration (the last successful run was ~25hrs long, as opposed to ~18hrs when reusing sessions), but it will make the test runs more consistent. Ethernet card:
All subsequent tests that are using tgen start to fail as well:
10G card:
|
Currently, each test does a connection to TG and port assignment. Those operations take more than 20 seconds.
When there will be about 300 tests time wastage will be about 2 hours.
Existing methods
tgen_utils_traffic_generator_connect
andtgen_utils_create_devices_and_connect
expect protocols configuration which is a part of the test case scenario.The idea is to preserve connection and port assignment on a session level. So each test will only configure/clear protocols and/or streams. For that, we have to decouple the connection from any TG configuration.
The text was updated successfully, but these errors were encountered: