From 8554088c1586473aba1daa125f7c1219f16f5320 Mon Sep 17 00:00:00 2001 From: hacktobeer Date: Wed, 8 Oct 2025 12:48:36 +0200 Subject: [PATCH 1/2] Add timeout to build step of export method. --- libcloudforensics/providers/gcp/internal/compute.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libcloudforensics/providers/gcp/internal/compute.py b/libcloudforensics/providers/gcp/internal/compute.py index 0d9d889e..440d8160 100644 --- a/libcloudforensics/providers/gcp/internal/compute.py +++ b/libcloudforensics/providers/gcp/internal/compute.py @@ -2289,6 +2289,7 @@ def ExportImage( build_args = [ '-source_image={0:s}'.format(self.name), '-destination_uri={0:s}'.format(full_path), + '-timeout=86400s', '-client_id=api', ] if image_format: From 0dd6cb8528de443b5b319b427c90d71f37a154d5 Mon Sep 17 00:00:00 2001 From: hacktobeer Date: Wed, 8 Oct 2025 12:56:12 +0200 Subject: [PATCH 2/2] add newline due to tests failing --- tests/providers/gcp/test_forensics.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/providers/gcp/test_forensics.py b/tests/providers/gcp/test_forensics.py index af4bf01e..f9116652 100644 --- a/tests/providers/gcp/test_forensics.py +++ b/tests/providers/gcp/test_forensics.py @@ -177,4 +177,3 @@ def testCopyDisksToGCS(self, mock_project: mock.MagicMock) -> None: gcs_output_folder=f'gs://{dest_bucket_name}/{"/path/to/directory/"}', image_format='qcow2', output_name=mock_disk_obj.name) - \ No newline at end of file