mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
Rework .cirrus.yml a bit to commonize some parts
This commit is contained in:
parent
7990986c01
commit
b8f745ca84
2 changed files with 39 additions and 37 deletions
72
.cirrus.yml
72
.cirrus.yml
|
@ -25,7 +25,7 @@ resources_template: &RESOURCES_TEMPLATE
|
||||||
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
||||||
greedy: true
|
greedy: true
|
||||||
|
|
||||||
macos_resources_template: &MACOS_RESOURCES_TEMPLATE
|
macos_environment: &MACOS_ENVIRONMENT
|
||||||
# https://medium.com/cirruslabs/new-macos-task-execution-architecture-for-cirrus-ci-604250627c94
|
# https://medium.com/cirruslabs/new-macos-task-execution-architecture-for-cirrus-ci-604250627c94
|
||||||
# suggests we can go faster here:
|
# suggests we can go faster here:
|
||||||
env:
|
env:
|
||||||
|
@ -34,6 +34,25 @@ macos_resources_template: &MACOS_RESOURCES_TEMPLATE
|
||||||
# No permission to write to default location of /zeek
|
# No permission to write to default location of /zeek
|
||||||
CIRRUS_WORKING_DIR: /tmp/zeek
|
CIRRUS_WORKING_DIR: /tmp/zeek
|
||||||
|
|
||||||
|
freebsd_resources_template: &FREEBSD_RESOURCES_TEMPLATE
|
||||||
|
cpu: 8
|
||||||
|
# Not allowed to request less than 8GB for an 8 CPU FreeBSD VM.
|
||||||
|
memory: 8GB
|
||||||
|
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
||||||
|
greedy: true
|
||||||
|
|
||||||
|
freebsd_environment: &FREEBSD_ENVIRONMENT
|
||||||
|
env:
|
||||||
|
ZEEK_CI_CPUS: 8
|
||||||
|
ZEEK_CI_BTEST_JOBS: 8
|
||||||
|
|
||||||
|
sanitizers_resource_template: &SANITIZERS_RESOURCE_TEMPLATE
|
||||||
|
cpu: 4
|
||||||
|
# Sanitizers uses a lot more memory than a typical config.
|
||||||
|
memory: 12GB
|
||||||
|
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
||||||
|
greedy: true
|
||||||
|
|
||||||
ci_template: &CI_TEMPLATE
|
ci_template: &CI_TEMPLATE
|
||||||
only_if: >
|
only_if: >
|
||||||
$CIRRUS_PR != '' ||
|
$CIRRUS_PR != '' ||
|
||||||
|
@ -54,11 +73,12 @@ ci_template: &CI_TEMPLATE
|
||||||
folder: testing/external/zeek-testing-traces
|
folder: testing/external/zeek-testing-traces
|
||||||
fingerprint_script: echo zeek-testing-traces
|
fingerprint_script: echo zeek-testing-traces
|
||||||
populate_script: ./ci/init-external-repos.sh
|
populate_script: ./ci/init-external-repos.sh
|
||||||
|
reupload_on_changes: true
|
||||||
|
|
||||||
always:
|
always:
|
||||||
ccache_cache:
|
ccache_cache:
|
||||||
folder: /tmp/ccache
|
folder: /tmp/ccache
|
||||||
fingerprint_script: echo $CIRRUS_TASK_NAME-$CIRRUS_OS
|
fingerprint_script: echo ccache-$CIRRUS_TASK_NAME-$CIRRUS_OS
|
||||||
reupload_on_changes: true
|
reupload_on_changes: true
|
||||||
|
|
||||||
init_external_repos_script: ./ci/init-external-repos.sh
|
init_external_repos_script: ./ci/init-external-repos.sh
|
||||||
|
@ -229,7 +249,7 @@ macos_monterey_task:
|
||||||
image: monterey-xcode-13.1
|
image: monterey-xcode-13.1
|
||||||
prepare_script: ./ci/macos/prepare.sh
|
prepare_script: ./ci/macos/prepare.sh
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
<< : *MACOS_RESOURCES_TEMPLATE
|
<< : *MACOS_ENVIRONMENT
|
||||||
env:
|
env:
|
||||||
ZEEK_CI_CONFIGURE_FLAGS: *HOMEBREW_FLEX_BISON_CONFIG
|
ZEEK_CI_CONFIGURE_FLAGS: *HOMEBREW_FLEX_BISON_CONFIG
|
||||||
|
|
||||||
|
@ -238,7 +258,7 @@ macos_big_sur_task:
|
||||||
image: big-sur-xcode-12.5
|
image: big-sur-xcode-12.5
|
||||||
prepare_script: ./ci/macos/prepare.sh
|
prepare_script: ./ci/macos/prepare.sh
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
<< : *MACOS_RESOURCES_TEMPLATE
|
<< : *MACOS_ENVIRONMENT
|
||||||
env:
|
env:
|
||||||
ZEEK_CI_CONFIGURE_FLAGS: *HOMEBREW_FLEX_BISON_CONFIG
|
ZEEK_CI_CONFIGURE_FLAGS: *HOMEBREW_FLEX_BISON_CONFIG
|
||||||
|
|
||||||
|
@ -247,42 +267,33 @@ freebsd14_task:
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
# We don't support FreeBSD 14 yet, this is a purely informative task
|
# We don't support FreeBSD 14 yet, this is a purely informative task
|
||||||
image_family: freebsd-14-0-snap
|
image_family: freebsd-14-0-snap
|
||||||
cpu: 8
|
|
||||||
# Not allowed to request less than 8GB for an 8 CPU FreeBSD VM.
|
|
||||||
memory: 8GB
|
|
||||||
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
|
||||||
greedy: true
|
|
||||||
|
|
||||||
allow_failures: true
|
allow_failures: true
|
||||||
skip_notification: true
|
skip_notification: true
|
||||||
|
<< : *FREEBSD_RESOURCES_TEMPLATE
|
||||||
|
|
||||||
prepare_script: ./ci/freebsd/prepare.sh
|
prepare_script: ./ci/freebsd/prepare.sh
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
|
<< : *FREEBSD_ENVIRONMENT
|
||||||
|
|
||||||
freebsd13_task:
|
freebsd13_task:
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
# FreeBSD 13 EOL: January 31, 2026
|
# FreeBSD 13 EOL: January 31, 2026
|
||||||
image_family: freebsd-13-0
|
image_family: freebsd-13-0
|
||||||
cpu: 8
|
<< : *FREEBSD_RESOURCES_TEMPLATE
|
||||||
# Not allowed to request less than 8GB for an 8 CPU FreeBSD VM.
|
|
||||||
memory: 8GB
|
|
||||||
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
|
||||||
greedy: true
|
|
||||||
|
|
||||||
prepare_script: ./ci/freebsd/prepare.sh
|
prepare_script: ./ci/freebsd/prepare.sh
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
|
<< : *FREEBSD_ENVIRONMENT
|
||||||
|
|
||||||
freebsd12_task:
|
freebsd12_task:
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
# FreeBSD 12 EOL: June 30, 2024
|
# FreeBSD 12 EOL: June 30, 2024
|
||||||
image_family: freebsd-12-2
|
image_family: freebsd-12-2
|
||||||
cpu: 8
|
<< : *FREEBSD_RESOURCES_TEMPLATE
|
||||||
# Not allowed to request less than 8GB for an 8 CPU FreeBSD VM.
|
|
||||||
memory: 8GB
|
|
||||||
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
|
||||||
greedy: true
|
|
||||||
prepare_script: ./ci/freebsd/prepare.sh
|
prepare_script: ./ci/freebsd/prepare.sh
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
|
<< : *FREEBSD_ENVIRONMENT
|
||||||
|
|
||||||
# This can be removed as soon as the first distribution that we use ships
|
# This can be removed as soon as the first distribution that we use ships
|
||||||
# OpenSSL 3.0
|
# OpenSSL 3.0
|
||||||
|
@ -299,11 +310,8 @@ asan_sanitizer_task:
|
||||||
container:
|
container:
|
||||||
# Just uses a recent/common distro to run memory error/leak checks.
|
# Just uses a recent/common distro to run memory error/leak checks.
|
||||||
dockerfile: ci/ubuntu-20.04/Dockerfile
|
dockerfile: ci/ubuntu-20.04/Dockerfile
|
||||||
cpu: 4
|
<< : *SANITIZERS_RESOURCE_TEMPLATE
|
||||||
# AddressSanitizer uses a lot more memory than a typical config.
|
|
||||||
memory: 12GB
|
|
||||||
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
|
||||||
greedy: true
|
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
test_fuzzers_script: ./ci/test-fuzzers.sh
|
test_fuzzers_script: ./ci/test-fuzzers.sh
|
||||||
env:
|
env:
|
||||||
|
@ -316,11 +324,8 @@ ubsan_sanitizer_task:
|
||||||
container:
|
container:
|
||||||
# Just uses a recent/common distro to run undefined behavior checks.
|
# Just uses a recent/common distro to run undefined behavior checks.
|
||||||
dockerfile: ci/ubuntu-20.04/Dockerfile
|
dockerfile: ci/ubuntu-20.04/Dockerfile
|
||||||
cpu: 4
|
<< : *SANITIZERS_RESOURCE_TEMPLATE
|
||||||
# AddressSanitizer uses a lot more memory than a typical config.
|
|
||||||
memory: 12GB
|
|
||||||
# For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
|
||||||
greedy: true
|
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
test_fuzzers_script: ./ci/test-fuzzers.sh
|
test_fuzzers_script: ./ci/test-fuzzers.sh
|
||||||
env:
|
env:
|
||||||
|
@ -334,11 +339,8 @@ ubsan_sanitizer_task:
|
||||||
# container:
|
# container:
|
||||||
# # Just uses a recent/common distro to run memory error/leak checks.
|
# # Just uses a recent/common distro to run memory error/leak checks.
|
||||||
# dockerfile: ci/ubuntu-20.04/Dockerfile
|
# dockerfile: ci/ubuntu-20.04/Dockerfile
|
||||||
# cpu: 4
|
# << : *SANITIZERS_RESOURCE_TEMPLATE
|
||||||
# # AddressSanitizer uses a lot more memory than a typical config.
|
#
|
||||||
# memory: 12GB
|
|
||||||
# # For greediness, see https://medium.com/cirruslabs/introducing-greedy-container-instances-29aad06dc2b4
|
|
||||||
# greedy: true
|
|
||||||
# << : *CI_TEMPLATE
|
# << : *CI_TEMPLATE
|
||||||
# test_fuzzers_script: ./ci/test-fuzzers.sh
|
# test_fuzzers_script: ./ci/test-fuzzers.sh
|
||||||
# env:
|
# env:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Common material sourced by Bash CI scripts in this directory
|
# Common material sourced by Bash CI scripts in this directory
|
||||||
|
|
||||||
# On Cirrus, oversubscribe the CPUs when on Linux. This uses Cirrus' "greedy" feature.
|
# On Cirrus, oversubscribe the CPUs when on Linux or FreeBSD. This uses Cirrus' "greedy" feature.
|
||||||
if [[ "${CIRRUS_OS}" == linux ]]; then
|
if [[ "${CIRRUS_OS}" == linux || "${CIRRUS_OS}" == freebsd ]]; then
|
||||||
if [[ -n "${ZEEK_CI_CPUS}" ]]; then
|
if [[ -n "${ZEEK_CI_CPUS}" ]]; then
|
||||||
ZEEK_CI_CPUS=$((2 * ${ZEEK_CI_CPUS}))
|
ZEEK_CI_CPUS=$((2 * ${ZEEK_CI_CPUS}))
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue