Skip to content

Commit 75ead85

Browse files
authored
ci: add system tests in CI (#3206)
Add [system tests](https://github.com/DataDog/system-tests) in CI. System tests is a functional test suite that spawns tracer and agent, run some typical scenario, and then ensure that everything that should happen between tracer/agent/backend really happen. As now, the coverage is mainly on appsec features, but almost everything that have a visible effect on tracer/agent surface (*ie* traffic, logs, stdout...) can be tested.
1 parent 6baed20 commit 75ead85

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/system-tests.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: System Tests
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch: {}
6+
schedule:
7+
- cron: '00 04 * * 2-6'
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
system-tests:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
include:
18+
- weblog-variant: flask-poc
19+
- weblog-variant: uwsgi-poc
20+
- weblog-variant: django-poc
21+
fail-fast: false
22+
env:
23+
TEST_LIBRARY: python
24+
WEBLOG_VARIANT: ${{ matrix.weblog-variant }}
25+
DD_API_KEY: ${{ secrets.DD_API_KEY }}
26+
steps:
27+
- name: Checkout system tests
28+
uses: actions/checkout@v2
29+
with:
30+
repository: 'DataDog/system-tests'
31+
32+
- name: Checkout dd-trace-py
33+
uses: actions/checkout@v2
34+
with:
35+
path: 'binaries/dd-trace-py'
36+
37+
- name: Build
38+
run: ./build.sh
39+
40+
- name: Run
41+
run: ./run.sh
42+
43+
# even on failures, we want to have artifact to be able to investigate
44+
# The compress step speed up a lot the uplaod artifact process
45+
- name: Compress artifact
46+
if: ${{ always() }}
47+
run: tar -czvf artifact.tar.gz $(ls | grep logs)
48+
49+
- name: Upload artifact
50+
uses: actions/upload-artifact@v2
51+
if: ${{ always() }}
52+
with:
53+
name: logs_${{ matrix.weblog-variant }}
54+
path: artifact.tar.gz

0 commit comments

Comments
 (0)