Repository navigation
108 lines (98 loc) · 2.82 KB
/
Copy pathnightly.yml
File metadata and controls
108 lines (98 loc) · 2.82 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
---
name: Nightly
on:
workflow_dispatch: {}
push:
branches:
- "main"
schedule:
- cron: '00 03 * * *'
jobs:
nightly:
strategy:
matrix:
library:
- cpp
- cpp_httpd
- dotnet
- golang
- java
- java_lambda
- nodejs
- php
- python
- python_lambda
- nodejs_lambda
- ruby
- cpp_nginx
version:
- prod
include:
- library: rust
version: dev
fail-fast: false
uses: ./.github/workflows/system-tests.yml
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
permissions:
contents: read
id-token: write
with:
scenarios_groups: tracer_release
library: ${{ matrix.library }}
parametric_job_count: 8
_system_tests_dev_mode: ${{ matrix.version == 'dev' }}
push_to_test_optimization: true
test_activation:
name: Test activation
runs-on: ubuntu-latest
if: (success() || failure()) && github.event_name == 'schedule'
permissions:
contents: read
actions: read
packages: read
id-token: write
pull-requests: write
needs:
- nightly
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
repository: DataDog/system-tests
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/download_artifact
with:
merge-multiple: false
pattern: logs_*
path: data
- uses: DataDog/system-tests/.github/actions/install_runner@main
- name: Install additional dependencies
shell: bash
run: |
source venv/bin/activate
python -m pip install --upgrade pip ruamel.yaml requests tqdm pygtrie
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
id: octo-sts
with:
scope: DataDog/system-tests
policy: self.test-activation-github
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
repository: DataDog/commit-headless
ref: action/v3.3.0
path: .commit-headless
- name: Run nightly activation
env:
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}
shell: bash
run: |
source venv/bin/activate
python utils/ci/github/nightly.py activate \
--reports-dir data \
--commit-headless .commit-headless/dist/commit-headless-linux-amd64 \
--repository "${{ github.repository }}" \
--server-url "${{ github.server_url }}" \
--run-id "${{ github.run_id }}"