Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
954d857
`fatxpool`: report_invalid: do not ban Future/Stale txs from re-enter…
michalkucharczyk Mar 19, 2025
097ad2b
Add test to transfer PAL(native asset on Penpal)
yrong Mar 19, 2025
dbebf53
Treasury: update expire date on payout (#7958) (#7959)
josepot Mar 20, 2025
628bdd9
[CI/CD] Refactor backports flow so that it can determine automaticall…
EgorPopelyaev Mar 20, 2025
123d31f
`bp-runtime`: make macro expansion not rely on `sp-std` in scope. (#7…
gui1117 Mar 20, 2025
2d6d02c
Merge branch 'snowbridge-v2' into ron/transfer-pal
yrong Mar 20, 2025
4bc5856
Rename
yrong Mar 21, 2025
ad4396f
Bump parachains runtime api to 13 (#7981)
sandreim Mar 21, 2025
e2aa79f
Transfer native asset with ID 2 as teleport
yrong Mar 21, 2025
e1a1e4d
rpc-v2/archive: Rename archive call method result to value (#7885)
lexnv Mar 21, 2025
470bada
bump version of zombienet-sdk (#7964)
pepoviola Mar 21, 2025
855c47b
Improve XCMP weight metering (#7963)
serban300 Mar 21, 2025
467d1f6
Fix: [Referenda Tracks] Resolve representation issues that are breaki…
pandres95 Mar 21, 2025
1a514f6
Add digest processor xcm emulator (#7915)
girazoki Mar 21, 2025
fd8b1d7
Removed `pallet:getter` from XCM pallets (#7916)
muraca Mar 23, 2025
ec32daa
Upgrade deps to eliminate ancient dependencies (#7999)
jasl Mar 24, 2025
b252690
docs: update local ci execution instruction (#8003)
alvicsam Mar 24, 2025
b82ef54
[AHM] Revert multi-block election, slashing and staking client pallet…
Ank4n Mar 24, 2025
98c6ffc
Snowbridge V2 (#7402)
vgeddes Mar 24, 2025
1764e3c
Add genesis config
yrong Mar 25, 2025
5f8bfa1
switch polkadot zombienet-sdk tests to use cumulus test helpers (#7993)
alindima Mar 25, 2025
e869829
Update RELEASE.md (#7903)
EgorPopelyaev Mar 25, 2025
8b87a0e
Snowbridge - Change the hash of the outbound queue PendingOrders stor…
yrong Mar 25, 2025
fd582ca
Merge branch 'master' into ron/transfer-pal
yrong Mar 26, 2025
39ee749
Use xcm_builder::Case
yrong Mar 26, 2025
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
20 changes: 20 additions & 0 deletions .github/scripts/common/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ validate_stable_tag() {
}

# Prepare docker stable tag form the polkadot stable tag
#
# input: tag (polkaodot-stableYYMM(-X) or polkadot-stableYYMM(-X)-rcX)
# output: stableYYMM(-X) or stableYYMM(-X)-rcX
prepare_docker_stable_tag() {
Expand All @@ -519,3 +520,22 @@ prepare_docker_stable_tag() {
exit 1
fi
}

# Parse names of the branches from the github labels based on the pattern
#
# input: labels (array of lables like ("A3-backport" "RO-silent" "A4-backport-stable2407" "A4-backport-stable2503"))
# output: BRANCHES (array of the branch names)
parse_branch_names_from_backport_labels() {
labels="$1"
BRANCHES=""

for label in $labels; do
if [[ "$label" =~ ^A4-backport-stable[0-9]{4}$ ]]; then
branch_name=$(sed 's/A4-backport-//' <<< "$label")
BRANCHES+=" ${branch_name}"
fi
done

BRANCHES=$(echo "$BRANCHES" | sed 's/^ *//')
echo "$BRANCHES"
}
2 changes: 1 addition & 1 deletion .github/workflows/build-publish-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ jobs:
uses: actions/checkout@v4
- name: build
run: |
forklift cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --locked --features zombie-metadata --archive-file polkadot-zombienet-tests.tar.zst
forklift cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --locked --features zombie-metadata,zombie-ci --archive-file polkadot-zombienet-tests.tar.zst
- name: pack artifacts
run: |
mkdir -p artifacts
Expand Down
53 changes: 44 additions & 9 deletions .github/workflows/command-backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,68 @@ permissions:
actions: write # It may have to backport changes to the CI as well.

jobs:
backport:
name: Backport pull request
check-labels:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
outputs:
LABELS: ${{ steps.check_labels.outputs.LABELS}}
found: ${{ steps.check_labels.outputs.found}}

# The 'github.event.pull_request.merged' ensures that it got into master:
if: >
( !startsWith(github.event.pull_request.base.ref, 'stable') ) &&
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged &&
github.event.pull_request.base.ref == 'master' &&
contains(github.event.pull_request.labels.*.name, 'A4-needs-backport')
github.event.pull_request.base.ref == 'master'
)
steps:
- uses: actions/checkout@v4

- name: Check for backport labels
id: check_labels
run: |
LABELS=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')

if echo "$LABELS" | grep -q '^A4-backport-stable'; then
echo "found=true" >> $GITHUB_OUTPUT
readarray -t labels_array <<< "$LABELS"
echo "LABELS=${labels_array[@]}" >> $GITHUB_OUTPUT
else
echo "found=false" >> $GITHUB_OUTPUT
fi


backport:
name: Backport pull request
runs-on: ubuntu-latest
needs: [ check-labels ]
if: ${{ needs.check-labels.outputs.found == 'true' }}
steps:
- uses: actions/checkout@v4

- name: Get branches to backport to
id: branches
run: |
. ./.github/scripts/common/lib.sh

LABELS="${{ needs.check-labels.outputs.LABELS }}"
BACKPORT_BRANCHES=$(parse_branch_names_from_backport_labels "$LABELS")
echo "BACKPORT_BRANCHES=${BACKPORT_BRANCHES}" >> $GITHUB_OUTPUT

- name: Generate token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.RELEASE_BACKPORT_AUTOMATION_APP_ID }}
private_key: ${{ secrets.RELEASE_BACKPORT_AUTOMATION_APP_PRIVATE_KEY }}
app-id: ${{ secrets.RELEASE_BACKPORT_AUTOMATION_APP_ID }}
private-key: ${{ secrets.RELEASE_BACKPORT_AUTOMATION_APP_PRIVATE_KEY }}

- name: Create backport pull requests
uses: korthout/backport-action@v3
id: backport
with:
target_branches: stable2407 stable2409 stable2412 stable2503
target_branches: ${{ steps.branches.outputs.BACKPORT_BRANCHES }}
merge_commits: skip
github_token: ${{ steps.generate_token.outputs.token }}
pull_description: |
Expand All @@ -59,6 +93,7 @@ jobs:
"conflict_resolution": "draft_commit_conflicts"
}
copy_assignees: true
label_pattern: ^A4-backport-stable

- name: Label Backports
if: ${{ steps.backport.outputs.created_pull_numbers != '' }}
Expand Down Expand Up @@ -86,11 +121,11 @@ jobs:
const reviewer = '${{ github.event.pull_request.user.login }}';

for (const pullNumber of pullNumbers) {
await github.pulls.requestReviewers({
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: parseInt(pullNumber),
reviewers: [ reviewer ]
reviewers: [reviewer]
});
console.log(`Requested review from ${reviewer} for PR #${pullNumber}`);
}
2 changes: 1 addition & 1 deletion .github/workflows/runtimes-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"header": "substrate/HEADER-APACHE2",
"template": "substrate/.maintain/frame-weight-template.hbs",
"bench_features": "runtime-benchmarks",
"bench_flags": "--exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier",
"bench_flags": "--exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage",
"uri": null,
"is_relay": false
},
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: script
run: forklift cargo run --locked --release -p staging-node-cli --bin substrate-node --features runtime-benchmarks --quiet -- benchmark pallet --chain dev --pallet "*" --exclude-pallets=pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier --extrinsic "*" --steps 2 --repeat 1 --quiet
run: forklift cargo run --locked --release -p staging-node-cli --bin substrate-node --features runtime-benchmarks --quiet -- benchmark pallet --chain dev --pallet "*" --extrinsic "*" --steps 2 --repeat 1 --quiet

# cf https://github.com/paritytech/polkadot-sdk/issues/1652
test-syscalls:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ build-polkadot-zombienet-tests:
artifacts: true

script:
- cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --features zombie-metadata --archive-file polkadot-zombienet-tests.tar.zst
- cargo nextest --manifest-path polkadot/zombienet-sdk-tests/Cargo.toml archive --features zombie-metadata,zombie-ci --archive-file polkadot-zombienet-tests.tar.zst
- mkdir -p artifacts
- cp polkadot-zombienet-tests.tar.zst ./artifacts

Expand Down
Loading
Loading