mirror of
https://github.com/python/cpython.git
synced 2025-09-05 00:11:10 +00:00
gh-109566, regrtest: Add --fast-ci and --slow-ci options (#109570)
* Add --fast-ci and --slow-ci options to libregrtest: * --fast-ci uses a default timeout of 10 minutes and "-u all,-cpu" (skip slowest tests). * --slow-ci uses a default timeout of 20 minues and "-u all" (run all tests). * regrtest header now lists test resources. * Makefile changes: * "make test", "make hostrunnertest" and "make coverage-report" now use --fast-ci option and TESTTIMEOUT variable. * "make buildbottest" now uses "--slow-ci". Remove options which became redundant with "--slow-ci". * "make testall" and "make testuniversal" now use --slow-ci option and TESTTIMEOUT variable. * "make testall" now uses "find -exec rm ..." instead of "find ... -print|xargs rm ...", same as "make clean". * GitHub Actions workflow: * Ubuntu and Address Sanitizer jobs now use "make test". Remove options which became redundant with "--fast-ci". * Windows jobs now use --fast-ci option. * Use -j0 to detect the number of CPUs. * Set Makefile TESTTIMEOUT default to an empty string, since --slow-ci and --fast-ci use different default timeout. It's now accepted to pass "--timeout=" to regrtest: treated as not timeout. * Tools/scripts/run_tests.py now uses --fast-ci option. * Tools/buildbot/test.bat now uses --slow-ci option. Remove --timeout=1200 option, redundant with --slow-ci.
This commit is contained in:
parent
19bf398695
commit
859618c8cd
11 changed files with 161 additions and 51 deletions
|
@ -547,7 +547,7 @@ def adjust_rlimit_nofile():
|
|||
f"{new_fd_limit}: {err}.")
|
||||
|
||||
|
||||
def display_header():
|
||||
def display_header(use_resources: tuple[str, ...]):
|
||||
encoding = sys.stdout.encoding
|
||||
|
||||
# Print basic platform information
|
||||
|
@ -569,6 +569,13 @@ def display_header():
|
|||
print("== encodings: locale=%s, FS=%s"
|
||||
% (locale.getencoding(), sys.getfilesystemencoding()))
|
||||
|
||||
|
||||
if use_resources:
|
||||
print(f"== resources ({len(use_resources)}): "
|
||||
f"{', '.join(sorted(use_resources))}")
|
||||
else:
|
||||
print(f"== resources: (all disabled, use -u option)")
|
||||
|
||||
# This makes it easier to remember what to set in your local
|
||||
# environment when trying to reproduce a sanitizer failure.
|
||||
asan = support.check_sanitizer(address=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue