Skip to content

Commit

Permalink
!wip! ci: test current workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
woshilapin committed Jul 22, 2024
1 parent 8832d2d commit f60b30b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -883,3 +883,35 @@ jobs:
name: integration-container-logs
path: container-logs
retention-days: 30
otel-cicd-action:
if: always()
name: OpenTelemetry Export Trace
runs-on: ubuntu-latest
needs: # must run when all jobs are completed
- build
- check_generated_railjson_sync
- check_railjson_generator
- check_commits
- final_newline_lint
- check_integration_tests
- check_osrd_schema
- check_toml
- check_infra_schema_sync
- check_front_rtk_sync
- check_core
- check_editoast_tests
- check_editoast_lints
- check_editoast_openapi
- check_gateway
- check_front
- integration_tests
steps:
- name: Export workflow
uses: corentinmusard/otel-cicd-action@v1
with:
otlpEndpoint: grpc://api.honeycomb.io:443/
# Example value for HONEYCOMB_OTLP_HEADERS:
# x-honeycomb-team=YOUR_API_KEY,x-honeycomb-dataset=YOUR_DATASET
otlpHeaders: ${{ secrets.HONEYCOMB_OTLP_HEADERS }}
githubToken: ${{ secrets.GITHUB_TOKEN }}

10 changes: 4 additions & 6 deletions .github/workflows/telemetry.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Export workflow to Honeycomb

on:
workflow_run:
workflows:
# The name of the workflow(s) that triggers the export
- "build"
types: [completed]
push:
branches:
- "wsl/ci/ci-telemetry"

jobs:
otel-export-honeycomb:
Expand All @@ -20,4 +18,4 @@ jobs:
# x-honeycomb-team=YOUR_API_KEY,x-honeycomb-dataset=YOUR_DATASET
otlpHeaders: ${{ secrets.HONEYCOMB_OTLP_HEADERS }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
runId: ${{ github.event.workflow_run.id }}
runId: ${{ github.run_id }}

0 comments on commit f60b30b

Please sign in to comment.