FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
powertools-lambda-python/parallel_run_e2e.py at develop · aws-powertools/powertools-lambda-python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
aws-powertools
/
powertools-lambda-python
Public
Notifications
You must be signed in to change notification settings
Fork
492
Star
3.3k
Code
Issues
33
Pull requests
10
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
powertools-lambda-python
/
parallel_run_e2e.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
18 lines (12 loc) · 501 Bytes
Breadcrumbs
powertools-lambda-python
/
parallel_run_e2e.py
Copy path
File metadata and controls
executable file
·
18 lines (12 loc) · 501 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""Calculate how many parallel workers are needed to complete E2E infrastructure jobs across available CPU Cores"""
import
subprocess
import
sys
from
pathlib
import
Path
def
main
():
features
=
Path
(
"tests/e2e"
).
rglob
(
"infrastructure.py"
)
workers
=
len
(
list
(
features
))
-
1
command
=
f"poetry run pytest -n
{
workers
}
-o log_cli=true tests/e2e"
result
=
subprocess
.
run
(
command
.
split
(),
shell
=
False
,
check
=
False
)
sys
.
exit
(
result
.
returncode
)
if
__name__
==
"__main__"
:
main
()
Back
|
FazBrowse Home
|
New Git URL