ripe-cpu-85141
07/29/2022, 4:27 PM./pants test a/test_file.py
on my python/pytest repo and that call pulls a dozen of third-party dependencies, which looks "normal" to me.
The problem is that the test doesn't exec. It takes around 80 seconds to build requirements.pex
and then seems to loop forever when trying to build pytest_runner.pex
before my machine goes out of memory.
I'm not sure what I did wrong or how to debug that 😕happy-kitchen-89482
07/29/2022, 4:46 PMhundreds-father-404
07/29/2022, 4:47 PMhundreds-father-404
07/29/2022, 4:47 PMripe-cpu-85141
07/29/2022, 4:53 PMpython_requirements
targets, it goes through (the tests fails but ./pants test
ends)hundreds-father-404
07/29/2022, 4:54 PMripe-cpu-85141
07/29/2022, 4:56 PM[pytest]
lockfile = ".pytest.lock"
in the pants.toml
fileripe-cpu-85141
07/29/2022, 4:58 PMripe-cpu-85141
07/29/2022, 5:16 PMpex: Vendoring pkg_resources from PreparedGit(key='setuptools', requirement='git+<https://github.com/pantsbuild/setuptools@3acb925dd708430aeaf197ea53ac8a752f7c1863#egg=setuptools>', rewrite=True, constrain=False, constraints=None) @ /home/nhaller/.cache/pants/named_caches/pex_root/installed_wheels/6242b902db69f59e1092b406655c0fb1634486c47ce563f5fd27277cf4561822/pex-2.1.90-py2.py3-none-any.whl/pex/vendor/_vendored/setuptools
Unfortunately, that won't fly in my restricted network environment.ripe-cpu-85141
07/29/2022, 5:32 PMboto3-stubs[account,autoscaling,s3,organizations,cloudformation,sts,ec2,elb,elbv2,health,lambda,stepfunctions,securityhub,xray,cloudtrail,kms,iam,cloudwatch,logs,config,backup,ce,glue,athena,ecr,ssm,route53,guardduty,s3control,secretsmanager,rds,sqs,resourcegroupstaggingapi, transfer, sns, servicecatalog, sagemaker, efs, redshift, ram, quicksight,opensearch, mq, firehose, emr, elasticache, eks, ecs, dynamodb, batch, apigateway, acm, acm-pca, route53resolver, accessanalyzer, events, kinesis, appsync, emr-containers, kendra, auditmanager, inspector2, ds, synthetics]
It seems pants really don't like it. The ./pants generate-lockfiles
takes way longer with that (~150 seconds) and it seems to be the line blocking pytest_runner.pex
buildingripe-cpu-85141
07/29/2022, 5:35 PMboto3-stubs
mypy-boto3-account
mypy-boto3-autoscaling
...
?ripe-cpu-85141
07/29/2022, 6:07 PM./pants test a/tests/test_something.py
a first time, it works almost instantly.
Then I run the same command a second time, it endlessly builds pytext_runner.pex.
Then if I ctrl+c and re-run for a third time, it works instantly again.
If I rerun, endlessly builds pytext_runner.pex and so on and so onhappy-kitchen-89482
07/29/2022, 6:48 PMhappy-kitchen-89482
07/29/2022, 6:50 PM09:36:26.87 [INFO] Initializing scheduler...
09:36:28.24 [INFO] Scheduler initialized.
happy-kitchen-89482
07/29/2022, 6:51 PMboto3-stubs[account,autoscaling,s3,organizations,cloudformation,sts,ec2,elb,elbv2,health,lambda,stepfunctions,securityhub,xray,cloudtrail,kms,iam,cloudwatch,logs,config,backup,ce,glue,athena,ecr,ssm,route53,guardduty,s3control,secretsmanager,rds,sqs,resourcegroupstaggingapi, transfer, sns, servicecatalog, sagemaker, efs, redshift, ram, quicksight,opensearch, mq, firehose, emr, elasticache, eks, ecs, dynamodb, batch, apigateway, acm, acm-pca, route53resolver, accessanalyzer, events, kinesis, appsync, emr-containers, kendra, auditmanager, inspector2, ds, synthetics]
happy-kitchen-89482
07/29/2022, 6:51 PMhappy-kitchen-89482
07/29/2022, 6:52 PMhappy-kitchen-89482
07/29/2022, 6:52 PMhappy-kitchen-89482
07/29/2022, 6:53 PMhappy-kitchen-89482
07/29/2022, 6:54 PMhappy-kitchen-89482
07/29/2022, 6:54 PMripe-cpu-85141
07/29/2022, 7:12 PMpants_version = "2.12.0+git5d31cdb5"
ripe-cpu-85141
07/29/2022, 7:13 PMmypy3-boto3-account
and so onripe-cpu-85141
07/29/2022, 7:14 PMripe-cpu-85141
07/29/2022, 7:23 PMhappy-kitchen-89482
07/29/2022, 11:14 PMhappy-kitchen-89482
07/29/2022, 11:15 PMhappy-kitchen-89482
07/29/2022, 11:16 PMhappy-kitchen-89482
07/29/2022, 11:18 PMhappy-kitchen-89482
07/29/2022, 11:19 PM