Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update runtime v1.3.1 #129

Merged
merged 59 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
2e0aff4
Bump relay to v1.2.8
raynaudoe Sep 2, 2024
14d76e5
Merge branch 'main' into release/1.2.8-runtime
raynaudoe Sep 4, 2024
00fa1cf
[WIP] update bridge hub to v1.2.8
raynaudoe Sep 4, 2024
157dcd0
Update people chain to v1.2.8
raynaudoe Sep 4, 2024
4ef95c3
[WIP] update asset hub to v1.2.8
raynaudoe Sep 4, 2024
fbd73c6
Add kusama related code for bridge hub
raynaudoe Sep 5, 2024
10de0ea
updates integration tests
claravanstaden Sep 6, 2024
118e221
Merge pull request #128 from paseo-network/snowbridge-v1.2.8-upgrade
hbulgarini Sep 6, 2024
17c59b2
fixing BH
hbulgarini Sep 6, 2024
5b9eb13
Merge branch 'release/1.2.8-runtime' into release/1.3.1-runtime
raynaudoe Sep 6, 2024
886d4f4
AH compiling
hbulgarini Sep 6, 2024
b4a045b
Fixing AuraId
hbulgarini Sep 6, 2024
2a85941
snowbridge config fixes
claravanstaden Sep 6, 2024
3717f85
more fixes
claravanstaden Sep 6, 2024
52d01db
Apply relay patch for v1.3.1
raynaudoe Sep 6, 2024
46e8881
Merge branch 'release/1.2.8-runtime' into release/1.3.1-runtime
raynaudoe Sep 6, 2024
9bf95e8
Update bridge hub to v1.3.1
raynaudoe Sep 6, 2024
be71138
Update asset hub to v1.3.1
raynaudoe Sep 6, 2024
97ff40a
test fixes
claravanstaden Sep 6, 2024
9401677
fmt
claravanstaden Sep 6, 2024
564aa48
fixes
raynaudoe Sep 6, 2024
818222f
Merge branch 'release/1.2.8-runtime' into release/1.3.1-runtime
raynaudoe Sep 6, 2024
ce0ae59
Fixes
raynaudoe Sep 7, 2024
0ca3412
More fixes
raynaudoe Sep 7, 2024
9bf82b3
More fixes
raynaudoe Sep 7, 2024
a62e072
Update people to v1.3.1
raynaudoe Sep 7, 2024
c883f1e
Add missing sudo pallet
raynaudoe Sep 7, 2024
d2fd189
Remove duplicate definition
raynaudoe Sep 7, 2024
0bc55b7
Fix asset hub compilation
raynaudoe Sep 9, 2024
86d7c8a
Update cargo.lock
raynaudoe Sep 9, 2024
9497b78
Fixing typo
hbulgarini Sep 9, 2024
145af0f
Delete commented code
raynaudoe Sep 10, 2024
5a3aa6a
Fix bad names
raynaudoe Sep 10, 2024
f6571b9
Runtimes compiling, not generator
hbulgarini Sep 10, 2024
d156aa7
Compiling
hbulgarini Sep 10, 2024
33a67bd
ready
hbulgarini Sep 10, 2024
897a49c
Merge branch 'hb-fixes-release-1.3.1' into release/1.3.1-runtime
hbulgarini Sep 10, 2024
d38ab1c
Fixes
raynaudoe Sep 10, 2024
5765a83
fix pub
raynaudoe Sep 10, 2024
a8378cd
Weights updated
hbulgarini Sep 11, 2024
a387b9a
spec names & ids
al3mart Sep 11, 2024
fde1e6d
Merge pull request #131 from paseo-network/al3mart/fix-chain-spec-gen…
al3mart Sep 11, 2024
41766ba
Update integration tests
raynaudoe Sep 11, 2024
a37bccc
minor fix
raynaudoe Sep 11, 2024
c182569
Update relay/paseo/src/lib.rs
raynaudoe Sep 12, 2024
4a6cb1f
Comment unnecessary code
raynaudoe Sep 12, 2024
1a4138a
Merge branch 'main' into release/1.3.1-runtime
raynaudoe Sep 12, 2024
24c849d
fix: bring back cancel auction
al3mart Sep 12, 2024
8b0bace
fix: adjust relay HostConfig genesis
al3mart Sep 12, 2024
9b3215e
Fix typo
raynaudoe Sep 12, 2024
e1fd37c
Pushing Paseo weigghts
hbulgarini Sep 13, 2024
0a1648f
test fixes
claravanstaden Sep 19, 2024
871de69
Fix some cargo test compilation issues
raynaudoe Sep 19, 2024
0aa6989
Merge branch 'release/1.3.1-runtime' into fix-tests-release-1.3.1
claravanstaden Sep 23, 2024
ea75fee
wip
claravanstaden Sep 26, 2024
59680d5
automate chain specs generation (#132)
raynaudoe Sep 26, 2024
de3cd64
Fix claim assets and teleport tests
hbulgarini Oct 8, 2024
fd5c6e0
Merge pull request #139 from paseo-network/hb-fix-claim-asset-telepor…
claravanstaden Oct 8, 2024
eca9d5e
Merge pull request #133 from paseo-network/fix-tests-release-1.3.1
hbulgarini Oct 9, 2024
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
Original file line number Diff line number Diff line change
@@ -1,12 +1,44 @@
name: Build Deterministic Runtimes
name: Create Runtimes releases

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_version:
description: 'Tag version for the release'
required: true
type: string

jobs:
generate-chain-specs:
uses: ./.github/workflows/generate-chain-specs.yaml
with:
tag_version: ${{ github.event.inputs.tag_version }}

create-tag:
needs: generate-chain-specs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags

- name: Setup Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }}

- name: Create and push tag
run: |
git checkout ${{ github.ref }}
git tag ${{ github.event.inputs.tag_version }}
git push origin ${{ github.event.inputs.tag_version }}

srtool:
needs: create-tag
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -21,9 +53,14 @@ jobs:
path: "system-parachains/bridge-hub-paseo"
- name: "people-paseo"
path: "system-parachains/people-paseo"
- name: "coretime-paseo"
path: "system-parachains/coretime-paseo"

steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag_version }}

- name: Cache runtime target dir
uses: actions/cache@v3
Expand All @@ -49,24 +86,27 @@ jobs:
run: |
echo '${{ steps.srtool_build.outputs.json }}' | jq . > ${{ matrix.runtime.name }}-srtool-digest.json

# Manual trigger: add artifacts to run
# Copy artifacts
- name: Copy artifacts
if: github.event_name != 'release'
run: cp `dirname ${{ steps.srtool_build.outputs.wasm }}`/*.wasm ./

- name: Archive Runtime
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.runtime.name }}-runtime-${{ github.sha }}
name: ${{ matrix.runtime.name }}-runtime-${{ github.event.inputs.tag_version }}
path: |
${{ matrix.runtime.name }}*.wasm
${{ matrix.runtime.name }}-srtool-digest.json

# Release published: add artifacts to release
- name: Add artifacts to release
if: github.event_name == 'release'
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag_version }}
name: Release ${{ github.event.inputs.tag_version }}
draft: false
prerelease: false
generate_release_notes: true
append_body: true
body: |
## Runtime: `${{ matrix.runtime.name }}`
Expand All @@ -82,3 +122,5 @@ jobs:
files: |
${{ steps.srtool_build.outputs.wasm_compressed }}
${{ matrix.runtime.name }}-srtool-digest.json
env:
GITHUB_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }}
85 changes: 85 additions & 0 deletions .github/workflows/generate-chain-specs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Generate Chain Specs

on:
workflow_dispatch:
inputs:
tag_version:
description: 'Tag version for the release'
required: true
type: string
workflow_call:
inputs:
tag_version:
description: 'Tag version for the release'
required: true
type: string

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
generate-chain-specs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y git protobuf-compiler

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.77.0
target: wasm32-unknown-unknown
components: rust-src
override: true

- name: Add rust-src
run: rustup component add rust-src --toolchain 1.77.0-x86_64-unknown-linux-gnu

- name: Build chain-spec-generator
run: cargo build --package chain-spec-generator --features=fast-runtime --release

- name: Generate chain specs
run: |
mkdir -p chain-specs/local
PACKAGES=(
"paseo-local"
"paseo-dev"
"asset-hub-paseo-local"
"bridge-hub-paseo-local"
"people-paseo-local"
"coretime-paseo-local"
)

for pkg in "${PACKAGES[@]}"; do
./target/release/chain-spec-generator "$pkg" --raw > "chain-specs/local/$pkg.json"
echo "Generated chain-specs/local/$pkg.json"
done

- name: Setup Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.PASEO_RUNTIME_CI_PAT }}

- name: Commit changes
run: |
git add chain-specs/local/*.json
if git diff --staged --quiet; then
echo "No changes detected in chain specs. Skipping commit."
else
COMMIT_MESSAGE="Update chain specs for version ${{ inputs.tag_version }}"
git commit -m "$COMMIT_MESSAGE"
git push
echo "Changes committed and pushed successfully."
fi
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ rls*.log
runtime/wasm/target/
substrate.code-workspace
target/
**/tmp_runtime
**/.tmp_runtime
**/tmp_hub
*.log
*.patch
Loading