Skip to content

updating the runner logs to output the workflow run ID#4508

Open
petercort wants to merge 2 commits into
actions:mainfrom
petercort:main
Open

updating the runner logs to output the workflow run ID#4508
petercort wants to merge 2 commits into
actions:mainfrom
petercort:main

Conversation

@petercort

@petercort petercort commented Jun 16, 2026

Copy link
Copy Markdown

Outputs the workflow run ID in the logs so users can correlate to a specific job run. Currently only the name exists, which doesn't tell which run ran.

Example output:

2026-06-16 12:46:38Z: Listening for Jobs
2026-06-16 12:46:59Z: Running job: demo (Workflow run ID: 27618568209)
2026-06-16 12:47:04Z: Job demo completed with result: Succeeded

Copilot AI review requested due to automatic review settings June 16, 2026 13:28
@petercort petercort requested a review from a team as a code owner June 16, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds richer job start logging by including the workflow run ID, and introduces a helper to read values from the github context with L0 coverage.

Changes:

  • Extend job start log line to include Job ID and workflow run ID.
  • Add GetGitHubContextValue helper for extracting github.<key> from ContextData.
  • Add L0 tests for present/missing context and key scenarios.
Show a summary per file
File Description
src/Runner.Listener/JobDispatcher.cs Adds helper to read github context values and logs workflow run ID when starting a job.
src/Test/L0/Listener/JobDispatcherL0.cs Adds unit tests covering GetGitHubContextValue behavior for present/missing github context/key.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 3

Comment on lines +734 to +746
internal static string GetGitHubContextValue(Pipelines.AgentJobRequestMessage message, string key)
{
if (message.ContextData != null &&
message.ContextData.TryGetValue("github", out var githubContext) &&
githubContext is DictionaryContextData githubContextData &&
githubContextData.TryGetValue(key, out var value) &&
value is StringContextData stringValue)
{
return stringValue.Value;
}

return "unknown";
}
Comment on lines +734 to +737
internal static string GetGitHubContextValue(Pipelines.AgentJobRequestMessage message, string key)
{
if (message.ContextData != null &&
message.ContextData.TryGetValue("github", out var githubContext) &&
return stringValue.Value;
}

return "unknown";
@petercort petercort changed the title updating the runner logs to output the job and workflow run ID updating the runner logs to output the workflow run ID Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants