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

Jan Høydahl commented on SOLR-17619:
------------------------------------

I made progress and have a migration tool ready for generating the initial 
changelog folder.

We should prepare the community by setting a cutover date a few days ahead. If 
we delete solr/CHANGES.txt then every open PR will get a merge conflict, which 
is probably a good thing since it forces them to instead enter that info into a 
yaml... The merge can be two steps.
 # First merge the logchange PR with the empty folder, docs and tooling, and 
backport to each branch.
 # Then for each branch (main, 10x 10_0, 9x, 9_10):
 ## Migrate that branch's CHANGES.txt to yaml using the py script
 ## Run logchange archive --version 9.9.0 to compact
 ## Delete solr/CHANGES.txt
 ## Commit and push

After that change we should remember to change the rest of the project
 # Update PR template
 # Consider adding a github workflow that fails if it finds a CHANGES.txt 
change in the PR and warns if it does NOT find a yaml change file
 # Update other locations mentioning CHANGES.txt
 # ReleaseWizard 
 # addVersion.py script (no need to add section to CHANGES.txt)
 # New changes2html script - python this time :) to generate same style 
changes.html for each release

> Generate CHANGELOG.md (formerly CHANGES.txt) via logchange
> ----------------------------------------------------------
>
>                 Key: SOLR-17619
>                 URL: https://issues.apache.org/jira/browse/SOLR-17619
>             Project: Solr
>          Issue Type: Task
>          Components: Build
>            Reporter: David Smiley
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> The [logchange|https://github.com/logchange/logchange] tool helps projects 
> maintain a log of changes. Each change (e.g. from a PR) will no longer edit a 
> CHANGES.txt file; instead it will include a _new_ YAML file in an appropriate 
> directory with others for the next Solr version.  The release process will 
> execute the tool, which will build a CHANGELOG.md file and will probably also 
> do something with the YAML files (remove?).
> Decide the most convenient way for us to run the tool for change authors.  
> Could a gradle task do it?  See [this 
> issue|https://github.com/logchange/logchange/issues/397] filed on the 
> logchange project.
> Outcome of this issue:
>  * a logchange tool configuration file -- logchange-config.yml
>  * Solr 10's CHANGES.txt entries converted to YAML.  (start this issue by 
> doing only a few before over-investing)
>  * a dev-docs page
>  ** for contributors/everyone: basic info explaining how each new change 
> should be recorded. Explain how to run the tool to generate the YAML file.  
> What field(s) matter the most; what should be ignored.  Link to further 
> details.
>  ** for release manager: how to produce CHANGELOG.md. Link to further 
> details.  Ultimately this will probably move to the release wizard in some 
> fashion.
> TBD: CHANGES.txt < 10 and CHANGELOG.md > 10 ?
> TBD: changes.html generation in the release process will be removed or will 
> change.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to