Skip to content

Add timeout decorators to improve test case stability - #2155

Merged
XuehaoSun merged 2 commits into
mainfrom
xuehao/add_timeout
Aug 13, 2026
Merged

XuehaoSun merged 2 commits into
mainfrom
xuehao/add_timeout

Conversation

@XuehaoSun

Copy link
Copy Markdown
Contributor

This pull request increases the robustness of several unit tests by adding or adjusting timeout markers to prevent tests from hanging indefinitely. The main changes are the addition of pytest.mark.timeout decorators to specific test methods and the adjustment of an existing timeout value.

Test timeout improvements:

  • Added a 60-second timeout to test_attention_mask_in_dataset in test_autoround.py to ensure the test fails if it runs too long.
  • Increased the timeout for test_deepseek_v2 in test_static_attn.py from 120 to 180 seconds to accommodate longer test runs.
  • Added a 60-second timeout to test_auto_scheme_export in test_auto_scheme.py for better test reliability.
  • Added a 60-second timeout to test_auto_round_cmd8 in test_cli_usage.py to prevent indefinite execution.

…lity

Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
…taset for stability

Signed-off-by: Sun, Xuehao <xuehao.sun@intel.com>
@AutoRoundBot

Copy link
Copy Markdown
Collaborator

/azp run Unit-Test-CUDA-AutoRound

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@XuehaoSun
XuehaoSun merged commit cee7109 into main Aug 13, 2026
22 checks passed
@XuehaoSun
XuehaoSun deleted the xuehao/add_timeout branch August 13, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants