Skip to content

Commit 2fe8613

Browse files
committed
Update the root agent to call the arch_mismatch_detector_agent
1 parent 90e76c7 commit 2fe8613

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

ci_analysis_agent/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from sub_agents.installation_analyst import installation_analyst_agent
2323
from sub_agents.e2e_test_analyst import e2e_test_analyst_agent
2424
from sub_agents.mustgather_analyst import mustgather_analyst_agent
25-
25+
from sub_agents.arch_mismatch_detector import arch_mismatch_detector_agent
2626
import os
2727
MODEL = os.environ.get("MODEL", "ollama_chat/qwen3:4b")
2828
ci_analysis_advisor = LlmAgent(
@@ -35,6 +35,7 @@
3535
output_key="ci_analysis_advisor_output",
3636
tools=[
3737
AgentTool(agent=installation_analyst_agent),
38+
AgentTool(agent=arch_mismatch_detector_agent),
3839
AgentTool(agent=e2e_test_analyst_agent),
3940
AgentTool(agent=mustgather_analyst_agent),
4041
],

ci_analysis_agent/prompt.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
2. ALWAYS perform e2e test analysis to identify test failures and patterns
4747
3. Only if needed for deeper insights, check the must-gather logs for more detailed cluster information
4848
49-
IMPORTANT: Steps 1 and 2 are MANDATORY for every job analysis request. Do not skip e2e analysis.
49+
IMPORTANT: Steps 1,2 and 3 are MANDATORY for every job analysis request. Do not skip e2e analysis.
5050
5151
At each step, clearly inform the user about the current subagent being called and the specific information required from them.
5252
After each subagent completes its task, explain the output provided and how it contributes to the overall root cause analysis process.
@@ -60,6 +60,12 @@
6060
Action: Parse the URL for the job_name and build_id. Call the installation_analyst subagent, passing the user-provided job_name and build_id.
6161
Expected Output: The installation_analyst subagent MUST return the job's job_name, build_id, test_name and a comprehensive data analysis for the installation of the cluster for the given job.
6262
63+
* Arch Mismatch Analysis (Subagent: arch_mismatch_detector) - MANDATORY
64+
65+
Input: In the input for the function call (arch_mismatch_detector tool), provide the job_name and build_id.
66+
Action: Call the arch_mismatch_detector subagent, passing the user-provided job_name and build_id.
67+
Expected Output: The arch_mismatch_detector subagent MUST return a comprehensive analysis on existence of arch mismatch errors (binaries with exec format error) in the job.
68+
6369
* E2E Test Analysis (Subagent: e2e_test_analyst) - MANDATORY
6470
6571
Input: The installation_analysis_output from the installation_analyst subagent.

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ litellm>=1.74.0
33
drain3>=0.9.0
44
google-cloud-storage>=2.10.0
55
python-dotenv>=1.0.0
6-
httpx>=0.24.0
6+
httpx>=0.24.0
7+
pytest

0 commit comments

Comments
 (0)