Skip to content

Commit 8dddad9

Browse files
authored
Add Test Optimization (#1253)
1 parent 354a867 commit 8dddad9

File tree

3 files changed

+32
-3
lines changed

3 files changed

+32
-3
lines changed

.github/workflows/build.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,35 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14+
# Let's try to get more free space and avoid `System.IO.IOException: No space left on device` error
15+
- name: Free Disk Space (Ubuntu)
16+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
17+
with:
18+
tool-cache: false
19+
android: true
20+
dotnet: true
21+
haskell: true
22+
large-packages: true
23+
docker-images: true
24+
swap-storage: true
25+
1426
- name: Set up Go
1527
uses: actions/setup-go@v5
1628
with:
1729
go-version-file: go.mod
1830

1931
- name: Build
2032
run: go build ./...
21-
33+
34+
- name: Install orchestrion
35+
run: |
36+
go install github.com/DataDog/orchestrion@v1.1.0
37+
orchestrion pin
38+
2239
- name: Test
23-
run: go test -v $(go list ./... | grep -v /integration-tests) # We do not run integration-tests here because they require more tooling (Pulumi, invoke, ..). They will be run in a dedicated job
40+
run: orchestrion go test -v $(go list ./... | grep -v /integration-tests) # We do not run integration-tests here because they require more tooling (Pulumi, invoke, ..). They will be run in a dedicated job
41+
env:
42+
DD_CIVISIBILITY_ENABLED: true
43+
DD_CIVISIBILITY_AGENTLESS_ENABLED: true
44+
DD_ENV: ci
45+
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}

.gitlab-ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ integration-testing:
7777
- chmod 400 $E2E_PRIVATE_KEY_PATH
7878
- ssh-add $E2E_PRIVATE_KEY_PATH
7979
- pip install -r requirements.txt
80+
- go install github.com/DataDog/orchestrion@v1.1.0
81+
- orchestrion pin
82+
- export DD_CIVISIBILITY_ENABLED=true
83+
- export DD_CIVISIBILITY_AGENTLESS_ENABLED=true
84+
- export DD_ENV=ci
85+
- export DD_API_KEY=$(vault kv get -field=api_key kv/k8s/gitlab-runner/test-infra-definitions/dd-token)
86+
- export GOFLAGS="${GOFLAGS} '-toolexec=orchestrion toolexec'"
8087
script:
8188
- |
8289
if [ ! -f ./dist/main ]; then

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/DataDog/test-infra-definitions
22

3-
go 1.22.5
3+
go 1.23.0
44

55
require (
66
dario.cat/mergo v1.0.1

0 commit comments

Comments
 (0)