-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parametric system-tests workflow
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Parametric System Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: '00 04 * * 2-6' | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
REPO: ghcr.io/datadog/dd-trace-rb | ||
ST_REF: main | ||
FORCE_TESTS: | ||
|
||
jobs: | ||
build-runner: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
library: | ||
- name: ruby | ||
repository: DataDog/dd-trace-rb | ||
path: dd-trace-rb | ||
runs-on: ubuntu-latest | ||
name: Run parametric system tests | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'DataDog/system-tests' | ||
ref: ${{ env.ST_REF }} | ||
- name: Install python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
- name: Install dependencies | ||
uses: actions/cache@v4 | ||
id: runner_cache | ||
with: | ||
path: venv | ||
key: runner_venv-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }} | ||
- name: Build runner | ||
shell: bash | ||
if: steps.runner_cache.outputs.cache-hit != 'true' | ||
run: ./build.sh -i runner | ||
- name: Print versions | ||
shell: bash | ||
run: | | ||
source venv/bin/activate | ||
python --version | ||
pip freeze | ||
- name: Checkout dd-trace-rb | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: '${{ matrix.library.repository }}' | ||
path: 'binaries/${{ matrix.library.path }}' | ||
fetch-depth: 2 | ||
- name: Run parametric system tests | ||
run: TEST_LIBRARY=ruby ./run.sh PARAMETRIC ${{ env.FORCE_TESTS }} | ||
- name: Compress logs | ||
id: compress_logs | ||
if: always() | ||
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_parametric_${{ matrix.library}}_parametric_dev | ||
path: artifact.tar.gz | ||
- name: Print fancy log report | ||
if: ${{ always() }} | ||
run: python utils/scripts/markdown_logs.py >> $GITHUB_STEP_SUMMARY |