-
Notifications
You must be signed in to change notification settings - Fork 10
83 lines (69 loc) · 2.42 KB
/
run-external-processing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: External-processing tests
on:
workflow_call:
inputs:
binaries_artifact:
description: "Artifact name containing the binaries to test"
default: ''
required: false
type: string
ci_environment:
description: "Which CI environment is running the tests, used for FPD"
default: 'custom'
required: false
type: string
build_proxy_image:
description: "Shall we build proxy image"
default: false
required: false
type: boolean
env:
REGISTRY: ghcr.io
jobs:
external-processing:
runs-on:
group: "APM Larger Runners"
env:
SYSTEM_TESTS_REPORT_ENVIRONMENT: ${{ inputs.ci_environment }}
SYSTEM_TESTS_REPORT_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'DataDog/system-tests'
- name: Install runner
uses: ./.github/actions/install_runner
- name: Log in to the Container registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin
- name: Get binaries artifact
if : ${{ inputs.binaries_artifact != '' }}
uses: actions/download-artifact@v4
with:
name: ${{ inputs.binaries_artifact }}
path: binaries/
- name: Pull images
uses: ./.github/actions/pull_images
with:
library: golang
weblog: golang-dummy
scenarios: '["EXTERNAL_PROCESSING", "EXTERNAL_PROCESSING_BLOCKING"]'
- name: Build proxy image
if: inputs.build_proxy_image
run: ./build.sh -i proxy
- name: Build agent image
id: build
run: ./build.sh -i agent
- name: Run EXTERNAL_PROCESSING scenario
run: ./run.sh EXTERNAL_PROCESSING
- name: Run EXTERNAL_PROCESSING_BLOCKING scenario
run: ./run.sh EXTERNAL_PROCESSING_BLOCKING
- name: Compress logs
id: compress_logs
if: always() && steps.build.outcome == 'success'
run: tar -czvf artifact.tar.gz $(ls | grep logs)
- name: Upload artifact
if: always() && steps.compress_logs.outcome == 'success'
uses: actions/upload-artifact@v4
with:
name: logs_externalprocessing_golang_golang-dummy_${{ inputs.ci_environment }}
path: artifact.tar.gz