Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

move changelog to something easier for platform releases #3068

Closed

Description

@incanus

Having a running changelog in the main CHANGELOG.md requires extra work, merging, and cherry-picking around releases since a) you don't want Android in iOS notes and vice-versa on pages like this and b) you don't want master specific notes there either cluttering up final releases. But we need a way to track them as commits/PRs move along so we don't miss anything.

After some chat, @1ec5 @friedbunny and I thought it best to put this in the wiki because it's versioned and has less potential for data loss. Doing this in either release milestones or release objects in GitHub runs the risk of loss/overwrite.

@mapbox/mobile @mapbox/gl

Activity

  1. jfirebaugh commented on Nov 18, 2015

    @jfirebaugh
    Contributor

    I'm 👎 on keeping the CHANGELOG in any out of band medium like the wiki, release milestones, whatever.

    If the difficulty is around platform releases, let's reconsider some of our existing workflow:

    • Maybe we should have per-platform CHANGELOG.md's rather than an omnibus
    • Maybe we should not update CHANGELOG.md on individual commits and instead compile it at release time.
  2. tmcw commented on Nov 18, 2015

    @tmcw
    Contributor

    On the "compile it at release time" point, we've been using commitizen over in Studio-land and it's worked well for sorting commits into changelog & non-changelog buckets.

  3. incanus commented on Nov 18, 2015

    @incanus
    ContributorAuthor

    We used to have per-platform changelogs! This was exactly my concern.

    • Maybe we should not update CHANGELOG.md on individual commits and instead compile it at release time.

    We used to do this on mobile, but it got unwieldy even in the raster days. Could check out commitzen, but isn't that also out of band?

    The wiki could be linked into the master, published one for releases too, at the top ("see here for changes coming in the next version...") while still being versioned in that wiki.

  4. incanus commented on Nov 18, 2015

    @incanus
    ContributorAuthor

    If we do go back to platform changelogs, we should still separate out stable from development. So something like this could work:

    • CHANGELOG_IOS.md
    • CHANGELOG_ANDROID.md
    • CHANGELOG_NODE.md
    • CHANGELOG.md (for master)

    Do we need a core (C++ API-specific) changelog as well?

  5. changed the title [-]move changelog to wiki[/-] [+]move changelog something easier for platform releases[/+] on Nov 18, 2015
  6. changed the title [-]move changelog something easier for platform releases[/-] [+]move changelog to something easier for platform releases[/+] on Nov 18, 2015
  7. jfirebaugh commented on Nov 18, 2015

    @jfirebaugh
    Contributor

    @tmcw Can you link up "commitzen"? Google isn't giving me anything useful.

    If we do platform-specific changelogs, let's do: platform/{ios,android,node}/CHANGELOG.md, not suffixes.

  8. 1ec5 commented on Nov 18, 2015

    @1ec5
    Contributor

    I'm 👎 on keeping the CHANGELOG in any out of band medium like the wiki, release milestones, whatever.

    What are the downsides? Is it that the main repo ceases to be self-contained?

    Maybe we should not update CHANGELOG.md on individual commits and instead compile it at release time.

    The pain point was the very high likelihood of missing an important change, as well as the difficulty of determining what exactly made it into a particular release. This is where it becomes important to ensure that each merged PR actually says “merged” rather than “closed”.

    As a compromise, how about maintaining (platform-specific) changelogs in the repo but drafting prerelease changelogs on the (versioned) wiki.

  9. tmcw commented on Nov 18, 2015

    @tmcw
    Contributor
  10. mikemorris commented on Nov 19, 2015

    @mikemorris
    Contributor

    👎 on wiki as an out-of-band tool version controlled separately from the main repo. Harder to keep in sync across, for example, multiple platform branches that each add new features. I'd much rather resolve the conflict in git than tracking/reverting pending commits in a wiki, or trying to remember to update it afterwards.

    Commitizen sounds like a possible option for keeping an "authoritative" changelog in commit messages (which I personally need to get better at writing anyway), then using a tool to compile into a changelog at release time.

  11. 1ec5 commented on Nov 19, 2015

    @1ec5
    Contributor

    For the sake of explicitness, so far the iOS SDK release notes have been hand-compiled because we:

    1. Don’t want routine/minor changes to clutter up the notes and bury more important changes
    2. Place backwards-incompatible changes up top
    3. Emphasize developer/user impact rather than justifying code changes

    We also currently list PR numbers in each release note, which effectively forces you to force-push to the feature branch even when ff-merging doesn’t require it. (Or you can guess what the next PR number will be. Still awkward.)

    Let’s use something like Commitzen to produce an unabridged, cross-platform changelog, then hand-curate it into per-platform release notes documents just before release. With the Commitzen-based changelog, it should be obvious what made it into the release. And there’s no need to remember to update three or so different files as part of a PR.

  12. incanus commented on Nov 19, 2015

    @incanus
    ContributorAuthor

    I'm liking that @1ec5.

  13. 1ec5 commented on Jan 28, 2016

    @1ec5
    Contributor

    As an interim step, I’ve started copying the relevant section of CHANGELOG.md into GitHub releases when I publish (pre)releases of the iOS SDK. These release pages are linked from /ios-sdk, whereas CHANGELOG.md is poorly suited to that purpose. By definition, tagging a (pre)release means that the contents won’t change, so there’s no risk that this information will get out of sync or that we’ll lose track of it. It’s also the only good place to put notes about what’s changed since the previous prerelease – stuff that doesn’t belong in the final release notes, nor in the master changelog.

    Another interim change we should make is to split the platform-specific Android and iOS release notes into separate files: #3735. I’m not sure why they were ever combined in the first place. The master CHANGELOG.md should be reserved for a more comprehensive log of changes to the repository as a whole, possibly aided by commitzen, rather than curated release notes.

  14. jfirebaugh commented on Mar 24, 2016

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions