Skip to content

Commit b871e62

Browse files
authored
Merge branch 'master' into ron/fix-describe-token
2 parents caf5e62 + a6082b3 commit b871e62

File tree

269 files changed

+12663
-3756
lines changed

Some content is hidden

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

269 files changed

+12663
-3756
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.github/scripts/common/lib.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ function get_s3_url_base() {
355355
frame-omni-bencher)
356356
printf "https://releases.parity.io/frame-omni-bencher"
357357
;;
358+
eth-rpc)
359+
printf "https://releases.parity.io/eth-rpc"
360+
;;
358361
*)
359362
printf "UNSUPPORTED BINARY $name"
360363
exit 1

.github/scripts/process-differential-tests-report.py

Lines changed: 0 additions & 259 deletions
This file was deleted.

.github/scripts/release/release_lib.sh

Lines changed: 60 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ commit_with_message() {
2929
# input: none
3030
# output: list of filtered runtimes
3131
get_filtered_runtimes_list() {
32-
grep_filters=("runtime.*" "test|template|starters|substrate")
32+
grep_filters=("runtime.*" "test|template|starters|substrate|docs")
3333

3434
git grep spec_version: | grep .rs: | grep -e "${grep_filters[0]}" | grep "lib.rs" | grep -vE "${grep_filters[1]}" | cut -d: -f1
3535
}
@@ -91,13 +91,20 @@ function get_spec_version() {
9191
reorder_prdocs() {
9292
VERSION="$1"
9393

94-
printf "[+] ℹ️ Reordering prdocs:"
94+
printf "[+] ℹ️ Reordering prdocs:\n"
9595

9696
VERSION=$(sed -E 's/^v([0-9]+\.[0-9]+\.[0-9]+).*$/\1/' <<< "$VERSION") #getting reed of the 'v' prefix
97-
mkdir -p "prdoc/$VERSION"
98-
mv prdoc/pr_*.prdoc prdoc/$VERSION
99-
git add -A
100-
commit_with_message "Reordering prdocs for the release $VERSION"
97+
98+
# Check if there are any prdoc files to move
99+
if ls prdoc/pr_*.prdoc 1> /dev/null 2>&1; then
100+
mkdir -p "prdoc/$VERSION"
101+
mv prdoc/pr_*.prdoc prdoc/$VERSION
102+
git add -A
103+
commit_with_message "Reordering prdocs for the release $VERSION"
104+
echo "✅ Successfully reordered prdocs"
105+
else
106+
echo "⚠️ No prdoc files found to reorder"
107+
fi
101108
}
102109

103110
# Bump the binary version of the polkadot-parachain binary with the
@@ -204,3 +211,50 @@ function get_s3_url_base() {
204211
;;
205212
esac
206213
}
214+
215+
# Bump spec_version in a runtime file based on release type
216+
# For patch release: bump last 3 digits (patch part) by 1
217+
# For new stable release: bump middle part (minor) by 1, reset patch to 0
218+
#
219+
# input:
220+
# - file: path to the runtime file
221+
# - is_patch_release: "true" for patch release, "false" for new stable
222+
# output: prints the new spec_version, modifies file in place
223+
bump_spec_version() {
224+
local file=$1
225+
local is_patch_release=$2
226+
227+
# Extract current spec_version from file (format: X_YYY_ZZZ)
228+
local current_spec=$(grep -oP 'spec_version:\s*\K[0-9]+_[0-9]+_[0-9]+' "$file" | head -1)
229+
230+
if [ -z "$current_spec" ]; then
231+
echo "⚠️ Warning: Could not find spec_version in $file"
232+
return 1
233+
fi
234+
235+
# Parse the spec_version (format: X_YYY_ZZZ)
236+
local major=$(echo "$current_spec" | cut -d'_' -f1)
237+
local minor=$(echo "$current_spec" | cut -d'_' -f2)
238+
local patch=$(echo "$current_spec" | cut -d'_' -f3)
239+
240+
# Remove leading zeros for arithmetic
241+
minor=$((10#$minor))
242+
patch=$((10#$patch))
243+
244+
if [ "$is_patch_release" = "true" ]; then
245+
# Patch release: bump patch part by 1
246+
patch=$((patch + 1))
247+
else
248+
# New stable release: bump minor by 1, reset patch to 0
249+
minor=$((minor + 1))
250+
patch=0
251+
fi
252+
253+
# Format back to X_YYY_ZZZ format (with proper zero padding)
254+
local new_spec=$(printf "%d_%03d_%03d" "$major" "$minor" "$patch")
255+
256+
# Replace in file
257+
sed -ri "s/spec_version: ${current_spec},/spec_version: ${new_spec},/" "$file"
258+
259+
echo "$new_spec"
260+
}

.github/workflows/check-licenses.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- name: Checkout sources
2727
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
28+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2929
with:
3030
node-version: "18.x"
3131
registry-url: "https://npm.pkg.github.com"
@@ -63,7 +63,7 @@ jobs:
6363
steps:
6464
- name: Checkout sources
6565
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
66-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
66+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
6767
with:
6868
node-version: "18.x"
6969
registry-url: "https://npm.pkg.github.com"

.github/workflows/check-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
timeout-minutes: 10
2727
steps:
2828
- name: Restore lychee cache
29-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
29+
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
3030
with:
3131
path: .lycheecache
3232
key: cache-lychee-${{ github.sha }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
forklift cargo build --release --locked -p ${{ matrix.package }} --features on-chain-release-build -q
7373
7474
- name: Setup Node.js
75-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
75+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
7676
with:
7777
node-version: "24.x"
7878
registry-url: "https://npm.pkg.github.com"

0 commit comments

Comments
 (0)