From 6e0b08417e36323e8e8e14cdf4df41500049e069 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Apr 2026 04:25:28 +0000 Subject: [PATCH] fix: use Math.floor instead of Math.round for OTEL job start ms timestamp Agent-Logs-Url: https://github.com/github/gh-aw/sessions/20904b22-764f-47f3-a991-579102540b70 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- actions/setup/js/action_setup_otlp.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/setup/js/action_setup_otlp.cjs b/actions/setup/js/action_setup_otlp.cjs index 22fc3e3888a..b83950609de 100644 --- a/actions/setup/js/action_setup_otlp.cjs +++ b/actions/setup/js/action_setup_otlp.cjs @@ -104,7 +104,7 @@ async function run() { } // Propagate setup-end timestamp so the conclusion span can measure actual // job execution duration (setup-end → conclusion-start). - const setupEndMs = Math.round(nowMs()); + const setupEndMs = Math.floor(nowMs()); appendFileSync(process.env.GITHUB_ENV, `GITHUB_AW_OTEL_JOB_START_MS=${setupEndMs}\n`); console.log(`[otlp] GITHUB_AW_OTEL_JOB_START_MS written to GITHUB_ENV`); }