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

ci: Add rococo to release pipeline #5015

Merged
merged 2 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: Polkadot {{ env.VERSION }} Release checklist

This is the release checklist for Polkadot {{ env.VERSION }}. **All** following
checks should be completed before publishing a new release of the
Polkadot/Kusama/Westend runtime or client. The current release candidate can be
Polkadot/Kusama/Westend/Rococo runtime or client. The current release candidate can be
checked out with `git checkout release-{{ env.VERSION }}`

### Runtime Releases
Expand All @@ -17,7 +17,7 @@ candidate branch.

- [ ] Verify [`spec_version`](https://github.com/paritytech/polkadot/blob/master/doc/release-checklist.md#spec-version) has been incremented since the
last release for any native runtimes from any existing use on public
(non-private/test) networks. If the runtime was published (release or pre-release), either
(non-private) networks. If the runtime was published (release or pre-release), either
the `spec_version` or `impl` must be bumped.
- [ ] Verify previously [completed migrations](https://github.com/paritytech/polkadot/blob/master/doc/release-checklist.md#old-migrations-removed) are
removed for any public (non-private/test) networks.
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
runtime: ["polkadot", "kusama", "westend"]
runtime: ["polkadot", "kusama", "westend", "rococo"]
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down Expand Up @@ -103,13 +103,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NO_CACHE: 1
DEBUG: 1
ROCOCO_DIGEST: ${{ github.workspace}}/rococo-srtool-json/rococo_srtool_output.json
WESTEND_DIGEST: ${{ github.workspace}}/westend-srtool-json/westend_srtool_output.json
KUSAMA_DIGEST: ${{ github.workspace}}/kusama-srtool-json/kusama_srtool_output.json
POLKADOT_DIGEST: ${{ github.workspace}}/polkadot-srtool-json/polkadot_srtool_output.json
PRE_RELEASE: ${{ github.event.inputs.pre_release }}
HIDE_SRTOOL_ROCOCO: false
run: |
find ${{env.GITHUB_WORKSPACE}} -type f -name "*_srtool_output.json"
ls -al $ROCOCO_DIGEST
ls -al $WESTEND_DIGEST
ls -al $KUSAMA_DIGEST
ls -al $POLKADOT_DIGEST
Expand Down Expand Up @@ -146,7 +148,7 @@ jobs:
RUNTIME_DIR: runtime
strategy:
matrix:
runtime: ["polkadot", "kusama", "westend"]
runtime: ["polkadot", "kusama", "westend", "rococo"]
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions scripts/changelog/bin/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ end

KUSAMA_DIGEST = ENV['KUSAMA_DIGEST'] || 'digests/kusama_srtool_output.json'
WESTEND_DIGEST = ENV['WESTEND_DIGEST'] || 'digests/westend_srtool_output.json'
ROCOCO_DIGEST = ENV['ROCOCO_DIGEST'] || 'digests/rococo_srtool_output.json'
POLKADOT_DIGEST = ENV['POLKADOT_DIGEST'] || 'digests/polkadot_srtool_output.json'

# Here we compose all the pieces together into one
Expand All @@ -74,17 +75,20 @@ cmd = format('jq \
--slurpfile polkadot %s \
--slurpfile srtool_kusama %s \
--slurpfile srtool_westend %s \
--slurpfile srtool_rococo %s \
--slurpfile srtool_polkadot %s \
-n \'{
substrate: $substrate[0],
polkadot: $polkadot[0],
srtool: [
{ name: "kusama", data: $srtool_kusama[0] },
{ name: "westend", data: $srtool_westend[0] },
{ name: "rococo", data: $srtool_rococo[0] },
{ name: "polkadot", data: $srtool_polkadot[0] }
] }\' > context.json', substrate_data, polkadot_data,
KUSAMA_DIGEST,
WESTEND_DIGEST,
ROCOCO_DIGEST,
POLKADOT_DIGEST)
system(cmd)

Expand Down
1 change: 1 addition & 0 deletions scripts/github/generate_release_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def get_substrate_commit(client, ref)
polkadot_runtime = get_runtime('polkadot', polkadot_path)
kusama_runtime = get_runtime('kusama', polkadot_path)
westend_runtime = get_runtime('westend', polkadot_path)
rococo_runtime = get_runtime('rococo', polkadot_path)

# These json files should have been downloaded as part of the build-runtimes
# github action
Expand Down