Skip to content

ci: add suitespec to GitLab (#10877) #47913

ci: add suitespec to GitLab (#10877)

ci: add suitespec to GitLab (#10877) #47913

name: django-overhead-profile
on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
paths:
- 'ddtrace/**'
- 'scripts/profiles/django-simple/**'
- '.github/workflows/django-overhead-profile.yml'
jobs:
django-overhead-profile:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- suffix: "-v1"
stack_v2: "0"
- suffix: "-v2"
stack_v2: "1"
env:
PREFIX: ${{ github.workspace }}/prefix
DD_CODE_ORIGIN_FOR_SPANS_ENABLED: "1"
DD_PROFILING_ENABLED: "1"
DD_PROFILING_STACK_V2_ENABLED: ${{ matrix.stack_v2 }}
DD_PROFILING_OUTPUT_PPROF: ${{ github.workspace }}/prefix/artifacts/ddtrace_profile
defaults:
run:
working-directory: ddtrace
steps:
- uses: actions/checkout@v4
with:
path: ddtrace
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Setup
run: |
bash scripts/profiles/django-simple/setup.sh ${PREFIX}
- name: Run
run: |
bash scripts/profiles/django-simple/run.sh ${PREFIX}
- uses: actions/upload-artifact@v4
with:
name: django-overhead-profile${{ matrix.suffix }}
path: ${{ github.workspace }}/prefix/artifacts