Skip to content

Commit

Permalink
Adjust start line analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
cscollett committed Aug 30, 2024
1 parent 7cc4ee0 commit 842ddf5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def analyze_logs(log_content):
python_version = None
issues_found = False

# Simplified patterns to match the log format exactly
id_pattern = re.compile(r'^ID: (.+)')
version_id_pattern = re.compile(r'^VERSION_ID: (.+)')
version_codename_pattern = re.compile(r'^VERSION_CODENAME: (.+)')
full_version_pattern = re.compile(r'^FULL VERSION: (.+)')
python_version_pattern = re.compile(r'^LANGUAGE VERSION: (.+)')
# Simplified patterns to match the log format
id_pattern = re.compile(r'.*ID: (.+)')
version_id_pattern = re.compile(r'.*VERSION_ID: (.+)')
version_codename_pattern = re.compile(r'.*VERSION_CODENAME: (.+)')
full_version_pattern = re.compile(r'.*FULL VERSION: (.+)')
python_version_pattern = re.compile(r'.*LANGUAGE VERSION: (.+)')

# Patterns to capture possible errors
error_patterns = [
Expand Down Expand Up @@ -105,6 +105,7 @@ def analyze_logs(log_content):
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 842ddf5

Please sign in to comment.