Optimize memory resource usage of CI jobs
This commit is contained in:
parent
5e9594f7ea
commit
3b09c98628
@ -18,8 +18,18 @@ default:
|
|||||||
variables: &default-variables
|
variables: &default-variables
|
||||||
TZ: "UTC"
|
TZ: "UTC"
|
||||||
GIT_DEPTH: "1"
|
GIT_DEPTH: "1"
|
||||||
KUBERNETES_MEMORY_REQUEST: 4Gi
|
|
||||||
KUBERNETES_MEMORY_LIMIT: 4Gi
|
.build-resources-xs: &build-resources-xs
|
||||||
|
KUBERNETES_MEMORY_REQUEST: 512Mi
|
||||||
|
KUBERNETES_MEMORY_LIMIT: 512Mi
|
||||||
|
|
||||||
|
.build-resources-s: &build-resources-s
|
||||||
|
KUBERNETES_MEMORY_REQUEST: 1Gi
|
||||||
|
KUBERNETES_MEMORY_LIMIT: 1Gi
|
||||||
|
|
||||||
|
.build-resources-m: &build-resources-m
|
||||||
|
KUBERNETES_MEMORY_REQUEST: 2Gi
|
||||||
|
KUBERNETES_MEMORY_LIMIT: 2Gi
|
||||||
|
|
||||||
.haproxy_stable: &haproxy-stable
|
.haproxy_stable: &haproxy-stable
|
||||||
HAPROXY_GITREPO: "https://git.haproxy.org/?p=haproxy-2.7.git"
|
HAPROXY_GITREPO: "https://git.haproxy.org/?p=haproxy-2.7.git"
|
||||||
@ -49,6 +59,9 @@ lua:
|
|||||||
<<: *build-job
|
<<: *build-job
|
||||||
stage: dependencies
|
stage: dependencies
|
||||||
script: make -C deps/lua
|
script: make -C deps/lua
|
||||||
|
variables:
|
||||||
|
<<: *default-variables
|
||||||
|
<<: *build-resources-xs
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
paths: [ "deps/lua/lua-dist.tar.gz" ]
|
paths: [ "deps/lua/lua-dist.tar.gz" ]
|
||||||
@ -57,6 +70,9 @@ pcre2:
|
|||||||
<<: *build-job
|
<<: *build-job
|
||||||
stage: dependencies
|
stage: dependencies
|
||||||
script: make -C deps/pcre2
|
script: make -C deps/pcre2
|
||||||
|
variables:
|
||||||
|
<<: *default-variables
|
||||||
|
<<: *build-resources-xs
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
paths: [ "deps/pcre2/pcre2-dist.tar.gz" ]
|
paths: [ "deps/pcre2/pcre2-dist.tar.gz" ]
|
||||||
@ -65,6 +81,9 @@ quictls:
|
|||||||
<<: *build-job
|
<<: *build-job
|
||||||
stage: dependencies
|
stage: dependencies
|
||||||
script: make -C deps/quictls
|
script: make -C deps/quictls
|
||||||
|
variables:
|
||||||
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
paths: [ "deps/quictls/quictls-dist.tar.gz" ]
|
paths: [ "deps/quictls/quictls-dist.tar.gz" ]
|
||||||
@ -73,6 +92,9 @@ vtest:
|
|||||||
<<: *build-job
|
<<: *build-job
|
||||||
stage: dependencies
|
stage: dependencies
|
||||||
script: make -C deps/vtest
|
script: make -C deps/vtest
|
||||||
|
variables:
|
||||||
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 7 days
|
expire_in: 7 days
|
||||||
paths: [ "deps/vtest/dist/vtest" ]
|
paths: [ "deps/vtest/dist/vtest" ]
|
||||||
@ -241,30 +263,35 @@ build:stable:
|
|||||||
<<: *haproxy-build
|
<<: *haproxy-build
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-s
|
||||||
<<: *haproxy-stable
|
<<: *haproxy-stable
|
||||||
|
|
||||||
build:dev:
|
build:dev:
|
||||||
<<: *haproxy-build
|
<<: *haproxy-build
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-s
|
||||||
<<: *haproxy-dev
|
<<: *haproxy-dev
|
||||||
|
|
||||||
regtests:stable:
|
regtests:stable:
|
||||||
<<: *haproxy-regtests
|
<<: *haproxy-regtests
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
<<: *haproxy-stable
|
<<: *haproxy-stable
|
||||||
|
|
||||||
regtests:dev:
|
regtests:dev:
|
||||||
<<: *haproxy-regtests
|
<<: *haproxy-regtests
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
<<: *haproxy-dev
|
<<: *haproxy-dev
|
||||||
|
|
||||||
haproxy-tarball:stable:
|
haproxy-tarball:stable:
|
||||||
<<: *haproxy-tarball
|
<<: *haproxy-tarball
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-xs
|
||||||
<<: *haproxy-stable
|
<<: *haproxy-stable
|
||||||
needs:
|
needs:
|
||||||
- job: "regtests:stable"
|
- job: "regtests:stable"
|
||||||
@ -276,6 +303,7 @@ haproxy-tarball:dev:
|
|||||||
<<: *haproxy-tarball
|
<<: *haproxy-tarball
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-xs
|
||||||
<<: *haproxy-dev
|
<<: *haproxy-dev
|
||||||
needs:
|
needs:
|
||||||
- job: "regtests:dev"
|
- job: "regtests:dev"
|
||||||
@ -287,6 +315,7 @@ docker:stable:
|
|||||||
<<: *haproxy-docker
|
<<: *haproxy-docker
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
<<: *haproxy-stable
|
<<: *haproxy-stable
|
||||||
needs:
|
needs:
|
||||||
- job: "quictls"
|
- job: "quictls"
|
||||||
@ -300,6 +329,7 @@ docker:dev:
|
|||||||
<<: *haproxy-docker
|
<<: *haproxy-docker
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
<<: *haproxy-dev
|
<<: *haproxy-dev
|
||||||
needs:
|
needs:
|
||||||
- job: "quictls"
|
- job: "quictls"
|
||||||
@ -313,6 +343,7 @@ debian:stable:
|
|||||||
<<: *haproxy-debian
|
<<: *haproxy-debian
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
<<: *haproxy-stable
|
<<: *haproxy-stable
|
||||||
needs:
|
needs:
|
||||||
- *needs-dependencies
|
- *needs-dependencies
|
||||||
@ -323,6 +354,7 @@ debian:dev:
|
|||||||
<<: *haproxy-debian
|
<<: *haproxy-debian
|
||||||
variables:
|
variables:
|
||||||
<<: *default-variables
|
<<: *default-variables
|
||||||
|
<<: *build-resources-m
|
||||||
<<: *haproxy-dev
|
<<: *haproxy-dev
|
||||||
needs:
|
needs:
|
||||||
- *needs-dependencies
|
- *needs-dependencies
|
||||||
@ -353,3 +385,6 @@ quictls:tarball:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
- job: "regtests:stable"
|
- job: "regtests:stable"
|
||||||
artifacts: false
|
artifacts: false
|
||||||
|
variables:
|
||||||
|
<<: *default-variables
|
||||||
|
<<: *build-resources-xs
|
||||||
|
Loading…
Reference in New Issue
Block a user