Skip to content

Commit

Permalink
Debug analysis script
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 30, 2024
1 parent db051c4 commit 0e8fcc1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,28 +71,37 @@ def analyze_logs(log_content):
continue

if in_environment_output:
print(f"Processing line: {line}") # Debugging output

if os_id is None and id_pattern.search(line):
os_id = id_pattern.search(line).group(1)
print(f"Captured ID: {os_id}") # Debugging output

if version_id is None and version_id_pattern.search(line):
version_id = version_id_pattern.search(line).group(1)
print(f"Captured VERSION_ID: {version_id}") # Debugging output

if version_codename is None and version_codename_pattern.search(line):
version_codename = version_codename_pattern.search(line).group(1)
print(f"Captured VERSION_CODENAME: {version_codename}") # Debugging output

if full_version is None and full_version_pattern.search(line):
full_version = full_version_pattern.search(line).group(1)
print(f"Captured FULL VERSION: {full_version}") # Debugging output

if python_version is None and python_version_pattern.search(line):
python_version = python_version_pattern.search(line).group(1)
print(f"Captured LANGUAGE VERSION: {python_version}") # Debugging output

for pattern in error_patterns:
if pattern.search(line):
issues_found = True
print(f"Captured issue: {line}") # Debugging output
break

return os_id, version_id, version_codename, full_version, python_version, issues_found


# Function to summarize the issues based on the jobs
def summarize_issues(jobs):
summary = {}
Expand Down

0 comments on commit 0e8fcc1

Please sign in to comment.