From 890ff5c45cbb758c13478ed5d6d90d2134fabbad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 31 Jan 2026 15:49:57 +0000 Subject: [PATCH 1/2] Initial plan From 49b10951b4fa29bde49c6129178b60dbf72f6afb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 31 Jan 2026 15:58:00 +0000 Subject: [PATCH 2/2] Add noop to CI Doctor workflow when no action needed - Add noop safe output to ci-doctor.md configuration - Update instructions to call noop when CI workflow is successful - Recompile workflow to include noop tool - Update action pins (actions/upload-artifact) This ensures the workflow explicitly signals completion when there's nothing to investigate, preventing "No Safe Outputs Generated" warnings. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/workflows/ci-doctor.lock.yml | 2 +- .github/workflows/ci-doctor.md | 5 ++++- pkg/workflow/data/action_pins.json | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-doctor.lock.yml b/.github/workflows/ci-doctor.lock.yml index 0d819b2aa5..21448b142e 100644 --- a/.github/workflows/ci-doctor.lock.yml +++ b/.github/workflows/ci-doctor.lock.yml @@ -23,7 +23,7 @@ # # Source: githubnext/agentics/workflows/ci-doctor.md@ea350161ad5dcc9624cf510f134c6a9e39a6f94d # -# frontmatter-hash: f430896914b2e4529a1543146065fc41191053493ec76f5f47c3ee9591b72221 +# frontmatter-hash: fd78e8183e3a4c0c3bd23b924c1c3164dae64a7589e74ef9a3102788475ad145 # # Effective stop-time: 2026-03-03 15:23:52 diff --git a/.github/workflows/ci-doctor.md b/.github/workflows/ci-doctor.md index 240f66b0e1..1fa604b245 100644 --- a/.github/workflows/ci-doctor.md +++ b/.github/workflows/ci-doctor.md @@ -32,6 +32,7 @@ safe-outputs: title-prefix: "[CI Failure Doctor] " labels: [cookie] add-comment: + noop: messages: footer: "> 🩺 *Diagnosis provided by [{workflow_name}]({run_url})*" run-started: "🏥 CI Doctor reporting for duty! [{workflow_name}]({run_url}) is examining the patient on this {event_type}..." @@ -63,10 +64,12 @@ You are the CI Failure Doctor, an expert investigative agent that analyzes faile ## Investigation Protocol -**ONLY proceed if the workflow conclusion is 'failure' or 'cancelled'**. Exit immediately if the workflow was successful. +**ONLY proceed if the workflow conclusion is 'failure' or 'cancelled'**. If the workflow was successful, **call the `noop` tool** immediately and exit. ### Phase 1: Initial Triage 1. **Verify Failure**: Check that `${{ github.event.workflow_run.conclusion }}` is `failure` or `cancelled` + - **If the workflow was successful**: Call the `noop` tool with message "CI workflow completed successfully - no investigation needed" and **stop immediately**. Do not proceed with any further analysis. + - **If the workflow failed or was cancelled**: Proceed with the investigation steps below. 2. **Get Workflow Details**: Use `get_workflow_run` to get full details of the failed run 3. **List Jobs**: Use `list_workflow_jobs` to identify which specific jobs failed 4. **Quick Assessment**: Determine if this is a new type of failure or a recurring pattern diff --git a/pkg/workflow/data/action_pins.json b/pkg/workflow/data/action_pins.json index 80130e4a1a..2db5179bb9 100644 --- a/pkg/workflow/data/action_pins.json +++ b/pkg/workflow/data/action_pins.json @@ -100,7 +100,7 @@ "version": "v5.6.0", "sha": "a26af69be951a213d495a4c3e4e4022e16d87065" }, - "actions/upload-artifact@v4": { + "actions/upload-artifact@v4.6.2": { "repo": "actions/upload-artifact", "version": "v4.6.2", "sha": "ea165f8d65b6e75b540449e92b4886f43607fa02"