Mercurial > public > mercurial-scm > hg-stable
comparison contrib/automation/hgautomation/cli.py @ 48376:ae28d37f5969 stable
automation: use m6i instances
This instance type is much, much faster than t3 and can perform
tasks much quicker.
Differential Revision: https://phab.mercurial-scm.org/D12131
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 26 Aug 2021 17:47:50 -0700 |
parents | 89a2afe31e82 |
children | 834c938227c6 |
comparison
equal
deleted
inserted
replaced
48375:a1538c05d855 | 48376:ae28d37f5969 |
---|---|
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'}, | 504 choices={'2.7', '3.5', '3.6', '3.7', '3.8', '3.9'}, |