Skip to content

surface failing-job root cause in the PR failure comment #437

Description

@joshua-temple

The drift-comment.yaml workflow_run companion currently reports only the workflow-drift job. When a different gated job fails (for example the Unit Tests job, where action-pins consistency-guard failures land), the PR shows a red gate with no inline explanation and a maintainer must open the run logs. Extend the single existing companion (do not add a second workflow_run workflow, which would race and double-comment) to extract the failed job plus root-cause lines from the triggering run (annotations first, short log tails, a few jobs), backtick-fencing any fork-supplied log text, and add a special case that prints the exact internal/generate/action_pins.yaml line to change when the pin consistency guard fails. Keep the sticky self-clearing on a green run, guarded on head_sha so a stale completion cannot overwrite a newer green comment. Must work on external fork PRs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciCI/CD pipeline and workflow changesfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions