Skip to content

Commit

Permalink
Changelogs local generation (#1411)
Browse files Browse the repository at this point in the history
This PR introduces a script and some templates to use the prdoc involved
in a release and build:
- the changelog
- a simple draft of audience documentation

Since the prdoc presence was enforced in the middle of the version
1.5.0, not all PRs did come with a `prdoc` file.
This PR creates all the missing `prdoc` files with some minimum content
allowing to properly generate the changelog.
The generated content is **not** suitable for the audience
documentation.

The audience documentation will be possible with the next version, when
all PR come with a proper `prdoc`.

## Assumptions

- the prdoc files for release `vX.Y.Z` have been moved under
`prdoc/X.Y.Z`
- the changelog requires for now for the prdoc files to contain author +
topic. Thos fields are optional.

The build script can  be called as:
```
VERSION=X.Y.Z ./scripts/release/build-changelogs.sh
```

Related:
-  #1408

---------

Co-authored-by: EgorPopelyaev <[email protected]>
  • Loading branch information
chevdor and EgorPopelyaev authored Dec 12, 2023
1 parent 6b5995f commit 42a3afb
Show file tree
Hide file tree
Showing 98 changed files with 643 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("statemine"),
impl_name: create_runtime_str!("statemine"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 13,
Expand All @@ -125,7 +125,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("statemine"),
impl_name: create_runtime_str!("statemine"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 13,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("westmint"),
impl_name: create_runtime_str!("westmint"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 13,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("bridge-hub-rococo"),
impl_name: create_runtime_str!("bridge-hub-rococo"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("bridge-hub-westend"),
impl_name: create_runtime_str!("bridge-hub-westend"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("collectives-westend"),
impl_name: create_runtime_str!("collectives-westend"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 5,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("contracts-rococo"),
impl_name: create_runtime_str!("contracts-rococo"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 6,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("glutton-westend"),
impl_name: create_runtime_str!("glutton-westend"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("test-parachain"),
impl_name: create_runtime_str!("test-parachain"),
authoring_version: 1,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 6,
Expand Down
2 changes: 1 addition & 1 deletion cumulus/polkadot-parachain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polkadot-parachain-bin"
version = "1.1.0"
version = "1.5.0"
authors.workspace = true
build = "build.rs"
edition.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion polkadot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version = "1.64.0"
readme = "README.md"
authors.workspace = true
edition.workspace = true
version = "1.1.0"
version = "1.5.0"
default-run = "polkadot"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion polkadot/node/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub use disputes::{
/// relatively rare.
///
/// The associated worker binaries should use the same version as the node that spawns them.
pub const NODE_VERSION: &'static str = "1.1.0";
pub const NODE_VERSION: &'static str = "1.5.0";

// For a 16-ary Merkle Prefix Trie, we can expect at most 16 32-byte hashes per node
// plus some overhead:
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("rococo"),
impl_name: create_runtime_str!("parity-rococo-v2.0"),
authoring_version: 0,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 22,
Expand Down
2 changes: 1 addition & 1 deletion polkadot/runtime/westend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("westend"),
impl_name: create_runtime_str!("parity-westend"),
authoring_version: 2,
spec_version: 1_004_000,
spec_version: 1_005_000,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 22,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions prdoc/1.3.0/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Version 1.3.0 does not support `prddoc` yet.
Some prdoc files are provided but the list is NOT complete.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions prdoc/1.4.0/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Version 1.4.0 does not support `prddoc` yet.
Some prdoc files are provided but the list is NOT complete.
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_1370_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Rework the event system of `sc-network`
author: altonen
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This PR does not need a prdoc but it is provided in order to test
title: PRdoc check

author: chevdor
topic: documentation

doc:
- audience: Node Dev
description: |
Expand Down
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_1497_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Update tick collator for async backing
author: Sophia-Gold
topic: Tests

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_1918_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Preserve artifact cache unless stale
author: eagr
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

title: New PRDoc Schema

author: chevdor
topic: documentation

doc:
- audience: Node Dev
description: &desc |
Expand Down
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_1985_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Enable parallel key scraping
author: eagr
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2001_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "cumulus-consensus-common: block import: `delayed_best_block` flag added"
author: michalkucharczyk
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2058_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "PVF: Add test instructions"
author: mrcnski
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
3 changes: 3 additions & 0 deletions prdoc/pr_2142.prdoc → prdoc/1.5.0/pr_2142.prdoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
title: Cleanup XCMP `QueueConfigData`

author: serban300
topic: runtime

doc:
- audience: Runtime Dev
description: Removes obsolete fields from the `QueueConfigData` structure. For the remaining fields, if they use the old defaults, we replace them with the new defaults.
Expand Down
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2167_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "add pallet nomination-pools versioned migration to kitchensink"
author: brunopgalvao
topic: Tests

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2174_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "chain-spec-builder: cleanup"
author: michalkucharczyk
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2182_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "remove retry from backers on failed candidate validation"
author: Jpserrat
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2184_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Zombienet tests - disputes on finalized blocks
author: Overkillus
topic: Tests

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2221_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "PVF worker: switch on seccomp networking restrictions"
author: mrcnski
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2250_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "crypto: `lazy_static` removed, light parser for address URI added"
author: michalkucharczyk
topic: Node

doc:
- audience: Runtime Dev
description: n/a

crates: []
3 changes: 3 additions & 0 deletions prdoc/pr_2253.prdoc → prdoc/1.5.0/pr_2253.prdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

title: Different builder pattern constructors for XCM

author: franciscoaguirre
topic: runtime

doc:
- audience: Runtime Dev
description: |
Expand Down
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2265_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: Remove im-online pallet from Rococo and Westend
author: s0me0ne-unkn0wn
topic: Pallets

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2300_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: '[testnet] Remove Wococo stuff from BridgeHubRococo/AssetHubRococo'
author: bkontur 
topic: Bridges

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2351_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "frame-system: Add last_runtime_upgrade_spec_version"
author: bkchr
topic: Frame

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2354_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "Fix Typo: `PalletXcmExtrinsicsBenchmark`"
author: joepetrowski
topic: Benchmarks

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2361_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "[ci] Enable zombienet jobs in PRs"
author: alvicsam
topic: Tests

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2368_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "implementers-guide: update github link"
author: ordian
topic: Documentation

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2369_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "[NPoS] Check if staker is exposed in paged exposure storage entries"
author: Ank4n
topic: Pallets

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2377_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "fix typo"
author: cuteolaf
topic: Documentation

doc:
- audience: Runtime Dev
description: n/a

crates: []
9 changes: 9 additions & 0 deletions prdoc/1.5.0/pr_2378_special.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: "Beefy: small fixes"
author: serban300
topic: Bridges

doc:
- audience: Runtime Dev
description: n/a

crates: []
Loading

0 comments on commit 42a3afb

Please sign in to comment.