You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/09/13 22:09:59 UTC

svn commit: r1912295 - /comdev/projects.apache.org/trunk/scripts/cronjobs/parsereleases.py

Author: sebb
Date: Wed Sep 13 22:09:59 2023
New Revision: 1912295

URL: http://svn.apache.org/viewvc?rev=1912295&view=rev
Log:
Special fix for solr

Modified:
    comdev/projects.apache.org/trunk/scripts/cronjobs/parsereleases.py

Modified: comdev/projects.apache.org/trunk/scripts/cronjobs/parsereleases.py
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/trunk/scripts/cronjobs/parsereleases.py?rev=1912295&r1=1912294&r2=1912295&view=diff
==============================================================================
--- comdev/projects.apache.org/trunk/scripts/cronjobs/parsereleases.py (original)
+++ comdev/projects.apache.org/trunk/scripts/cronjobs/parsereleases.py Wed Sep 13 22:09:59 2023
@@ -74,13 +74,23 @@ NON_SOURCE_ENDS = ['-amd64', '.bin', '-b
 NON_SOURCE_MATCH = ['-bin-', '-binary-', '-docs-', 'x86-windows', 'x64-windows']
 # Warning: beware of accidentally matching Maven plugins!
 
+# filters for dirs, matches and ends that may only apply to certain PMCs
+CTTEE_FILTERS = {
+    "solr": {
+        "ENDS": ['-slim'],
+        "MATCH": [],
+        "DIRS": ['helm-charts']
+    }
+}
+
 def parseFile(committeeId, file, date, path):
     parts = file.split('.')
     ext = parts.pop() # final extension
     if not ext in VALID_TYPES or (ext in TAR_TYPES and parts.pop() != 'tar'):
         return
     stem = ".".join(parts) # the filename stem without the archive suffice(s)
-    if any(stem.endswith(end) for end in NON_SOURCE_ENDS) or any(mat in stem for mat in NON_SOURCE_MATCH):
+    if (any(stem.endswith(end) for end in NON_SOURCE_ENDS + CTTEE_FILTERS.get(committeeId,{}).get('ENDS',[])) or 
+        any(mat in stem for mat in NON_SOURCE_MATCH + CTTEE_FILTERS.get(committeeId,{}).get('MATCH',[]))):
         return
     filename = cleanFilename(stem)
     if len(filename) > 1:
@@ -111,11 +121,10 @@ def main():
             # Ignore invisible files
             if file.startswith('.') or file in ['favicon.ico', 'META']:
                 continue
-            if any( seg in SKIP_DIRS for seg in segs):
+            committeeId = segs[0]
+            if any( seg in SKIP_DIRS + CTTEE_FILTERS.get(committeeId,{}).get('DIRS',[])  for seg in segs):
                 # print('SKIP', segs)
                 continue
-
-            committeeId = segs[0]
             if committeeId in ['zzz']:
                 continue
             if committeeId == 'incubator':