Skip to content

Don't run stubgen tests by default in runtests.py #8403

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

Merged
merged 1 commit into from
Feb 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't run stubgen tests by default in runtests.py
The tests are slow (around 56s sequentially on my laptop) and not very
likely to break changes not touching stubtest, so it seems reasonable
to make them opt-in outside of CI.
  • Loading branch information
JukkaL committed Feb 14, 2020
commit 7f008d7cdba5dda19cd1d8c6bbf95b3bc7fe6a6c
42 changes: 27 additions & 15 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,38 @@
MYPYC_EXTERNAL = 'TestExternal'
MYPYC_COMMAND_LINE = 'TestCommandLine'
ERROR_STREAM = 'ErrorStreamSuite'


ALL_NON_FAST = [CMDLINE,
SAMPLES,
TYPESHED,
PEP561,
EVALUATION,
DAEMON,
STUBGEN_CMD,
STUBGEN_PY,
MYPYC_RUN,
MYPYC_RUN_MULTI,
MYPYC_EXTERNAL,
MYPYC_COMMAND_LINE,
ERROR_STREAM]
STUBTEST = 'StubtestUnit'
STUBTEST_MISC = 'StubtestMiscUnit'
STUBTEST_INTEGRATION = 'StubtestIntegration'


ALL_NON_FAST = [
CMDLINE,
SAMPLES,
TYPESHED,
PEP561,
EVALUATION,
DAEMON,
STUBGEN_CMD,
STUBGEN_PY,
MYPYC_RUN,
MYPYC_RUN_MULTI,
MYPYC_EXTERNAL,
MYPYC_COMMAND_LINE,
ERROR_STREAM,
STUBTEST,
STUBTEST_MISC,
STUBTEST_INTEGRATION,
]


# These must be enabled by explicitly including 'mypyc-extra' on the command line.
MYPYC_OPT_IN = [MYPYC_RUN,
MYPYC_RUN_MULTI]

# These must be enabled by explicitly including 'stubtest' on the command line.
STUBTEST_OPT_IN = [STUBTEST, STUBTEST_MISC, STUBTEST_INTEGRATION]

# We split the pytest run into three parts to improve test
# parallelization. Each run should have tests that each take a roughly similar
# time to run.
Expand Down Expand Up @@ -76,6 +87,7 @@
# Mypyc tests that aren't run by default, since they are slow and rarely
# fail for commits that don't touch mypyc
'mypyc-extra': 'pytest -k "%s"' % ' or '.join(MYPYC_OPT_IN),
'stubtest': 'pytest -k "%s"' % ' or '.join(STUBTEST_OPT_IN),
}

# Stop run immediately if these commands fail
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy