Skip to content

.github: link parallel-make-check.py annotations to the workflow file#10700

Open
julek-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
julek-wolfssl:parallel-make-check-annotation-link
Open

.github: link parallel-make-check.py annotations to the workflow file#10700
julek-wolfssl wants to merge 1 commit into
wolfSSL:masterfrom
julek-wolfssl:parallel-make-check-annotation-link

Conversation

@julek-wolfssl

Copy link
Copy Markdown
Member

A ::warning::/::error:: workflow command emitted with no file=
property is pinned by GitHub to the .github directory, whose blob URL is a
directory listing — so the annotations from parallel-make-check.py
rendered with a dead source link and a line number that points at nothing.

Derive the workflow file path from GITHUB_WORKFLOW_REF
(owner/repo/path@ref) and pass it as file= so the annotations link to the
real workflow that embeds the config list. Falls back to the previous
fileless form off-CI or when the ref is unavailable.

A ::warning::/::error:: emitted with no file= property is pinned by GitHub
to the .github directory, whose blob URL is a directory listing - so the
stale-"minutes" annotations rendered with a dead source link and a line
number that points at nothing.

Derive the workflow file path from GITHUB_WORKFLOW_REF (owner/repo/path@ref)
and pass it as file= so the annotations link to the real workflow that
embeds the config list. Falls back to the previous fileless form off-CI or
when the ref is unavailable.
Copilot AI review requested due to automatic review settings June 16, 2026 15:24
@julek-wolfssl julek-wolfssl self-assigned this Jun 16, 2026

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

This PR improves GitHub Actions annotations emitted by .github/scripts/parallel-make-check.py by attaching a file= property to ::warning:: / ::error:: workflow commands. This ensures annotation source links point to the actual workflow file (instead of the .github/ directory listing) by deriving the workflow path from GITHUB_WORKFLOW_REF, with a safe fallback to the previous fileless form when unavailable.

Changes:

  • Add workflow-command property escaping (gh_prop) and derive a workflow file= property from GITHUB_WORKFLOW_REF.
  • Emit ::warning file=…:: and ::error file=…:: on GitHub Actions so annotations link to the workflow YAML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@julek-wolfssl julek-wolfssl marked this pull request as ready for review June 16, 2026 16:28
@github-actions

Copy link
Copy Markdown

retest this please

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