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

Add changelog generation#761

Merged
chevdor merged 46 commits intomasterfrom
wk-changelog
Nov 19, 2021
Merged

Add changelog generation#761
chevdor merged 46 commits intomasterfrom
wk-changelog

Conversation

@chevdor
Copy link
Contributor

@chevdor chevdor commented Nov 15, 2021

This PR introduces a new workflow_dispatch workflow that can be used to:

  • build the runtimes
  • build the release notes (including changes from polkadot and substrate)
  • create the draft release based off those release notes
  • attach the runtimes to the draft release
  • annouce the draft in an Element channel

@chevdor chevdor force-pushed the wk-changelog branch 2 times, most recently from 1f63e11 to 41eb6c8 Compare November 15, 2021 13:17
@chevdor chevdor requested review from apopiak and s3krit November 19, 2021 15:29
@chevdor chevdor added A0-pleasereview A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes labels Nov 19, 2021
@chevdor chevdor marked this pull request as ready for review November 19, 2021 15:38
runs-on: ubuntu-latest
strategy:
matrix:
runtime: ["shell", "statemine", "statemint", "westmint", "rococo"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see the need for building the shell and rococo chains by default. We're not going to be releasing them again any time soon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those are built in parallel so there is no time penalty.
They will NOT but showing up in the release notes thanks to those lines.

Moreover, I cannot simply remove those from here as those rutime data are expected here.

We can improve later I think.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is also a benefit, they will be built and attached which makes it easy for us when we need them.

Comment on lines +19 to +21
{%- set audit = "✅ trivial " -%}
{%- elif c.meta.D and c.meta.D.value == 3 -%}
{%- set audit = "✅ trivial " -%}
Copy link
Contributor

Choose a reason for hiding this comment

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

should these be the same

Copy link
Contributor Author

@chevdor chevdor Nov 19, 2021

Choose a reason for hiding this comment

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

The audit section is actually commented out with {# ... #} (see here) so the audit part is not active yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

Comment on lines +20 to +23
{% if host_fn_count == 0 -%}
ℹ️ This release does not contain any new host functions.
{% elif host_fn_count == 1 -%}
⚠️ The runtimes in this release contain one new **host function**.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would skip the whole section if none were detected

Copy link
Contributor Author

@chevdor chevdor Nov 19, 2021

Choose a reason for hiding this comment

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

Sure, I will leave us a comment so we know it was just not skipped for no reason but I can hide this to the user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm this is actually what I initially went for initially but I currently do not know the count ahead of time.
So I run thru the list, keep counting and display the list, thne comes this message.
So if I display nothing that will look like a weird section with no content.

I agree with your goal but the tooling currently does not allow it.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, it's trivial to delete manually, I'd say

chevdor and others added 2 commits November 19, 2021 16:58
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
@chevdor chevdor merged commit ce24038 into master Nov 19, 2021
@chevdor chevdor deleted the wk-changelog branch November 19, 2021 16:30
ordian added a commit that referenced this pull request Nov 19, 2021
* master:
  Add changelog generation (#761)
  Moving `pallet-asset-tx-payment` from cumulus to substrate (#712)
chevdor added a commit to chevdor/cumulus that referenced this pull request Nov 22, 2021
* WIP Release notes generation and templates

* WIP Add new sections to the template

* WIP renaming and wip

* Fix runtime template

* Add doc, NO_CACHE and tweaking of the templates

* Renaming cl into cumulus to make room for the polkadot and substrate

* Fetch data from Substrate and Polkadot

* WIP convert bash script to ruby

* Convert to Ruby

* Fix host function delection

* Extract priority to a macro

* Fix misc changes

* Draft release workflow

* Fix runtime dir

* Add ENV to ignore runtimes

* Install tooling separately

* WIP troubleshooting - remove sudo

* Minor formatting fixes

* Fix workflow

* Add missing dep

* Linting

* Fix changelog script

* Add missing tera install

* Use absolute paths

* Fix path + cleanup

* Fix changelog generation

* Add missing pre-release ENV

* Fix rust version ENV

* Fix release notes path

* Fix output

* Fix runtime_dir for cumulus

* Fix ENV substitutions

* Fix styling

* Debugging

* Styling

* Fix call to fetch the runtime version

* Cleanup and doc

* Delete sample .env

* Update scripts/changelog/templates/change.md.tera

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Change XCM emoji marker for a ✉️

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
chevdor added a commit that referenced this pull request Nov 22, 2021
* WIP Release notes generation and templates

* WIP Add new sections to the template

* WIP renaming and wip

* Fix runtime template

* Add doc, NO_CACHE and tweaking of the templates

* Renaming cl into cumulus to make room for the polkadot and substrate

* Fetch data from Substrate and Polkadot

* WIP convert bash script to ruby

* Convert to Ruby

* Fix host function delection

* Extract priority to a macro

* Fix misc changes

* Draft release workflow

* Fix runtime dir

* Add ENV to ignore runtimes

* Install tooling separately

* WIP troubleshooting - remove sudo

* Minor formatting fixes

* Fix workflow

* Add missing dep

* Linting

* Fix changelog script

* Add missing tera install

* Use absolute paths

* Fix path + cleanup

* Fix changelog generation

* Add missing pre-release ENV

* Fix rust version ENV

* Fix release notes path

* Fix output

* Fix runtime_dir for cumulus

* Fix ENV substitutions

* Fix styling

* Debugging

* Styling

* Fix call to fetch the runtime version

* Cleanup and doc

* Delete sample .env

* Update scripts/changelog/templates/change.md.tera

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Change XCM emoji marker for a ✉️

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
chevdor added a commit that referenced this pull request Nov 22, 2021
* WIP Release notes generation and templates

* WIP Add new sections to the template

* WIP renaming and wip

* Fix runtime template

* Add doc, NO_CACHE and tweaking of the templates

* Renaming cl into cumulus to make room for the polkadot and substrate

* Fetch data from Substrate and Polkadot

* WIP convert bash script to ruby

* Convert to Ruby

* Fix host function delection

* Extract priority to a macro

* Fix misc changes

* Draft release workflow

* Fix runtime dir

* Add ENV to ignore runtimes

* Install tooling separately

* WIP troubleshooting - remove sudo

* Minor formatting fixes

* Fix workflow

* Add missing dep

* Linting

* Fix changelog script

* Add missing tera install

* Use absolute paths

* Fix path + cleanup

* Fix changelog generation

* Add missing pre-release ENV

* Fix rust version ENV

* Fix release notes path

* Fix output

* Fix runtime_dir for cumulus

* Fix ENV substitutions

* Fix styling

* Debugging

* Styling

* Fix call to fetch the runtime version

* Cleanup and doc

* Delete sample .env

* Update scripts/changelog/templates/change.md.tera

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

* Change XCM emoji marker for a ✉️

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments