Add clang sanitizers #817
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
name: PR Testing | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- master | |
concurrency: | |
# In master we want to run for every commit, in other branches — only for the last one | |
group: ${{ | |
( github.ref == 'refs/heads/master' && format('{0}/{1}/{2}', github.workflow, github.ref, github.sha) ) | |
|| | |
format('{0}/{1}', github.workflow, github.ref) }} | |
cancel-in-progress: true | |
jobs: | |
test-linux-sanitizers: | |
name: Linux Crypto3 Test and sanitize with clang | |
uses: ./.github/workflows/clang-sanitizers-linux-nix-check.yml | |
if: | | |
always() && !cancelled() | |
secrets: inherit | |
post-telemetry: | |
name: Post test results in Open Telemetry format | |
runs-on: [self-hosted, Linux, X64, aws_autoscaling] | |
needs: | |
- test-linux-sanitizers | |
steps: | |
- name: Post logs to Sig Noz | |
run: | | |
ls -l -a | |
nix build -L .?#checks.x86_64-linux.all-sanitizers | |
export UndefinedBehaviorSanitizer=$(grep UndefinedBehaviorSanitizer result/test-logs/testing_logs.txt | wc -l) | |
export AddressSanitizer=$(grep AddressSanitizer result/test-logs/testing_logs.txt | wc -l) | |
export LeakSanitizer=$(grep LeakSanitizer result/test-logs/testing_logs.txt | wc -l) | |
ls -l -a | |
ls -l -a ./result/ | |
export OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true | |
python3 --version | |
sudo yum update -y | |
sudo yum install -y python3-pip | |
pip3 install -r requirements.txt | |
python3 ./parse_tests.py | |
ls /home/ec2-user/.local/bin/ | |
/home/ec2-user/.local/bin/opentelemetry-instrument \ | |
--traces_exporter console,otlp \ | |
--metrics_exporter console,otlp \ | |
--logs_exporter console,otlp \ | |
--service_name nightly-build \ | |
python3 ./parse_tests.py | |