Enhance unit tests with timeout handling and stability improvements - #2135
Open
XuehaoSun wants to merge 19 commits into
Open
Enhance unit tests with timeout handling and stability improvements#2135XuehaoSun wants to merge 19 commits into
XuehaoSun wants to merge 19 commits into
Conversation
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…cific tests Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…cking Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…reporting Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…it test scripts Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…event premature failures Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…event premature failures Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…rage and stability Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…event premature failures Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…revent premature failures Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…ed stability Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…or test_g128 Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
Collaborator
|
/azp run Unit-Test-CUDA-AutoRound |
|
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Description
This pull request updates the test infrastructure across all pipeline scripts to improve reliability, consistency, and test diagnostics. The main changes include adding the
pytest-timeoutpackage, enforcing test timeouts and session limits, collecting test duration statistics, and standardizing the use of theCOVERAGE_CORE=sysmonenvironment variable for all test runs.Test Infrastructure Improvements
pytest-timeoutto all environments to enforce per-test and session timeouts, reducing the risk of hanging tests. [1] [2] [3] [4] [5]COVERAGE_CORE=sysmonfor consistent coverage collection and environment reporting. [1] [2] [3] [4]Test Execution Enhancements
--timeout,--session-timeout,--durations=0, and--durations-min=1options topytestcalls to enforce time limits and collect test duration data, aiding in identifying slow tests. [1] [2] [3] [4]Test Coverage and Logging
Directory and Path Corrections
These updates make the test pipeline more robust, prevent hanging jobs, and provide better diagnostics for slow or problematic tests.