mirror of
https://github.com/postgres/postgres.git
synced 2025-05-13 01:13:08 -04:00
ci: Use VMs for SanityCheck and CompilerWarnings
The main reason for this change is to reduce different ways of executing tasks, making it easier to use custom compute resources for cfbot. A secondary benefit is that the tasks seem slightly faster this way, apparently the increased startup overhead is outweighed by reduced runtime overhead. Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/20230808021541.7lbzdefvma7qmn3w@awork3.anarazel.de Backpatch: 15-, where CI support was added
This commit is contained in:
parent
cad461b044
commit
f518c909ea
14
.cirrus.yml
14
.cirrus.yml
@ -110,15 +110,14 @@ task:
|
|||||||
CPUS: 4
|
CPUS: 4
|
||||||
BUILD_JOBS: 8
|
BUILD_JOBS: 8
|
||||||
TEST_JOBS: 8
|
TEST_JOBS: 8
|
||||||
|
IMAGE_FAMILY: pg-ci-bullseye
|
||||||
CCACHE_DIR: ${CIRRUS_WORKING_DIR}/ccache_dir
|
CCACHE_DIR: ${CIRRUS_WORKING_DIR}/ccache_dir
|
||||||
# no options enabled, should be small
|
# no options enabled, should be small
|
||||||
CCACHE_MAXSIZE: "150M"
|
CCACHE_MAXSIZE: "150M"
|
||||||
|
|
||||||
# Container starts up quickly, but is slower at runtime, particularly for
|
# While containers would start up a bit quicker, building is a bit
|
||||||
# tests. Good for the briefly running sanity check.
|
# slower. This way we don't have to maintain a container image.
|
||||||
container:
|
<<: *linux_task_template
|
||||||
image: $CONTAINER_REPO/linux_debian_bullseye_ci:latest
|
|
||||||
cpu: $CPUS
|
|
||||||
|
|
||||||
ccache_cache:
|
ccache_cache:
|
||||||
folder: $CCACHE_DIR
|
folder: $CCACHE_DIR
|
||||||
@ -691,6 +690,7 @@ task:
|
|||||||
env:
|
env:
|
||||||
CPUS: 4
|
CPUS: 4
|
||||||
BUILD_JOBS: 4
|
BUILD_JOBS: 4
|
||||||
|
IMAGE_FAMILY: pg-ci-bullseye
|
||||||
|
|
||||||
# Use larger ccache cache, as this task compiles with multiple compilers /
|
# Use larger ccache cache, as this task compiles with multiple compilers /
|
||||||
# flag combinations
|
# flag combinations
|
||||||
@ -700,9 +700,7 @@ task:
|
|||||||
LINUX_CONFIGURE_FEATURES: *LINUX_CONFIGURE_FEATURES
|
LINUX_CONFIGURE_FEATURES: *LINUX_CONFIGURE_FEATURES
|
||||||
LINUX_MESON_FEATURES: *LINUX_MESON_FEATURES
|
LINUX_MESON_FEATURES: *LINUX_MESON_FEATURES
|
||||||
|
|
||||||
container:
|
<<: *linux_task_template
|
||||||
image: $CONTAINER_REPO/linux_debian_bullseye_ci:latest
|
|
||||||
cpu: $CPUS
|
|
||||||
|
|
||||||
sysinfo_script: |
|
sysinfo_script: |
|
||||||
id
|
id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user