comparison contrib/automation/hgautomation/cli.py @ 48794:834c938227c6

branching: merge stable into default
author Raphaël Gomès <rgomes@octobus.net>
date Fri, 18 Feb 2022 11:37:08 +0100
parents fc1ba19ec4a0 ae28d37f5969
children d79f0ce95c47
comparison
equal deleted inserted replaced
48793:6e559391f96e 48794:834c938227c6
149 ): 149 ):
150 c = hga.aws_connection(aws_region) 150 c = hga.aws_connection(aws_region)
151 image = aws.ensure_windows_dev_ami(c, base_image_name=base_image_name) 151 image = aws.ensure_windows_dev_ami(c, base_image_name=base_image_name)
152 DIST_PATH.mkdir(exist_ok=True) 152 DIST_PATH.mkdir(exist_ok=True)
153 153
154 with aws.temporary_windows_dev_instances(c, image, 't3.medium') as insts: 154 with aws.temporary_windows_dev_instances(c, image, 'm6i.large') as insts:
155 instance = insts[0] 155 instance = insts[0]
156 156
157 winrm_client = instance.winrm_client 157 winrm_client = instance.winrm_client
158 158
159 windows.synchronize_hg(SOURCE_ROOT, revision, instance) 159 windows.synchronize_hg(SOURCE_ROOT, revision, instance)
494 help='Run tests on Windows', 494 help='Run tests on Windows',
495 ) 495 )
496 sp.add_argument( 496 sp.add_argument(
497 '--instance-type', 497 '--instance-type',
498 help='EC2 instance type to use', 498 help='EC2 instance type to use',
499 default='t3.medium', 499 default='m6i.large',
500 ) 500 )
501 sp.add_argument( 501 sp.add_argument(
502 '--python-version', 502 '--python-version',
503 help='Python version to use', 503 help='Python version to use',
504 choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'}, 504 choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10'},