branching: merge stable into default
authorRaphaël Gomès <rgomes@octobus.net>
Fri, 18 Feb 2022 11:37:08 +0100
changeset 48794 834c938227c6
parent 48793 6e559391f96e (current diff)
parent 48774 dcec16e799dd (diff)
child 48795 61c27ac5a1c5
branching: merge stable into default
contrib/automation/hgautomation/cli.py
rust/hg-core/src/dirstate_tree/status.rs
--- a/contrib/automation/hgautomation/aws.py	Thu Feb 17 07:34:49 2022 +0100
+++ b/contrib/automation/hgautomation/aws.py	Fri Feb 18 11:37:08 2022 +0100
@@ -904,7 +904,7 @@
                 'Ebs': {
                     'DeleteOnTermination': True,
                     'VolumeSize': 10,
-                    'VolumeType': 'gp2',
+                    'VolumeType': 'gp3',
                 },
             },
         ],
@@ -1048,7 +1048,7 @@
             'Ebs': {
                 'DeleteOnTermination': True,
                 'VolumeSize': 12,
-                'VolumeType': 'gp2',
+                'VolumeType': 'gp3',
             },
         }
     ]
@@ -1075,7 +1075,7 @@
                 'Ebs': {
                     'DeleteOnTermination': True,
                     'VolumeSize': 8,
-                    'VolumeType': 'gp2',
+                    'VolumeType': 'gp3',
                 },
             }
         )
@@ -1151,13 +1151,13 @@
                 'Ebs': {
                     'DeleteOnTermination': True,
                     'VolumeSize': 32,
-                    'VolumeType': 'gp2',
+                    'VolumeType': 'gp3',
                 },
             }
         ],
         'ImageId': image.id,
         'InstanceInitiatedShutdownBehavior': 'stop',
-        'InstanceType': 't3.medium',
+        'InstanceType': 'm6i.large',
         'KeyName': '%sautomation' % prefix,
         'MaxCount': 1,
         'MinCount': 1,
@@ -1311,7 +1311,7 @@
                 'Ebs': {
                     'DeleteOnTermination': True,
                     'VolumeSize': 32,
-                    'VolumeType': 'gp2',
+                    'VolumeType': 'gp3',
                 },
             }
         ],
--- a/contrib/automation/hgautomation/cli.py	Thu Feb 17 07:34:49 2022 +0100
+++ b/contrib/automation/hgautomation/cli.py	Fri Feb 18 11:37:08 2022 +0100
@@ -151,7 +151,7 @@
     image = aws.ensure_windows_dev_ami(c, base_image_name=base_image_name)
     DIST_PATH.mkdir(exist_ok=True)
 
-    with aws.temporary_windows_dev_instances(c, image, 't3.medium') as insts:
+    with aws.temporary_windows_dev_instances(c, image, 'm6i.large') as insts:
         instance = insts[0]
 
         winrm_client = instance.winrm_client
@@ -496,7 +496,7 @@
     sp.add_argument(
         '--instance-type',
         help='EC2 instance type to use',
-        default='t3.medium',
+        default='m6i.large',
     )
     sp.add_argument(
         '--python-version',
--- a/rust/hg-core/src/dirstate_tree/status.rs	Thu Feb 17 07:34:49 2022 +0100
+++ b/rust/hg-core/src/dirstate_tree/status.rs	Fri Feb 18 11:37:08 2022 +0100
@@ -778,7 +778,17 @@
         let mut results = Vec::new();
         for entry in read_dir_path.read_dir()? {
             let entry = entry?;
-            let metadata = entry.metadata()?;
+            let metadata = match entry.metadata() {
+                Ok(v) => v,
+                Err(e) => {
+                    // race with file deletion?
+                    if e.kind() == std::io::ErrorKind::NotFound {
+                        continue;
+                    } else {
+                        return Err(e);
+                    }
+                }
+            };
             let file_name = entry.file_name();
             // FIXME don't do this when cached
             if file_name == ".hg" {