You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@incubator.apache.org by se...@apache.org on 2025/07/18 19:59:20 UTC
svn commit: r1927325 - /incubator/public/trunk/clutch2.py
Author: sebb
Date: Fri Jul 18 19:59:20 2025
New Revision: 1927325
URL: http://svn.apache.org/viewvc?rev=1927325&view=rev
Log:
graduated/retired podlings should have resolution and should not have reporting tags
Modified:
incubator/public/trunk/clutch2.py
Modified: incubator/public/trunk/clutch2.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch2.py?rev=1927325&r1=1927324&r2=1927325&view=diff
==============================================================================
--- incubator/public/trunk/clutch2.py (original)
+++ incubator/public/trunk/clutch2.py Fri Jul 18 19:59:20 2025
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -354,9 +354,27 @@ for row in dom.getElementsByTagName("pod
if row.getAttribute("status") == 'graduated':
graduatedProjects[resource.lower()] = {'name': name, 'startdate': startDate, 'enddate': endDate}
+ # Should have resolution; should not have reporting
+ if len(row.getElementsByTagName("resolution")) == 0:
+ errorMsg = "{0}: graduated podling does not have resolution entry".format(id)
+ print("ERROR: ", errorMsg)
+ otherIssues.append(errorMsg)
+ if len(row.getElementsByTagName("reporting")) > 0:
+ errorMsg = "{0}: graduated podling still has a reporting entry".format(id)
+ print("ERROR: ", errorMsg)
+ otherIssues.append(errorMsg)
if row.getAttribute("status") == 'retired':
retiredProjects[resource.lower()] = {'name': name, 'startdate': startDate, 'enddate': endDate}
+ # Should have resolution; should not have reporting
+ if len(row.getElementsByTagName("resolution")) == 0:
+ errorMsg = "{0}: retired podling does not have resolution entry".format(id)
+ print("ERROR: ", errorMsg)
+ otherIssues.append(errorMsg)
+ if len(row.getElementsByTagName("reporting")) > 0:
+ errorMsg = "{0}: retired podling still has a reporting entry".format(id)
+ print("ERROR: ", errorMsg)
+ otherIssues.append(errorMsg)
if row.getAttribute("status") == 'current':
if optionVerbose:
@@ -554,10 +572,10 @@ for k in sorted(projectNames, key=str.lo
# get the project info hints
if optionVerbose:
print("DEBUG: Gather hints from project Status page")
- print (dom.nodeName)
- for node in dom.childNodes:
- for elem in node.childNodes:
- print (elem)
+ print (dom.nodeName)
+ for node in dom.childNodes:
+ for elem in node.childNodes:
+ print (elem)
table = dom.getElementsByTagName("table")[0]
for row in table.getElementsByTagName("tr")[1:]:
if (len(row.getElementsByTagName("td")) < 3):
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org