Skip to content

Commit 9881132

Browse files
committed
ci: Use windows VMs instead of windows containers
So far we have used containers for testing windows on cirrus-ci. Unfortunately they come with substantial overhead: First, the container images are pulled onto the host on-demand. Due to the large size of windows containers, that ends up taking nearly 4 minutes. Secondly, IO is slow, leading to CI runs taking long. Thus switch to windows VMs, improving windows CI times by well over 2x. Author: Nazir Bilal Yavuz <byavuz81@gmail.com> Discussion: https://postgr.es/m/211afb88-6df6-b74d-f1b7-84b5f21ad875@gmail.com Backpatch: 15-, where CI was added
1 parent 7ae0ab0 commit 9881132

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.cirrus.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,10 @@ task:
549549
depends_on: SanityCheck
550550
only_if: $CIRRUS_CHANGE_MESSAGE !=~ '.*\nci-os-only:.*' || $CIRRUS_CHANGE_MESSAGE =~ '.*\nci-os-only:[^\n]*windows.*'
551551

552-
windows_container:
553-
image: $CONTAINER_REPO/windows_ci_vs_2019:latest
552+
compute_engine_instance:
553+
image_project: $IMAGE_PROJECT
554+
image: family/pg-ci-windows-ci-vs-2019
555+
platform: windows
554556
cpu: $CPUS
555557
memory: 4G
556558

@@ -589,8 +591,10 @@ task:
589591
# otherwise it'll be sorted before other tasks
590592
depends_on: SanityCheck
591593

592-
windows_container:
593-
image: $CONTAINER_REPO/windows_ci_mingw64:latest
594+
compute_engine_instance:
595+
image_project: $IMAGE_PROJECT
596+
image: family/pg-ci-windows-ci-mingw64
597+
platform: windows
594598
cpu: $CPUS
595599
memory: 4G
596600

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy