Skip to content

Commit

Permalink
squashme
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmot committed Sep 19, 2024
1 parent d14e379 commit d1d852f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ jobs:
name: "User Story - Telemetry"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Deps
run: 'sudo apt-get update && sudo apt-get install -y jq'
- name: Install
run: './extremely-simple-setup.sh && pip install -e ./angr[telemetry]'
run: './extremely-simple-setup.sh && pip install --no-build-isolation -e ./angr[telemetry] opentelemetry-sdk'
- name: Run
run: |
python3 <<EOF
cd .. && python3 <<EOF
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import (
Expand All @@ -26,7 +30,7 @@ jobs:
)
provider = TracerProvider()
processor = BatchSpanProcessor(ConsoleSpanExporter(out=open('telemetry.json', 'w')))
processor = BatchSpanProcessor(ConsoleSpanExporter(out=open('/tmp/telemetry.json', 'w')))
provider.add_span_processor(processor)
# Sets the global default tracer provider
Expand All @@ -39,6 +43,7 @@ jobs:
EOF
- name: Validate
run: |
jq .name telemetry.json | grep -m1 CFGFast
jq .attibutes.\"project.binary_name\" telemetry.json | grep -m1 /bin/true
jq .attibutes.\"arg.func\" telemetry.json | grep -m1 main
set +o pipefail
jq .name /tmp/telemetry.json | grep -m1 CFGFast
jq .attibutes.\"project.binary_name\" /tmp/telemetry.json | grep -m1 /bin/true
jq .attibutes.\"arg.func\" /tmp/telemetry.json | grep -m1 main

0 comments on commit d1d852f

Please sign in to comment.