Skip to content

Commit a2fa2e1

Browse files
committed
Set build-log-retention at jobs level
We want to purge all the build logs that are older then 30 days. cost effort to reduce the size of the DB. Format file
1 parent c5a998b commit a2fa2e1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

ci/infrastructure.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,10 @@ ipv6-bbl-up-task: &ipv6-bbl-up-task-config
358358
repository: updated-bbl-state
359359
rebase: true
360360

361+
common_build_log_retention: &common_build_log_retention
362+
days: 30
363+
minimum_succeeded_builds: 3
364+
361365
resources:
362366
# Pools
363367
- name: fresh-pool
@@ -667,6 +671,7 @@ jobs:
667671

668672
# Setup infrastructure
669673
- name: setup-infrastructure-fresh
674+
build_log_retention: *common_build_log_retention
670675
serial: true
671676
public: true
672677
plan:
@@ -682,6 +687,7 @@ jobs:
682687
params: {release: fresh-pool}
683688

684689
- name: setup-infrastructure-upgrade
690+
build_log_retention: *common_build_log_retention
685691
serial: true
686692
public: true
687693
plan:
@@ -698,6 +704,7 @@ jobs:
698704
params: {release: upgrade-pool}
699705

700706
- name: setup-infrastructure-experimental
707+
build_log_retention: *common_build_log_retention
701708
serial_groups: [hermione]
702709
public: true
703710
plan:
@@ -713,6 +720,7 @@ jobs:
713720
params: {release: experimental-pool}
714721

715722
- name: setup-infrastructure-bbr
723+
build_log_retention: *common_build_log_retention
716724
serial_groups: [bbr]
717725
public: true
718726
plan:
@@ -728,6 +736,7 @@ jobs:
728736
params: {release: bbr-pool}
729737

730738
- name: setup-infrastructure-lite
739+
build_log_retention: *common_build_log_retention
731740
serial_groups: [snitch]
732741
public: true
733742
plan:
@@ -753,6 +762,7 @@ jobs:
753762
params: {release: lite-pool}
754763

755764
- name: setup-infrastructure-stable
765+
build_log_retention: *common_build_log_retention
756766
serial: true
757767
public: true
758768
plan:
@@ -768,6 +778,7 @@ jobs:
768778
params: {release: stable-pool}
769779

770780
- name: setup-infrastructure-cats
781+
build_log_retention: *common_build_log_retention
771782
serial_groups: [cats]
772783
public: true
773784
plan:
@@ -798,6 +809,7 @@ jobs:
798809
params: {release: smoke-tests-pool}
799810

800811
- name: setup-infrastructure-maxime
812+
build_log_retention: *common_build_log_retention
801813
serial: true
802814
public: true
803815
plan:
@@ -828,6 +840,7 @@ jobs:
828840
rebase: true
829841

830842
- name: setup-infrastructure-windows
843+
build_log_retention: *common_build_log_retention
831844
serial: true
832845
public: true
833846
plan:
@@ -858,6 +871,7 @@ jobs:
858871
params: {release: fips-pool}
859872

860873
- name: setup-infrastructure-ipv6
874+
build_log_retention: *common_build_log_retention
861875
serial_groups: [dobby]
862876
public: true
863877
plan:
@@ -874,6 +888,7 @@ jobs:
874888

875889
# Update infrastructure
876890
- name: update-infrastructure-fresh
891+
build_log_retention: *common_build_log_retention
877892
serial: true
878893
public: true
879894
plan:
@@ -892,6 +907,7 @@ jobs:
892907
params: {release: fresh-pool}
893908

894909
- name: update-infrastructure-upgrade
910+
build_log_retention: *common_build_log_retention
895911
serial: true
896912
public: true
897913
plan:
@@ -911,6 +927,7 @@ jobs:
911927
params: {release: upgrade-pool}
912928

913929
- name: update-infrastructure-experimental
930+
build_log_retention: *common_build_log_retention
914931
serial: true
915932
public: true
916933
plan:
@@ -929,6 +946,7 @@ jobs:
929946
params: {release: experimental-pool}
930947

931948
- name: update-infrastructure-bbr
949+
build_log_retention: *common_build_log_retention
932950
serial: true
933951
public: true
934952
plan:
@@ -947,6 +965,7 @@ jobs:
947965
params: {release: bbr-pool}
948966

949967
- name: update-infrastructure-lite
968+
build_log_retention: *common_build_log_retention
950969
serial: true
951970
public: true
952971
plan:
@@ -981,6 +1000,7 @@ jobs:
9811000
params: {release: lite-pool}
9821001

9831002
- name: update-infrastructure-cats
1003+
build_log_retention: *common_build_log_retention
9841004
serial: true
9851005
public: true
9861006
plan:
@@ -999,6 +1019,7 @@ jobs:
9991019
params: {release: cats-pool}
10001020

10011021
- name: update-infrastructure-smoke-tests
1022+
build_log_retention: *common_build_log_retention
10021023
serial: true
10031024
public: true
10041025
plan:
@@ -1017,6 +1038,7 @@ jobs:
10171038
params: {release: smoke-tests-pool}
10181039

10191040
- name: update-infrastructure-stable
1041+
build_log_retention: *common_build_log_retention
10201042
serial: true
10211043
public: true
10221044
plan:
@@ -1035,6 +1057,7 @@ jobs:
10351057
params: {release: stable-pool}
10361058

10371059
- name: update-infrastructure-windows
1060+
build_log_retention: *common_build_log_retention
10381061
serial: true
10391062
public: true
10401063
plan:
@@ -1053,6 +1076,7 @@ jobs:
10531076
params: {release: windows-pool}
10541077

10551078
- name: update-infrastructure-fips
1079+
build_log_retention: *common_build_log_retention
10561080
serial: true
10571081
public: true
10581082
plan:
@@ -1071,6 +1095,7 @@ jobs:
10711095
params: {release: fips-pool}
10721096

10731097
- name: update-infrastructure-ipv6
1098+
build_log_retention: *common_build_log_retention
10741099
serial: true
10751100
public: true
10761101
plan:
@@ -1090,6 +1115,7 @@ jobs:
10901115

10911116
# Destroy infrastructure
10921117
- name: destroy-infrastructure-fresh
1118+
build_log_retention: *common_build_log_retention
10931119
serial: true
10941120
public: true
10951121
plan:
@@ -1120,6 +1146,7 @@ jobs:
11201146
rebase: true
11211147

11221148
- name: destroy-infrastructure-upgrade
1149+
build_log_retention: *common_build_log_retention
11231150
serial: true
11241151
public: true
11251152
plan:
@@ -1150,6 +1177,7 @@ jobs:
11501177
rebase: true
11511178

11521179
- name: destroy-infrastructure-experimental
1180+
build_log_retention: *common_build_log_retention
11531181
serial_groups: [hermione]
11541182
public: true
11551183
plan:
@@ -1181,6 +1209,7 @@ jobs:
11811209
rebase: true
11821210

11831211
- name: destroy-infrastructure-bbr
1212+
build_log_retention: *common_build_log_retention
11841213
serial_groups: [bbr]
11851214
public: true
11861215
plan:
@@ -1211,6 +1240,7 @@ jobs:
12111240
rebase: true
12121241

12131242
- name: destroy-infrastructure-lite
1243+
build_log_retention: *common_build_log_retention
12141244
serial_groups: [snitch]
12151245
public: true
12161246
plan:
@@ -1235,6 +1265,7 @@ jobs:
12351265
rebase: true
12361266

12371267
- name: destroy-infrastructure-cats
1268+
build_log_retention: *common_build_log_retention
12381269
serial_groups: [cats]
12391270
public: true
12401271
plan:
@@ -1265,6 +1296,7 @@ jobs:
12651296
rebase: true
12661297

12671298
- name: destroy-infrastructure-smoke-tests
1299+
build_log_retention: *common_build_log_retention
12681300
serial_groups: [smoke-tests]
12691301
public: true
12701302
plan:
@@ -1295,6 +1327,7 @@ jobs:
12951327
rebase: true
12961328

12971329
- name: destroy-infrastructure-stable
1330+
build_log_retention: *common_build_log_retention
12981331
serial: true
12991332
public: true
13001333
plan:
@@ -1325,6 +1358,7 @@ jobs:
13251358
rebase: true
13261359

13271360
- name: destroy-infrastructure-maxime
1361+
build_log_retention: *common_build_log_retention
13281362
serial: true
13291363
public: true
13301364
plan:
@@ -1357,6 +1391,7 @@ jobs:
13571391
rebase: true
13581392

13591393
- name: destroy-infrastructure-windows
1394+
build_log_retention: *common_build_log_retention
13601395
serial: true
13611396
public: true
13621397
plan:
@@ -1387,6 +1422,7 @@ jobs:
13871422
rebase: true
13881423

13891424
- name: destroy-infrastructure-fips
1425+
build_log_retention: *common_build_log_retention
13901426
serial_groups: [snape]
13911427
public: true
13921428
plan:
@@ -1418,6 +1454,7 @@ jobs:
14181454
rebase: true
14191455

14201456
- name: destroy-infrastructure-ipv6
1457+
build_log_retention: *common_build_log_retention
14211458
serial_groups: [dobby]
14221459
public: true
14231460
plan:

0 commit comments

Comments
 (0)