Skip to content

Commit e28d0a1

Browse files
dnjscksdn98paritytech-cmd-bot-polkadot-sdk[bot]bkchrggwpezbgallois
authored
feat: add a getter function to retrieve raw keystore value (#2)
* [stable2407] Backport paritytech#5713 (paritytech#5739) Backport paritytech#5713 into `stable2407` from bkchr. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> * [stable2407] Backport paritytech#3049 (paritytech#5734) Backport paritytech#3049 into `stable2407` from bgallois. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Benjamin Gallois <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> * Move prdocs to release folder * Bump polkadot node version * Update plan * [stable2407] Backport Fix parity-publish (paritytech#5670) (paritytech#6019) Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> * [stable2407] Backport docker fix to 2407 (paritytech#6017) This PR backports fixes for the docker publishing flow from master: - paritytech#5896 - paritytech#5387 * [stable2407] Backport paritytech#5913 (paritytech#6004) Backport paritytech#5913 into `stable2407` from franciscoaguirre. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Francisco Aguirre <[email protected]> Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#4803 (paritytech#6097) Backport paritytech#4803 into `stable2407` from gotnoshoeson. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Miles Patterson <[email protected]> * [stable2407] Backport paritytech#5599 (paritytech#6068) Backport paritytech#5599 into `stable2407` from franciscoaguirre. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Francisco Aguirre <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Shawn Tabrizi <[email protected]> * [stable2407] Backport paritytech#6205 (paritytech#6238) Backport paritytech#6205 into `stable2407` from bkchr. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: command-bot <> * [stable2407] Backport paritytech#6148 (paritytech#6232) Backport paritytech#6148 into `stable2407` from bkontur. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Branislav Kontur <[email protected]> * Bump node version * Move prdocs * Update plan * Apply plan * [stable2407] Backport paritytech#6417 (paritytech#6437) Backport paritytech#6417 into `stable2407` from alindima. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Alin Dima <[email protected]> * [Release|CI/CD] Fix audiences changelog template (paritytech#6444) This PR addresses an issue mentioned [here](paritytech#6424 (comment)). The problem was that when the prdoc file has two audiences, but only one description like in [prdoc_5660](https://github.com/paritytech/polkadot-sdk/blob/master/prdoc/1.16.0/pr_5660.prdoc) it was ignored by the template. * [stable2407] Backport paritytech#6526 (paritytech#6530) Backport paritytech#6526 into `stable2407` from bkchr. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <[email protected]> * [stable2407] Backport paritytech#6645 (paritytech#6655) Backport paritytech#6645 into `stable2407` from bkontur. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Branislav Kontur <[email protected]> * [stable2407] Backport paritytech#6579 (paritytech#6634) Backport paritytech#6579 into `stable2407` from bkontur. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Branislav Kontur <[email protected]> Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#6603 (paritytech#6668) Backport paritytech#6603 into `stable2407` from lexnv. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Alexandru Vasile <[email protected]> * Backport paritytech#5887 to `stable2407` (paritytech#6674) This PR accompanies paritytech#6672 to make backported changes consistent across releases. --------- Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#6031 (paritytech#6106) Backport paritytech#6031 into `stable2407` from drewstone. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: drewstone <[email protected]> Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#6080 (paritytech#6180) Backport paritytech#6080 into `stable2407` from franciscoaguirre. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Francisco Aguirre <[email protected]> Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#6540 (paritytech#6591) Backport paritytech#6540 into `stable2407` from Ank4n. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Ankan <[email protected]> Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#6506 (paritytech#6657) Backport paritytech#6506 into `stable2407` from Dinonard. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Dino Pačandi <[email protected]> Co-authored-by: Egor_P <[email protected]> * [stable2407] Backport paritytech#6459 (paritytech#6663) Backport paritytech#6459 into `stable2407` from franciscoaguirre. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Francisco Aguirre <[email protected]> Co-authored-by: Egor_P <[email protected]> * Bump polkadot node version * Move prdoxs to release folder * Apply plan * Update Cargo.lock * [stable2407] Backport paritytech#6690 (paritytech#6798) Backport paritytech#6690 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Alexandru Gheorghe <[email protected]> * [stable2407] Backport paritytech#6729 (paritytech#6828) Backport paritytech#6729 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> * [stable2407] Backport paritytech#6662 (paritytech#6801) Backport paritytech#6662 into `stable2407` from eskimor. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: eskimor <[email protected]> Co-authored-by: Andrei Sandu <[email protected]> * [stable2407] Backport paritytech#5311 (paritytech#6804) Backport paritytech#5311 into `stable2407` from Doordashcon. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Doordashcon <[email protected]> * [stable2407] Backport paritytech#6696 (paritytech#6839) Backport paritytech#6696 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> * [stable2407] Backport paritytech#6864 (paritytech#6877) Backport paritytech#6864 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Alexandru Gheorghe <[email protected]> * [stable2407] Backport paritytech#7050 (paritytech#7058) Backport paritytech#7050 into `stable2407` from skunert. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Sebastian Kunert <[email protected]> * [stable2407] Backport paritytech#7013 (paritytech#7015) Backport paritytech#7013 into `stable2407` from bkchr. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: EgorPopelyaev <[email protected]> * Switch to parity-large runners to be able to run on the github (paritytech#7113) * Move prdocs to release folder * Bump node_version * [stable2407] Backport paritytech#7116 (paritytech#7135) Backport paritytech#7116 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Alexandru Gheorghe <[email protected]> * Move prdoc to release folder * [stable2407] Backport paritytech#6807 (paritytech#7155) Backport paritytech#6807 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> * [stable2407] Backport paritytech#6973 (paritytech#7159) Backport paritytech#6973 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> * [stable2407] Backport paritytech#6971 (paritytech#7172) Backport paritytech#6971 into `stable2407` from alexggh. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> * Move prdocs to release folder * Apply plan * [stable2407] Backport paritytech#7365 (paritytech#7380) Backport paritytech#7365 into `stable2407` from vgantchev. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> Co-authored-by: Valery Gantchev <[email protected]> * [stable2407] Backport paritytech#7437 (paritytech#7465) Backport paritytech#7437 into `stable2407` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Serban Iorga <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> * [stable2407] Backport paritytech#7446 (paritytech#7460) Backport paritytech#7446 into `stable2407` from serban300. See the [documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md) on how to use this bot. <!-- # To be used by other automation, do not modify: original-pr-number: #${pull_number} --> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Serban Iorga <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> * Update plan * Apply changes * Move prdocs to release folder * Bump node version * Backport 1.12.0: check-weight: Disable total pov size check for mandatory extrinsics (paritytech#4592) Backport of paritytech#4571 --------- Co-authored-by: command-bot <> * Implement `CheckMetadataHash` extension (paritytech#4274) (paritytech#4619) This implements the `CheckMetadataHash` extension as described in [RFC78](https://polkadot-fellows.github.io/RFCs/approved/0078-merkleized-metadata.html). Besides the signed extension, the `substrate-wasm-builder` is extended to support generating the metadata-hash. Closes: paritytech#291 --------- Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: joe petrowski <[email protected]> Co-authored-by: Liam Aharon <[email protected]> Co-authored-by: Kian Paimani <[email protected]> * init bifrost-polkadot-base * fix: add legacy transferrable balance to currency trait (#1) * wasm-builder(cherry-pick): Also set mcpu for c deps (paritytech#3777) * update Cargo.lock * feat: add a getter function to retrieve keystore raw value --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Alexandru Gheorghe <[email protected]> Co-authored-by: paritytech-cmd-bot-polkadot-sdk[bot] <179002856+paritytech-cmd-bot-polkadot-sdk[bot]@users.noreply.github.com> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Benjamin Gallois <[email protected]> Co-authored-by: EgorPopelyaev <[email protected]> Co-authored-by: Morgan Adamiec <[email protected]> Co-authored-by: Francisco Aguirre <[email protected]> Co-authored-by: Miles Patterson <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Branislav Kontur <[email protected]> Co-authored-by: Alin Dima <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Alexandru Vasile <[email protected]> Co-authored-by: s0me0ne-unkn0wn <[email protected]> Co-authored-by: drewstone <[email protected]> Co-authored-by: Ankan <[email protected]> Co-authored-by: Dino Pačandi <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: Alexandru Gheorghe <[email protected]> Co-authored-by: eskimor <[email protected]> Co-authored-by: Andrei Sandu <[email protected]> Co-authored-by: Doordashcon <[email protected]> Co-authored-by: Sebastian Kunert <[email protected]> Co-authored-by: Valery Gantchev <[email protected]> Co-authored-by: Serban Iorga <[email protected]> Co-authored-by: joe petrowski <[email protected]> Co-authored-by: Liam Aharon <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
1 parent d8e2d11 commit e28d0a1

740 files changed

Lines changed: 7637 additions & 1207 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/scripts/common/lib.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ fetch_release_artifacts() {
242242
# - GITHUB_TOKEN
243243
# - REPO in the form paritytech/polkadot
244244
fetch_release_artifacts_from_s3() {
245+
BINARY=$1
245246
echo "Version : $VERSION"
246247
echo "Repo : $REPO"
247248
echo "Binary : $BINARY"
@@ -461,7 +462,7 @@ function get_polkadot_node_version_from_code() {
461462

462463
validate_stable_tag() {
463464
tag="$1"
464-
pattern='^stable[0-9]+(-[0-9]+)?$'
465+
pattern="^stable[0-9]{4}(-[0-9]+)?(-rc[0-9]+)?$"
465466

466467
if [[ $tag =~ $pattern ]]; then
467468
echo $tag

.github/workflows/check-runtime-migration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: cat .github/env >> $GITHUB_OUTPUT
2727
# rococo and westend are disabled for now (no access to parity-chains.parity.io)
2828
check-runtime-migration:
29-
runs-on: arc-runners-polkadot-sdk-beefy
29+
runs-on: parity-large
3030
timeout-minutes: 40
3131
needs: [set-image]
3232
container:

.github/workflows/check-semver.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
7575
- name: install parity-publish
7676
# Set the target dir to cache the build.
77-
run: CARGO_TARGET_DIR=./target/ cargo install [email protected] -q
77+
run: CARGO_TARGET_DIR=./target/ cargo install [email protected] --locked -q
7878

7979
- name: check semver
8080
run: |

.github/workflows/command-update-ui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: cat .github/env >> $GITHUB_OUTPUT
2323
cmd-update-ui:
2424
needs: [set-image]
25-
runs-on: arc-runners-polkadot-sdk-beefy
25+
runs-on: parity-large
2626
timeout-minutes: 90
2727
container:
2828
image: ${{ needs.set-image.outputs.IMAGE }}

.github/workflows/publish-check-crates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache-on-failure: true
2121

2222
- name: install parity-publish
23-
run: cargo install [email protected]
23+
run: cargo install [email protected] --locked -q
2424

2525
- name: parity-publish check
2626
run: parity-publish --color always check --allow-unpublished

.github/workflows/publish-claim-crates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cache-on-failure: true
1919

2020
- name: install parity-publish
21-
run: cargo install [email protected]
21+
run: cargo install [email protected] --locked -q
2222

2323
- name: parity-publish claim
2424
env:

.github/workflows/release-30_publish_release_draft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Prepare tooling
7171
run: |
72-
URL=https://github.com/chevdor/tera-cli/releases/download/v0.2.4/tera-cli_linux_amd64.deb
72+
URL=https://github.com/chevdor/tera-cli/releases/download/v0.4.0/tera-cli_linux_amd64.deb
7373
wget $URL -O tera.deb
7474
sudo dpkg -i tera.deb
7575

.github/workflows/release-50_publish-docker.yml

Lines changed: 54 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,39 +75,43 @@ env:
7575
# EVENT_ACTION: ${{ github.event.action }}
7676
EVENT_NAME: ${{ github.event_name }}
7777
IMAGE_TYPE: ${{ inputs.image_type }}
78-
VERSION: ${{ inputs.version }}
7978

8079
jobs:
8180
validate-inputs:
8281
runs-on: ubuntu-latest
8382
outputs:
83+
version: ${{ steps.validate_inputs.outputs.VERSION }}
84+
release_id: ${{ steps.validate_inputs.outputs.RELEASE_ID }}
8485
stable_tag: ${{ steps.validate_inputs.outputs.stable_tag }}
8586

8687
steps:
8788
- name: Checkout sources
88-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
89+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
8990

9091
- name: Validate inputs
9192
id: validate_inputs
9293
run: |
9394
. ./.github/scripts/common/lib.sh
9495
9596
VERSION=$(filter_version_from_input "${{ inputs.version }}")
96-
echo "VERSION=${VERSION}" >> $GITHUB_ENV
97+
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
9798
9899
RELEASE_ID=$(check_release_id "${{ inputs.release_id }}")
99-
echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_ENV
100+
echo "RELEASE_ID=${RELEASE_ID}" >> $GITHUB_OUTPUT
101+
102+
echo "Release ID: $RELEASE_ID"
100103
101104
STABLE_TAG=$(validate_stable_tag ${{ inputs.stable_tag }})
102105
echo "stable_tag=${STABLE_TAG}" >> $GITHUB_OUTPUT
103106
104107
fetch-artifacts: # this job will be triggered for the polkadot-parachain rc and release or polkadot rc image build
105108
if: ${{ inputs.binary == 'polkadot-parachain' || inputs.binary == 'chain-spec-builder' || inputs.image_type == 'rc' }}
106109
runs-on: ubuntu-latest
110+
needs: [validate-inputs]
107111

108112
steps:
109113
- name: Checkout sources
110-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
114+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
111115

112116
#TODO: this step will be needed when automated triggering will work
113117
#this step runs only if the workflow is triggered automatically when new release is published
@@ -129,14 +133,23 @@ jobs:
129133
run: |
130134
. ./.github/scripts/common/lib.sh
131135
132-
fetch_release_artifacts_from_s3
136+
VERSION="${{ needs.validate-inputs.outputs.VERSION }}"
137+
if [[ ${{ inputs.binary }} == 'polkadot' ]]; then
138+
bins=(polkadot polkadot-prepare-worker polkadot-execute-worker)
139+
for bin in "${bins[@]}"; do
140+
fetch_release_artifacts_from_s3 $bin
141+
done
142+
else
143+
fetch_release_artifacts_from_s3 $BINARY
144+
fi
133145
134146
- name: Fetch chain-spec-builder rc artifacts or release artifacts based on release id
135147
#this step runs only if the workflow is triggered manually and only for chain-spec-builder
136148
if: ${{ env.EVENT_NAME == 'workflow_dispatch' && inputs.binary == 'chain-spec-builder' }}
137149
run: |
138150
. ./.github/scripts/common/lib.sh
139151
152+
RELEASE_ID="${{ needs.validate-inputs.outputs.RELEASE_ID }}"
140153
fetch_release_artifacts
141154
142155
- name: Upload artifacts
@@ -153,7 +166,7 @@ jobs:
153166

154167
steps:
155168
- name: Checkout sources
156-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
169+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
157170

158171
- name: Download artifacts
159172
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
@@ -181,32 +194,45 @@ jobs:
181194
run: |
182195
. ./.github/scripts/common/lib.sh
183196
184-
RELEASE_ID=$(check_release_id "${{ inputs.release_id }}")
185-
release=release-$RELEASE_ID && \
186-
echo "release=${release}" >> $GITHUB_OUTPUT
197+
echo "release=${{ needs.validate-inputs.outputs.stable_tag }}" >> $GITHUB_OUTPUT
187198
188199
commit=$(git rev-parse --short HEAD) && \
189200
echo "commit=${commit}" >> $GITHUB_OUTPUT
190201
191-
tag=$(git name-rev --tags --name-only $(git rev-parse HEAD)) && \
192-
[ "${tag}" != "undefined" ] && echo "tag=${tag}" >> $GITHUB_OUTPUT || \
193-
echo "No tag, doing without"
202+
echo "tag=${{ needs.validate-inputs.outputs.version }}" >> $GITHUB_OUTPUT
194203
195204
- name: Fetch release tags
196205
working-directory: release-artifacts
197206
if: ${{ env.IMAGE_TYPE == 'release'}}
198207
id: fetch_release_refs
199208
run: |
200209
chmod a+rx $BINARY
201-
[[ $BINARY != 'chain-spec-builder' ]] && VERSION=$(./$BINARY --version | awk '{ print $2 }' )
202210
203-
release=$( echo $VERSION | cut -f1 -d- )
211+
if [[ $BINARY != 'chain-spec-builder' ]]; then
212+
VERSION=$(./$BINARY --version | awk '{ print $2 }' )
213+
release=$( echo $VERSION | cut -f1 -d- )
214+
else
215+
release=$(echo ${{ needs.validate-inputs.outputs.VERSION }} | sed 's/^v//')
216+
fi
217+
204218
echo "tag=latest" >> $GITHUB_OUTPUT
205219
echo "release=${release}" >> $GITHUB_OUTPUT
206220
echo "stable=${{ needs.validate-inputs.outputs.stable_tag }}" >> $GITHUB_OUTPUT
207221
208-
- name: Build Injected Container image for polkadot rc or chain-spec-builder
209-
if: ${{ env.BINARY == 'polkadot' || env.BINARY == 'chain-spec-builder' }}
222+
- name: Build Injected Container image for polkadot rc
223+
if: ${{ env.BINARY == 'polkadot' }}
224+
env:
225+
ARTIFACTS_FOLDER: release-artifacts
226+
IMAGE_NAME: ${{ env.BINARY }}
227+
OWNER: ${{ env.DOCKER_OWNER }}
228+
TAGS: ${{ join(steps.fetch_rc_refs.outputs.*, ',') || join(steps.fetch_release_refs.outputs.*, ',') }}
229+
run: |
230+
ls -al
231+
echo "Building container for $BINARY"
232+
./docker/scripts/polkadot/build-injected.sh $ARTIFACTS_FOLDER
233+
234+
- name: Build Injected Container image chain-spec-builder
235+
if: ${{ env.BINARY == 'chain-spec-builder' }}
210236
env:
211237
ARTIFACTS_FOLDER: release-artifacts
212238
IMAGE_NAME: ${{ env.BINARY }}
@@ -233,8 +259,16 @@ jobs:
233259
echo "Building container for $BINARY"
234260
./docker/scripts/build-injected.sh
235261
236-
- name: Login to Dockerhub
237-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
262+
- name: Login to Dockerhub to publish polkadot
263+
if: ${{ env.BINARY == 'polkadot' }}
264+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
265+
with:
266+
username: ${{ secrets.POLKADOT_DOCKERHUB_USERNAME }}
267+
password: ${{ secrets.POLKADOT_DOCKERHUB_TOKEN }}
268+
269+
- name: Login to Dockerhub to puiblish polkadot-parachain/chain-spec-builder
270+
if: ${{ env.BINARY == 'polkadot-parachain' || env.BINARY == 'chain-spec-builder' }}
271+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
238272
with:
239273
username: ${{ secrets.CUMULUS_DOCKERHUB_USERNAME }}
240274
password: ${{ secrets.CUMULUS_DOCKERHUB_TOKEN }}
@@ -285,7 +319,7 @@ jobs:
285319
environment: release
286320
steps:
287321
- name: Checkout sources
288-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
322+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
289323

290324
- name: Set up Docker Buildx
291325
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0

.github/workflows/tests-linux-stable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
test-linux-stable-int:
3737
needs: [set-image, changes]
3838
if: ${{ needs.changes.outputs.rust }}
39-
runs-on: arc-runners-polkadot-sdk-beefy
39+
runs-on: parity-large
4040
timeout-minutes: 60
4141
container:
4242
image: ${{ needs.set-image.outputs.IMAGE }}
@@ -57,7 +57,7 @@ jobs:
5757
test-linux-stable-runtime-benchmarks:
5858
needs: [set-image, changes]
5959
if: ${{ needs.changes.outputs.rust }}
60-
runs-on: arc-runners-polkadot-sdk-beefy
60+
runs-on: parity-large
6161
timeout-minutes: 60
6262
container:
6363
image: ${{ needs.set-image.outputs.IMAGE }}

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
quick-benchmarks:
3434
needs: [set-image, changes]
3535
if: ${{ needs.changes.outputs.rust }}
36-
runs-on: arc-runners-polkadot-sdk-beefy
36+
runs-on: parity-large
3737
timeout-minutes: 60
3838
container:
3939
image: ${{ needs.set-image.outputs.IMAGE }}
@@ -52,7 +52,7 @@ jobs:
5252
test-syscalls:
5353
needs: [set-image, changes]
5454
if: ${{ needs.changes.outputs.rust }}
55-
runs-on: arc-runners-polkadot-sdk-beefy
55+
runs-on: parity-large
5656
timeout-minutes: 60
5757
container:
5858
image: ${{ needs.set-image.outputs.IMAGE }}
@@ -77,7 +77,7 @@ jobs:
7777
cargo-check-all-benches:
7878
needs: [set-image, changes]
7979
if: ${{ needs.changes.outputs.rust }}
80-
runs-on: arc-runners-polkadot-sdk-beefy
80+
runs-on: parity-large
8181
timeout-minutes: 60
8282
container:
8383
image: ${{ needs.set-image.outputs.IMAGE }}

0 commit comments

Comments
 (0)