You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: normalize INPUT_JOB_NAME hyphen form in OTLP span scripts (#24823)
Some GitHub Actions runner versions preserve the original hyphen in
input env var names (INPUT_JOB-NAME) instead of converting to
underscore (INPUT_JOB_NAME). This caused OTLP spans to fall back to
the generic 'gh-aw.job.setup' / 'gh-aw.job.conclusion' names instead
of using the actual job name.
Apply the same two-key normalization already used for INPUT_TRACE_ID:
- index.js: normalize INPUT_JOB_NAME at startup, pass to setup.sh
env and set in process.env before calling action_setup_otlp.cjs
- action_setup_otlp.cjs: normalize INPUT_JOB_NAME and canonicalize
to underscore form so sendJobSetupSpan always finds the value
- action_conclusion_otlp.cjs: normalize INPUT_JOB_NAME inline
- setup.sh: explicitly pass INPUT_JOB_NAME to action_setup_otlp.cjs
in script mode (alongside INPUT_TRACE_ID)
Tests added for the hyphen form in action_conclusion_otlp.test.cjs
and action_otlp.test.cjs.
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/099777bf-2d2a-4e33-b4a6-60eff2ca3d20
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
0 commit comments