From fc194d7e01cf967cd3e59d3f8c272c3f8af6b8d7 Mon Sep 17 00:00:00 2001
From: vibhutikumar <160819926+vibhutikumar07@users.noreply.github.com>
Date: Thu, 19 Feb 2026 17:49:28 +0530
Subject: [PATCH 1/3] Scenario 1: Add non-existent dependency
---
pom.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pom.xml b/pom.xml
index 13baf0765..7c34eb5e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -169,6 +169,11 @@
+
+ com.example
+ non-existent-lib
+ 1.0.0
+
From cbe5c7642c7c1d028466be82252842880572463c Mon Sep 17 00:00:00 2001
From: vibhutikumar <160819926+vibhutikumar07@users.noreply.github.com>
Date: Thu, 19 Feb 2026 18:09:59 +0530
Subject: [PATCH 2/3] Update demo-build.yml from feature/build-doctor
---
.github/workflows/demo-build.yml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/.github/workflows/demo-build.yml b/.github/workflows/demo-build.yml
index 61b2aa6c0..2488f845b 100644
--- a/.github/workflows/demo-build.yml
+++ b/.github/workflows/demo-build.yml
@@ -18,3 +18,30 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn clean install
+
+ diagnose:
+ needs: build
+ if: failure()
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ issues: write
+ pull-requests: write
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ - name: Install dependencies
+ run: npm install @actions/github @google/generative-ai @octokit/core
+ - name: Run Build Doctor Analysis
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
+ WORKFLOW_RUN_ID: ${{ github.run_id }}
+ WORKFLOW_NAME: ${{ github.workflow }}
+ REPO_OWNER: ${{ github.repository_owner }}
+ REPO_NAME: ${{ github.event.repository.name }}
+ run: node .github/scripts/analyze-failure.js
From f092c66554f66999fa61dac38f8c1b215de988af Mon Sep 17 00:00:00 2001
From: vibhutikumar <160819926+vibhutikumar07@users.noreply.github.com>
Date: Thu, 19 Feb 2026 18:15:47 +0530
Subject: [PATCH 3/3] Revert: Remove embedded Build Doctor
---
.github/workflows/demo-build.yml | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/.github/workflows/demo-build.yml b/.github/workflows/demo-build.yml
index 2488f845b..61b2aa6c0 100644
--- a/.github/workflows/demo-build.yml
+++ b/.github/workflows/demo-build.yml
@@ -18,30 +18,3 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn clean install
-
- diagnose:
- needs: build
- if: failure()
- runs-on: ubuntu-latest
- permissions:
- actions: read
- contents: read
- issues: write
- pull-requests: write
- steps:
- - uses: actions/checkout@v4
- - name: Set up Node.js
- uses: actions/setup-node@v4
- with:
- node-version: '20'
- - name: Install dependencies
- run: npm install @actions/github @google/generative-ai @octokit/core
- - name: Run Build Doctor Analysis
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
- WORKFLOW_RUN_ID: ${{ github.run_id }}
- WORKFLOW_NAME: ${{ github.workflow }}
- REPO_OWNER: ${{ github.repository_owner }}
- REPO_NAME: ${{ github.event.repository.name }}
- run: node .github/scripts/analyze-failure.js