Skip to content

Commit bc4bcfd

Browse files
author
naman-msft
committed
tested 33 docs
1 parent d381ceb commit bc4bcfd

File tree

15 files changed

+9078
-11
lines changed

15 files changed

+9078
-11
lines changed

tools/ada.py

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,15 +342,35 @@ def install_innovation_engine():
342342
def get_last_error_log():
343343
log_file = "ie.log"
344344
if os.path.exists(log_file):
345-
with open(log_file, "r") as f:
346-
lines = f.readlines()
345+
try:
346+
with open(log_file, "rb") as f: # Open in binary mode
347+
content = f.read()
348+
349+
# Try to decode as UTF-8, replacing errors
350+
try:
351+
text_content = content.decode('utf-8', errors='replace')
352+
except:
353+
# If that fails, try other encodings
354+
for encoding in ['latin-1', 'cp1252', 'iso-8859-1']:
355+
try:
356+
text_content = content.decode(encoding, errors='replace')
357+
break
358+
except:
359+
continue
360+
else:
361+
# If all encodings fail, convert to string representation
362+
text_content = str(content)
363+
364+
lines = text_content.splitlines()
347365
error_index = None
348366
for i in range(len(lines) - 1, -1, -1):
349367
if "level=error" in lines[i]:
350368
error_index = i
351369
break
352370
if error_index is not None:
353-
return "".join(lines[error_index:])
371+
return "\n".join(lines[error_index:])
372+
except Exception as e:
373+
return f"Error reading log file: {e}"
354374
return "No error log found."
355375

356376
def generate_script_description(script_path, context=""):
@@ -2252,7 +2272,22 @@ def main():
22522272
print_header(f"Running Innovation Engine tests", "-")
22532273
ie_cmd = ["ie", "test", output_file]
22542274
try:
2255-
result = subprocess.run(ie_cmd, capture_output=True, text=True, timeout=660)
2275+
result = subprocess.run(ie_cmd, capture_output=True, text=False, timeout=660)
2276+
try:
2277+
stdout = result.stdout.decode('utf-8', errors='replace') if result.stdout else ""
2278+
stderr = result.stderr.decode('utf-8', errors='replace') if result.stderr else ""
2279+
except UnicodeDecodeError:
2280+
stdout = str(result.stdout) if result.stdout else ""
2281+
stderr = str(result.stderr) if result.stderr else ""
2282+
2283+
# Create a result-like object with decoded text
2284+
class DecodedResult:
2285+
def __init__(self, returncode, stdout, stderr):
2286+
self.returncode = returncode
2287+
self.stdout = stdout
2288+
self.stderr = stderr
2289+
2290+
result = DecodedResult(result.returncode, stdout, stderr)
22562291
except subprocess.TimeoutExpired:
22572292
print_message("\nThe 'ie test' command timed out after 11 minutes.")
22582293
errors_encountered.append("The 'ie test' command timed out after 11 minutes.")

tools/containerd.log

Lines changed: 7903 additions & 0 deletions
Large diffs are not rendered by default.

tools/kubelet.log

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-- No entries --

tools/log.json

Lines changed: 77 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"info": {
33
"Creation Date": "2025-05-06 13:27:28",
4-
"Last Modified Date": "2025-06-04 10:07:36",
5-
"Total Operations": 42,
6-
"Success Rate": 0.43,
4+
"Last Modified Date": "2025-06-05 12:54:23",
5+
"Total Operations": 48,
6+
"Success Rate": 0.42,
77
"Operation Summary": {
88
"doc_creation": 0,
9-
"doc_conversion": 42,
9+
"doc_conversion": 48,
1010
"script_documentation": 0,
1111
"security_analysis": 0,
1212
"pii_redaction": 0,
1313
"seo_optimization": 0
1414
},
15-
"Total Execution Time (in seconds)": 27107
15+
"Total Execution Time (in seconds)": 28288
1616
},
1717
"doc_conversion": [
1818
{
@@ -518,6 +518,78 @@
518518
"Result": "Success",
519519
"Project Folder": "untested/enable_host_based_encryption_on_azure",
520520
"User Intent": "User intends to configure host-based encryption for data at rest on Azure Kubernetes Service (AKS) clusters."
521+
},
522+
{
523+
"Timestamp": "2025-06-05 12:06:13",
524+
"Type": "file",
525+
"Input": "untested/use_kubernetes_events_for_troubleshoo/use_kubernetes_events_for_troubleshoo.md",
526+
"Output": "untested/use_kubernetes_events_for_troubleshoo/attempt_1_failure.md",
527+
"Attempt Number": 1,
528+
"Errors Encountered": "time=2025-06-05T12:06:13-07:00 level=error msg=Error executing scenario: command exited with 'exit status 1' and the message 'E0605 12:06:13.659134 732776 memcache.go:265] \"Unhandled Error\" err=\"couldn't get current server API group list: Get \\\"https://aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io:443/api?timeout=32s\\\": dial tcp: lookup aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io on 10.255.255.254:53: no such host\"\nE0605 12:06:13.694905 732776 memcache.go:265] \"Unhandled Error\" err=\"couldn't get current server API group list: Get \\\"https://aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io:443/api?timeout=32s\\\": dial tcp: lookup aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io on 10.255.255.254:53: no such host\"\nE0605 12:06:13.706493 732776 memcache.go:265] \"Unhandled Error\" err=\"couldn't get current server API group list: Get \\\"https://aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io:443/api?timeout=32s\\\": dial tcp: lookup aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io on 10.255.255.254:53: no such host\"\nE0605 12:06:13.730742 732776 memcache.go:265] \"Unhandled Error\" err=\"couldn't get current server API group list: Get \\\"https://aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io:443/api?timeout=32s\\\": dial tcp: lookup aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io on 10.255.255.254:53: no such host\"\nE0605 12:06:13.755990 732776 memcache.go:265] \"Unhandled Error\" err=\"couldn't get current server API group list: Get \\\"https://aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io:443/api?timeout=32s\\\": dial tcp: lookup aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io on 10.255.255.254:53: no such host\"\nUnable to connect to the server: dial tcp: lookup aks-cluste-aks-rg-325e7c-rwj577vi.hcp.eastus2.azmk8s.io on 10.255.255.254:53: no such host\n'",
529+
"Execution Time (in seconds)": 12,
530+
"Result": "Failure",
531+
"Project Folder": "untested/use_kubernetes_events_for_troubleshoo",
532+
"User Intent": "User intends to learn how to use Kubernetes events to monitor and troubleshoot issues in Azure Kubernetes Service (AKS) clusters."
533+
},
534+
{
535+
"Timestamp": "2025-06-05 12:10:05",
536+
"Type": "file",
537+
"Input": "untested/use_kubernetes_events_for_troubleshoo/use_kubernetes_events_for_troubleshoo.md",
538+
"Output": "untested/use_kubernetes_events_for_troubleshoo/attempt_2_failure.md",
539+
"Attempt Number": 2,
540+
"Errors Encountered": "time=2025-06-05T12:10:05-07:00 level=error msg=Error executing scenario: command exited with 'exit status 2' and the message 'bash: -c: line 2: syntax error near unexpected token `newline'\n'",
541+
"Execution Time (in seconds)": 243,
542+
"Result": "Failure",
543+
"Project Folder": "untested/use_kubernetes_events_for_troubleshoo",
544+
"User Intent": "User intends to learn how to use Kubernetes events to monitor and troubleshoot issues in Azure Kubernetes Service (AKS) clusters."
545+
},
546+
{
547+
"Timestamp": "2025-06-05 12:10:55",
548+
"Type": "file",
549+
"Input": "untested/use_kubernetes_events_for_troubleshoo/use_kubernetes_events_for_troubleshoo.md",
550+
"Output": "untested/use_kubernetes_events_for_troubleshoo/attempt_3_failure.md",
551+
"Attempt Number": 3,
552+
"Errors Encountered": "time=2025-06-05T12:10:55-07:00 level=error msg=Error executing scenario: command exited with 'exit status 1' and the message 'WARNING: The behavior of this command has been altered by the following extension: aks-preview\nERROR: A different object named aks-cluster already exists in clusters in your kubeconfig file.\n'",
553+
"Execution Time (in seconds)": 294,
554+
"Result": "Failure",
555+
"Project Folder": "untested/use_kubernetes_events_for_troubleshoo",
556+
"User Intent": "User intends to learn how to use Kubernetes events to monitor and troubleshoot issues in Azure Kubernetes Service (AKS) clusters."
557+
},
558+
{
559+
"Timestamp": "2025-06-05 12:11:25",
560+
"Type": "file",
561+
"Input": "untested/use_kubernetes_events_for_troubleshoo/use_kubernetes_events_for_troubleshoo.md",
562+
"Output": "untested/use_kubernetes_events_for_troubleshoo/attempt_4_success.md",
563+
"Attempt Number": 4,
564+
"Errors Encountered": "",
565+
"Execution Time (in seconds)": 324,
566+
"Result": "Success",
567+
"Project Folder": "untested/use_kubernetes_events_for_troubleshoo",
568+
"User Intent": "User intends to learn how to use Kubernetes events to monitor and troubleshoot issues in Azure Kubernetes Service (AKS) clusters."
569+
},
570+
{
571+
"Timestamp": "2025-06-05 12:49:28",
572+
"Type": "file",
573+
"Input": "untested/troubleshoot_container_network_interf/troubleshoot_container_network_interf.md",
574+
"Output": "untested/troubleshoot_container_network_interf/attempt_1_failure.md",
575+
"Attempt Number": 1,
576+
"Errors Encountered": "time=2025-06-05T12:49:26-07:00 level=error msg=Error testing scenario: failed to execute code block 1 on step 0.\nError: command exited with 'exit status 23' and the message ' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file \nWarning: /opt/cni/downloads/azure-vnet-cni-linux-amd64-v1.0.25.tgz: No such \nWarning: file or directory\n\n 0 6495k 0 16375 0 0 98503 0 0:01:07 --:--:-- 0:01:07 98644\ncurl: (23) Failure writing output to destination\n'\nStdErr: % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\n 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: Failed to create the file \nWarning: /opt/cni/downloads/azure-vnet-cni-linux-amd64-v1.0.25.tgz: No such \nWarning: file or directory\n\n 0 6495k 0 16375 0 0 98503 0 0:01:07 --:--:-- 0:01:07 98644\ncurl: (23) Failure writing output to destination",
577+
"Execution Time (in seconds)": 9,
578+
"Result": "Failure",
579+
"Project Folder": "untested/troubleshoot_container_network_interf",
580+
"User Intent": "User intends to troubleshoot and resolve Container Network Interface (CNI) download failures when creating or deploying an Azure Kubernetes Service (AKS) cluster."
581+
},
582+
{
583+
"Timestamp": "2025-06-05 12:54:18",
584+
"Type": "file",
585+
"Input": "untested/troubleshoot_container_network_interf/troubleshoot_container_network_interf.md",
586+
"Output": "untested/troubleshoot_container_network_interf/attempt_2_success.md",
587+
"Attempt Number": 2,
588+
"Errors Encountered": "",
589+
"Execution Time (in seconds)": 299,
590+
"Result": "Success",
591+
"Project Folder": "untested/troubleshoot_container_network_interf",
592+
"User Intent": "User intends to troubleshoot and resolve Container Network Interface (CNI) download failures when creating or deploying an Azure Kubernetes Service (AKS) cluster."
521593
}
522594
]
523595
}

0 commit comments

Comments
 (0)