Skip to content

Commit 8db2931

Browse files
committed
Use compute credits for valgrind job
1 parent bb1cff0 commit 8db2931

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.cirrus.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
env:
22
CIRRUS_CLONE_DEPTH: 1
3+
4+
compute_credits_template: &CREDITS_TEMPLATE
5+
# https://cirrus-ci.org/pricing/#compute-credits
6+
# Only use credits for pull requests to the qa-assets repo
7+
# TODO maybe only use credits if $CIRRUS_BRANCH == 'main'
8+
use_compute_credits: $CIRRUS_REPO_FULL_NAME == 'bitcoin-core/qa-assets'
9+
310
task:
411
name: "[system libs, no depends, fuzz, valgrind] [bookworm]"
512
container:
613
image: debian:bookworm
7-
cpu: 4
8-
memory: 16G
14+
cpu: 3
15+
memory: 12G
916
greedy: true
10-
timeout_in: 120m
17+
timeout_in: 480m
18+
# To avoid timeouts use some credits
19+
<< : *CREDITS_TEMPLATE
1120
env:
1221
FILE_ENV: "./ci/test/00_setup_env_native_fuzz_with_valgrind.sh"
1322
MAKEJOBS: "-j20"

0 commit comments

Comments
 (0)