hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11723) automate and markdownify changelog and release notes
Date Tue, 17 Mar 2015 00:52:38 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14364330#comment-14364330
] 

Andrew Wang commented on HADOOP-11723:
--------------------------------------

Thanks Allen, this would be a great modernization. Once we get these scripts in, we can consider
checking in the output of this script for each release 2.2 and onwards. I don't think we necessarily
need a single file with all the changes.

Some quick takes, I don't claim to be a python expert, but I've written the odd script or
two. I'll kick the tires after you incorporate these:

* It looks like relnotes.py and changes.py share some common code, could we break it out into
a little library?
* optparse is deprecated in favor of argparse, could we switch over?
* In main(), effectively the switch statement, if you used a map from {{jira.getType()}} to
each corresponding list, you wouldn't need all the if statements. Just look up the corresponding
list from the map and put the JIRA in.
* Related, in main() where the printing happens, this could be done with a foreach very concisely,
something like:

{code}
for jira_list in [incompatlist, newfeaturelist, ...]:
  <output statements for jira_list>
{code}

Nits:

{code}
  versions = [ Version(v) for v in options.versions];
{code}

Need space at before the end bracket for consistency with the rest of file.

> automate and markdownify changelog and release notes
> ----------------------------------------------------
>
>                 Key: HADOOP-11723
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11723
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 3.0.0
>            Reporter: Allen Wittenauer
>         Attachments: HADOOP-11723-00.patch
>
>
> Let's update our release process.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message