incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1547990 - /incubator/public/trunk/report_runbook.py
Date Thu, 05 Dec 2013 01:50:04 GMT
Author: marvin
Date: Thu Dec  5 01:50:03 2013
New Revision: 1547990

URL: http://svn.apache.org/r1547990
Log:
Move prep tasks for the coming report to immediately after report is
filed.

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=1547990&r1=1547989&r2=1547990&view=diff
==============================================================================
--- incubator/public/trunk/report_runbook.py (original)
+++ incubator/public/trunk/report_runbook.py Thu Dec  5 01:50:03 2013
@@ -25,37 +25,13 @@ import datetime
 
 from report_timeline import Timeline
 
-def prep_wiki_report_template(options):
-    return strip_indent("""
-        ##################################################################
-        # Prepare the wiki report template.
-        ##################################################################
-
-        # Edit podlings.xml: remove the "monthly" attribute for podlings
-        # where it has expired.  Commit any changes.
-        [... edit podlings.xml with your editor of choice ...]
-        svn ci -m "Remove expired 'monthly' attributes."
-
-        # Run clutch, regenerate the website, commit and publish
-        python3 clutch.py
-        ant
-        svn ci -m "Run clutch and update Incubator website."
-        ssh -t {apache_id}@people.apache.org publish.pl incubator {apache_id}
-
-        # Assign shepherds.
-        python3 assign_shepherds.py --month={month}
-        svn ci -m "Assign sheperds."
-
-        # Generate report template and publish on the wiki.
-        python3 clutch2report.py --month={month} --upload
-        """).format(**options)
-
 def timeline_email(options):
     timeline = Timeline(month=options['month']).to_email()
     return strip_indent("""
         ##################################################################
-        # Send an email to general@incubator announcing the report
-        # timeline, using the following content.
+        # On the last Wednesday of the month, send an email to
+        # general@incubator announcing the report timeline, using the
+        # following content.
         ##################################################################
         {timeline}
         """).format(timeline=timeline, **options)
@@ -141,6 +117,32 @@ def file_report(options):
         ##################################################################
         """).format(**options)
 
+def prep_next_wiki_report_template(options):
+    next_month = (options['month'] % 12) + 1
+    return strip_indent("""
+        ##################################################################
+        # Prepare next month's wiki report template.
+        ##################################################################
+
+        # Edit podlings.xml: remove the "monthly" attribute for podlings
+        # where it has expired.  Commit any changes.
+        [... edit podlings.xml with your editor of choice ...]
+        svn ci -m "Remove expired 'monthly' attributes."
+
+        # Run clutch, regenerate the website, commit and publish
+        python3 clutch.py
+        ant
+        svn ci -m "Run clutch and update Incubator website."
+        ssh -t {apache_id}@people.apache.org publish.pl incubator {apache_id}
+
+        # Assign shepherds.
+        python3 assign_shepherds.py --month={next_month}
+        svn ci -m "Assign sheperds."
+
+        # Generate report template and publish on the wiki.
+        python3 clutch2report.py --month={next_month} --upload
+        """).format(next_month=next_month, **options)
+
 def strip_indent(text):
     # Fragile hack, but good enough for this simple script.
     return text.replace("\n        ", "\n")
@@ -166,13 +168,13 @@ def process_cli_args():
 def main():
     options = process_cli_args()
     text = ""
-    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)
+    text += prep_next_wiki_report_template(options)
     print(text)
 
 if __name__ == '__main__':



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


Mime
View raw message