Skip to content

Fix CI workflow eval reporting and PR status - #130669

Merged
kotlarmilos merged 6 commits into
mainfrom
kotlarmilos/ci-eval-reporting-fix
Jul 15, 2026
Merged

kotlarmilos merged 6 commits into
mainfrom
kotlarmilos/ci-eval-reporting-fix

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Description

This fixes the on-demand CI workflow eval path by validating Copilot PATs before selection, using the workflow GITHUB_TOKEN with pull-requests: write for reactions and report comments, and publishing a ci-workflow-eval commit status on the evaluated PR head. Conditional workflow-level concurrency cancels only superseded eval commands, so unrelated PR comments cannot stop an active eval. The temporary probe is removed from the final change.

The successful live validation run is https://github.com/dotnet/runtime/actions/runs/29326781714. It confirmed that PR comments, reactions, and commit statuses work with the final permission model.

Use the repository write token for reactions, report comments, and PR-head statuses. Ignore invalid Copilot PAT pool entries and scope cancellation to active eval jobs. Add a temporary PR workflow to verify the reporting permissions before removing it.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: c88c0b65-971b-4cc4-9674-e6d83c3b8ee3
Copilot AI review requested due to automatic review settings July 14, 2026 10:33
@kotlarmilos
kotlarmilos requested review from a team and jeffhandley as code owners July 14, 2026 10:33
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 10:33 — with GitHub Actions Inactive
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
14 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

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

Updates the ci-workflow-eval GitHub Actions workflow to improve reliability of on-demand eval reporting by posting PR-head commit statuses, using an alternate token for reactions/comments/status writes, validating PAT pool entries before selection, and scoping concurrency cancellation to the eval job. Adds a separate PR-triggered “probe” workflow intended to validate permissions for those writes.

Changes:

  • Post ci-workflow-eval commit statuses (pending at acknowledge; success/failure/error at report) using GH_AW_GITHUB_TOKEN fallback.
  • Filter out invalid COPILOT_PAT_* pool entries by probing GET /user before selecting a token.
  • Move concurrency cancellation from workflow-level to the eval job; add a new ci-eval-pr-probe workflow to validate writes.
Show a summary per file
File Description
.github/workflows/ci-eval.yml Adds PR-head status reporting, PAT validation, and job-scoped concurrency for CI eval runs.
.github/workflows/ci-eval-pr-probe.yml Introduces a PR-triggered probe that writes a comment/reaction/status to validate token permissions.

Copilot's findings

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

Comment thread .github/workflows/ci-eval.yml Resolved
Comment thread .github/workflows/ci-eval.yml Resolved
Comment thread .github/workflows/ci-eval-pr-probe.yml Resolved
Select only Copilot tokens that authenticate and have write access to the runtime repository, then reuse the selected user token for acknowledgements and reports. Update the temporary probe to exercise the same selection path.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: c88c0b65-971b-4cc4-9674-e6d83c3b8ee3
Copilot AI review requested due to automatic review settings July 14, 2026 10:39
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 10:39 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 10:39 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 10:39 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 10:41 — with GitHub Actions Inactive
Co-authored-by: Copilot <[email protected]>

Copilot-Session: c88c0b65-971b-4cc4-9674-e6d83c3b8ee3
Copilot AI review requested due to automatic review settings July 14, 2026 11:01
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:01 — with GitHub Actions Inactive
@dotnet dotnet deleted a comment from github-actions Bot Jul 14, 2026
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:01 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:04 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:05 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:05 — with GitHub Actions Inactive

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.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 4

Comment thread .github/workflows/ci-eval.yml Resolved
Comment thread .github/workflows/ci-eval.yml Resolved
Comment thread .github/workflows/ci-eval.yml Resolved
Comment thread .github/workflows/ci-eval.yml Resolved
Co-authored-by: Copilot <[email protected]>

Copilot-Session: c88c0b65-971b-4cc4-9674-e6d83c3b8ee3
Copilot AI review requested due to automatic review settings July 14, 2026 11:11
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:11 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:11 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:13 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:13 — with GitHub Actions Inactive
@kotlarmilos
kotlarmilos temporarily deployed to copilot-pat-pool July 14, 2026 11:14 — with GitHub Actions Inactive

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.

Copilot's findings

Comments suppressed due to low confidence (1)

.github/workflows/ci-eval.yml:388

  • When the guard does not run and no explicit GUARD_REASON is provided (e.g., dependency failure/skip before the guard step), the comment becomes _eval skipped_, which is not actionable for maintainers. It would be more useful to emit a concrete fallback reason in that case.
            } else {
              body = `${marker}\n${process.env.GUARD_REASON || '_eval skipped_'}`;
            }
  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread .github/workflows/ci-eval.yml Resolved
Comment thread .github/workflows/ci-eval.yml Resolved
@kotlarmilos
kotlarmilos requested a review from vitek-karas July 14, 2026 11:37
@kotlarmilos kotlarmilos added this to the 11.0.0 milestone Jul 14, 2026
@kotlarmilos
kotlarmilos merged commit 838d29c into main Jul 15, 2026
29 of 30 checks passed
@kotlarmilos
kotlarmilos deleted the kotlarmilos/ci-eval-reporting-fix branch July 15, 2026 07:19
@dotnet-milestone-bot dotnet-milestone-bot Bot modified the milestones: 11.0.0, 11.0-preview7 Jul 16, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 16, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 80dd0590 Deployed Jul 14, 2026 by kotlarmilos via conclusion #14920
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants