Skip to content

Commit

Permalink
ci: configure static CPUs for CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
chagui committed Nov 1, 2024
1 parent 08167d9 commit 970ce1c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ stages:
- test
- release

.jobs-resource-allocation:
variables:
KUBERNETES_CPU_REQUEST: "4"
KUBERNETES_CPU_LIMIT: "4"
KUBERNETES_MEMORY_REQUEST: "12Gi"
KUBERNETES_MEMORY_LIMIT: "12Gi"

test-and-build-arm64:
stage: test
script:
Expand All @@ -22,8 +29,7 @@ test-and-build-arm64:
- python3 misc/test-rules.py -c $PWD/target/release/datadog-static-analyzer -s $PWD/target/release/datadog-static-analyzer-server -l csharp
- python3 misc/test-rules.py -c $PWD/target/release/datadog-static-analyzer -s $PWD/target/release/datadog-static-analyzer-server -l python
variables:
KUBERNETES_MEMORY_REQUEST: 6Gi
KUBERNETES_MEMORY_LIMIT: 12Gi
!reference [.jobs-resource-allocation, variables]
DD_SITE: datadoghq.com
tags:
- arch:arm64
Expand All @@ -46,8 +52,7 @@ test-and-build-amd64:
- python3 misc/test-rules.py -c $PWD/target/release/datadog-static-analyzer -s $PWD/target/release/datadog-static-analyzer-server -l csharp
- python3 misc/test-rules.py -c $PWD/target/release/datadog-static-analyzer -s $PWD/target/release/datadog-static-analyzer-server -l python
variables:
KUBERNETES_MEMORY_REQUEST: 6Gi
KUBERNETES_MEMORY_LIMIT: 12Gi
!reference [.jobs-resource-allocation, variables]
DD_SITE: datadoghq.com
tags:
- arch:amd64
Expand Down

0 comments on commit 970ce1c

Please sign in to comment.