[Celestica] Support long duration test for AgentEnsembleLinkSanityTestDataPlaneFlood and ASIC-ASIC PRBS Tests#1066
Open
lihua-cls wants to merge 1 commit intofacebook:mainfrom
Open
Conversation
…ood and ASIC-ASIC PRBS Tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-submission checklist
pip install -r requirements-dev.txt && pre-commit installpre-commit runSummary
Modify below tests to support a long duration tests, i.e: 48-hour continuous run:
Prbs_ASIC_P31_TO_ASIC_P31.prbsSanity
AgentEnsembleLinkSanityTestDataPlaneFlood.warmbootIsHitLess
AgentEnsembleLinkSanityTestDataPlaneFlood.qsfpWarmbootIsHitLess
Solution
add a flag "--link_stress_duration " for both run_test.py and single binary run, which will be used to specify the time duration (in minutes) the case running.
Note: There's already another flag --link_stress_test which will run Prbs Test for 10 minutes. If both "link_stress_test" and "link_stress_duration" specified, only the old one "link_stress_test" will take effect to keep the behavior no change. If no "link_stress_duration" specified, the behavior keep no change as before.
Longer the Prbs check interval (previously was 10s) to 3 minutes if duration more than 10 minutes.
For DataPlaneFlood test cases, periodically pump traffic every 10 seconds during the test, until the duration timeout.
In run_test.py, overwrite the test_run_timeout so that the case won't be timeout.
Test Plan
Test Result
Full logs in Gdrive