Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(*): fix changelog global command #146

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

vdice
Copy link
Member

@vdice vdice commented Oct 31, 2016

To compensate for individual components now following their own release cadences.

Notes:

  • this goes back to the changelog format used in v2.0.0-v2.3.0 Workflow releases such as v2.2.0 (with the addition of alphabetical ordering!) as opposed to the more recent/manually assembled format as seen in the latest v2.8.0 release

  • since the deisrel changelog global command now takes the previous Workflow release's generate_params.toml (for discerning each component's version migration) and as that file does not contain info on the workflow, workflow-cli and workflow-e2e repos, we are unable to add changelog entries with the code as it is now. (Would welcome ideas on how to address this, perhaps in a follow-up issue.) Warnings will be printed like:

2016/10/31 12:23:10 Error: tag unknown not found for repo workflow; Changelog entries will need to be added in manually
2016/10/31 12:23:10 Error: tag unknown not found for repo workflow-e2e; Changelog entries will need to be added in manually
2016/10/31 12:23:10 Error: tag unknown not found for repo workflow-cli; Changelog entries will need to be added in manually

If/when this PR starts to become a merge candidate, I'll create the associated PR in deis/workflow.

TODO:

@vdice vdice added this to the v2.9 milestone Oct 31, 2016
@vdice vdice self-assigned this Oct 31, 2016
@deis-bot
Copy link

@Joshua-Anderson, @arschles and @krancour are potential reviewers of this pull request based on my analysis of git blame information. Thanks @vdice!

@vdice vdice force-pushed the fix-changelog-global branch from 569db22 to 70d77fc Compare October 31, 2016 19:38
{{end}}

{{ if (len .Migrations) gt 0 -}}
### Migrations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Migrations the right term for this? Maybe Updated Components or Releases? I just thought it read a bit strangely:

Migrations

  • builder v2.5.4 -> v2.5.5
  • controller v2.8.0 -> v2.8.1
  • postgres v2.2.5 -> v2.2.6
  • registry v2.2.3 -> v2.2.4

Fixes

  • 4745179 (builder) - charts: Use the common storage secret

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mboersma yea, perhaps not the ideal term. Either of the alternatives you mentioned sound good -- and also noticing that the header size should probably be bumped down to that of Fixes below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to Releases

@vdice vdice force-pushed the fix-changelog-global branch from 70d77fc to 5ed429a Compare November 1, 2016 16:17
@mboersma mboersma added the LGTM1 label Nov 1, 2016
log.Fatal(err.Error())
return cli.NewExitError(err.Error(), 2)
}
err = toml.Unmarshal(out, &res)
Copy link
Member

@bacongobbler bacongobbler Nov 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be one-line'd:

if err := toml.Unmarshal(out, &res); err != nil {
    return cli.NewExitError(err.Error(), 3)
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much appreciated! Changed here and in other spots mentioned.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

if err != nil {
return cli.NewExitError(err.Error(), 2)
}
err = json.Unmarshal(out, &mapping)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, this can be one-line'd

return
}
vals := &changelog.Values{RepoName: repo, OldRelease: componentVersion.ChartVersion, NewRelease: componentVersion.ComponentVersion}
_, err = changelog.SingleRepoVals(client, vals, componentVersion.ComponentVersion, repo, true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be one-line'd as well!

@bacongobbler
Copy link
Member

comments are non-blocking, feel free to ignore

To compensate for individual components now following their own release cadences
@vdice vdice force-pushed the fix-changelog-global branch from 5ed429a to b17f979 Compare November 1, 2016 17:16
vdice pushed a commit to vdice/workflow that referenced this pull request Nov 1, 2016
vdice pushed a commit to vdice/workflow that referenced this pull request Nov 1, 2016
@vdice vdice merged commit d0d2b8f into deis:master Nov 1, 2016
@vdice vdice deleted the fix-changelog-global branch November 1, 2016 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants