Skip to content

Release note format causes merge conflicts without fail #8603

Closed

Description

@eric-wieser

Is there some other header/whitespace format we can switch to that might alleviate this, or a .gitattributes file of some kind?

Activity

  1. eric-wieser commented on Feb 10, 2017

    @eric-wieser
    MemberAuthor

    Looks like

    /doc/release/*.rst merge=union
    

    In .gitattributes would do the trick, although there's a risk here that it does a bad job of merging

  2. mhvk commented on Feb 10, 2017

    @mhvk
    Contributor

    That is what we ended up doing in astropy as well; 👍

    (It does mean the release manager has to check for possible missing blank lines, but that seems to be about the extent of the mistakes that get made).

  3. seberg commented on Feb 10, 2017

    @seberg
    Member

    Sounds like something to decide for those who do release work. But seems like a good idea, for all I see we have to read through the release notes anyway once, so that it should be fine.

  4. added a commit that references this issue on Feb 12, 2017
    b20508c
  5. eric-wieser commented on Sep 11, 2017

    @eric-wieser
    MemberAuthor

    Ok, this is now a pain. Say you make a series of commits where the first adds

    +Add some new feature to x
    +-------------------------
    +This does a and b

    and the second adds

    -Add some new feature to x
    ----------------------------
    -This does a and b
    +Add some new feature to x and y
    +------------------------------
    +This does a and b and c

    Then the release notes get changed in master, and somehow there's a conflict anyway.

    So you rebase, and end up with the junk that is

    +Add some new feature to x
    +---------------------------
    +This does a and b
    +Add some new feature to x and y
    +------------------------------
    +This does a and b and c

    because it's taking the union of the additions. Fixing this bad rebase is a lot of work

    I think maybe we should revert this patch, and just fix conflicts as they come up in the web editor, creating merge commits

  6. njsmith commented on Sep 11, 2017

    @njsmith
    Member

    We might consider switching to: https://github.com/hawkowl/towncrier

    The basic idea is that we have a directory (conventionally called newsfragments), and PRs with user-visible effects should create a file called newsfragments/${ISSUE}.${TYPE}.rst, like newfragments/123.bugfix.rst. And then at release time you use the tool to collect up the files, collate them, and dump them into your actual docs.

  7. eric-wieser commented on Sep 11, 2017

    @eric-wieser
    MemberAuthor

    Including the pr number is tricky for new users, because you don't know it till you submit.

    But yes, I think that would be sensible. It's frustrating to see old PRs needing a rebase simply because they target the wrong release notes / clash with other release notes.

    Is towncrier what matplotlib uses? They seem to have something similar going on

  8. rgommers commented on Sep 11, 2017

    @rgommers
    Member

    Towncrier was also suggested and discussed on the scipy issue tracker recently:
    scipy/scipy#7793

    I'm -0.5 on that, and propose simply to use one Github issue per release. At merge time fragments can be added there. Simple, not much work for release manager, less cognitive load for new contributors, and doesn't make a mess of many little files.

  9. pv commented on Sep 11, 2017

    @pv
    Member
  10. seberg commented on Sep 22, 2019

    @seberg
    Member

    And another issue about the annoyance of release notes creating merge conflicts. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions