Skip to content

chore(profiling): fix sanitizers on Linux (#11424) #27901

chore(profiling): fix sanitizers on Linux (#11424)

chore(profiling): fix sanitizers on Linux (#11424) #27901

name: encoders-profile
on:
push:
branches:
- main
- 'mq-working-branch**'
pull_request:
paths:
- 'ddtrace/internal/_encoding.pyx'
- 'scripts/profiles/encoders/**'
- '.github/workflows/encoders-profile.yml'
jobs:
encoders-profile:
runs-on: ubuntu-latest
env:
PREFIX: ${{ github.workspace }}/prefix
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/encoders/setup.sh ${PREFIX}
- name: Run
run: |
bash scripts/profiles/encoders/run.sh ${PREFIX}
for a in `ls ${PREFIX}/artifacts`
do
sed -i 's|${{ github.workspace }}/ddtrace/||g' ${PREFIX}/artifacts/$a
done
- uses: actions/upload-artifact@v4
with:
name: encoders-profile
path: ${{ github.workspace }}/prefix/artifacts