incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1547672 - /incubator/public/trunk/report_runbook.py
Date Wed, 04 Dec 2013 01:42:18 GMT
Author: marvin
Date: Wed Dec  4 01:42:17 2013
New Revision: 1547672

URL: http://svn.apache.org/r1547672
Log:
Add task for assembling release list.

Modified:
    incubator/public/trunk/report_runbook.py

Modified: incubator/public/trunk/report_runbook.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/report_runbook.py?rev=1547672&r1=1547671&r2=1547672&view=diff
==============================================================================
--- incubator/public/trunk/report_runbook.py (original)
+++ incubator/public/trunk/report_runbook.py Wed Dec  4 01:42:17 2013
@@ -60,6 +60,27 @@ def timeline_email(options):
         {timeline}
         """).format(timeline=timeline, **options)
 
+def assemble_release_list(options):
+    month = ((options['month'] + 10) % 12) + 1
+    year = options['year'] if month != 12 else options['year'] - 1
+    date = datetime.date(day=1, month=month, year=year)
+    date_spec = "{{{date:%Y}-{date:%m}-{date:%d}}}:HEAD".format(date=date)
+    return strip_indent("""
+        ##################################################################
+        # The Board report must contain a list of releases by the
+        # Incubator project since the last report.  This can be assembled
+        # manually from the history of our dist area.
+        # 
+        # The date of each release is the date it appeared in our dist
+        # area.  Since our report periods don't have hard boundaries,
+        # the only way to know which reports made the cut last month and
+        # which didn't is to check the last report.
+        ##################################################################
+
+        # History of our dist area since just before the last report:
+        svn log -r {0} https://dist.apache.org/repos/dist/release/incubator
+        """.format(date_spec))
+
 def summarize_podling_reports(options):
     return strip_indent("""
         ##################################################################
@@ -148,6 +169,7 @@ def main():
     text += prep_wiki_report_template(options)
     text += timeline_email(options)
     text += summarize_podling_reports(options)
+    text += assemble_release_list(options)
     text += normalize_formatting(options)
     text += shepherding_email(options)
     text += file_report(options)



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message