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 5, 2024
1 parent 08167d9 commit 8829965
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ stages:
- test
- release

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

test-and-build-arm64:
extends:
- .jobs-resource-allocation
stage: test
script:
- apt-get update
Expand All @@ -22,13 +30,13 @@ 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
DD_SITE: datadoghq.com
tags:
- arch:arm64

test-and-build-amd64:
extends:
- .jobs-resource-allocation
stage: test
script:
- apt-get update
Expand All @@ -46,8 +54,6 @@ 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
DD_SITE: datadoghq.com
tags:
- arch:amd64
Expand Down

0 comments on commit 8829965

Please sign in to comment.