Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailai-Wang committed Dec 30, 2024
1 parent 5cfdf2f commit cf375f9
Show file tree
Hide file tree
Showing 38 changed files with 258 additions and 257 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Release issue template
about: Tracking issue for new releases
title: Litentry-parachain {{ env.VERSION }} Release checklist
title: Heima {{ env.VERSION }} Release checklist
---
## Release Checklist

Here is a release checklist for Litentry-parachain {{ env.VERSION }}.
Here is a release checklist for Heima {{ env.VERSION }}.

The current release candidate can be checked out with `git checkout release-{{ env.VERSION }}`

Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ updates:
- dependency-name: "xcm*"
- dependency-name: "kusama-*"
- dependency-name: "westend-*"
- dependency-name: "litentry-*"
- dependency-name: "heima-*"
reviewers:
- "litentry/parachain"
schedule:
Expand Down
6 changes: 3 additions & 3 deletions .github/runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"uri": "wss://rpc.litentry-parachain.litentry.io:443"
},
{
"name": "litentry",
"package": "litentry-parachain-runtime",
"path": "runtime/litentry",
"name": "heima",
"package": "heima-parachain-runtime",
"path": "runtime/heima",
"uri": "wss://rpc.litentry-parachain.litentry.io:443"
}
]
4 changes: 2 additions & 2 deletions .github/workflows/benchmark-machine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ jobs:
EOF
chmod 600 ./benchmark-server-key.pem
ssh -o StrictHostKeyChecking=no -i ./benchmark-server-key.pem "${{ env.BENCHMARK_SSH_USER }}@${{ steps.start_instance.outputs.remote_ip }}" \
"docker pull litentry/litentry-parachain:${{ github.event.inputs.docker_tag }} && \
docker run --rm litentry/litentry-parachain:${{ github.event.inputs.docker_tag }} benchmark machine --allow-fail --chain=litentry-dev"
"docker pull litentry/heima:${{ github.event.inputs.docker_tag }} && \
docker run --rm litentry/heima:${{ github.event.inputs.docker_tag }} benchmark machine --allow-fail --chain=heima-dev"
rm -f ./benchmark-server-key.pem
- name: Stop remote instance
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/benchmark-runtime-weights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ on:
description: rebuild-docker
required: true
default: true
litentry:
heima:
type: boolean
description: litentry
description: heima
required: true
default: true
paseo:
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Push docker image
run: |
docker push litentry/litentry-parachain:runtime-benchmarks
docker push litentry/heima:runtime-benchmarks
## run the benchmarking remotely
benchmark:
Expand All @@ -78,8 +78,8 @@ jobs:
- name: Set env
run: |
chain=""
if [ "${{ github.event.inputs.litentry }}" = "true" ]; then
chain="$chain litentry"
if [ "${{ github.event.inputs.heima }}" = "true" ]; then
chain="$chain heima"
fi
if [ "${{ github.event.inputs.paseo }}" = "true" ]; then
chain="$chain paseo"
Expand All @@ -97,7 +97,7 @@ jobs:

- name: Pull docker image
run: |
docker pull litentry/litentry-parachain:runtime-benchmarks
docker pull litentry/heima:runtime-benchmarks
- name: Set up AWS CLI
uses: aws-actions/configure-aws-credentials@v4
Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
for c in $chain; do
ssh -x -i ./benchmark-server-key.pem -o StrictHostKeychecking=no "${{ steps.start_instance.outputs.remote_ip }}" -l ${{ env.BENCHMARK_SSH_USER }} 'bash -s' < parachain/scripts/benchmark-weight-remote.sh "$c" "${GITHUB_REF#refs/heads/}" "$arg"
echo "copy generated weights files back ..."
scp -o StrictHostKeychecking=no -i ./benchmark-server-key.pem "${{ env.BENCHMARK_SSH_USER }}"@"${{ steps.start_instance.outputs.remote_ip }}":/tmp/litentry-parachain/parachain/runtime/$c/src/weights/*.rs parachain/runtime/$c/src/weights/
scp -o StrictHostKeychecking=no -i ./benchmark-server-key.pem "${{ env.BENCHMARK_SSH_USER }}"@"${{ steps.start_instance.outputs.remote_ip }}":/tmp/heima/parachain/runtime/$c/src/weights/*.rs parachain/runtime/$c/src/weights/
done
rm -f ./benchmark-server-key.pem
echo "======================"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-with-args.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ jobs:

- name: Push docker image
run: |
docker push litentry/litentry-parachain:${{ github.event.inputs.docker_tag }}
docker push litentry/heima:${{ github.event.inputs.docker_tag }}
- name: Copy client binary to disk
run: |
docker cp $(docker create --rm litentry/litentry-parachain:${{ github.event.inputs.docker_tag }}):/usr/local/bin/heima-node .
docker cp $(docker create --rm litentry/heima:${{ github.event.inputs.docker_tag }}):/usr/local/bin/heima-node .
- name: Upload the client binary
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: choice
description: The chain whose runtime-wasm is built
options:
- litentry
- heima
- paseo
ref:
description: The commit SHA or tag for checking out code
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -358,18 +358,18 @@ jobs:
- name: Pull docker image optionally
if: needs.set-condition.outputs.rebuild_parachain == 'false'
run: |
docker pull litentry/litentry-parachain:latest
docker pull litentry/litentry-chain-aio:latest
docker pull litentry/heima:latest
docker pull litentry/heima-aio:latest
- name: Save docker image
run: |
docker save litentry/litentry-parachain:latest litentry/litentry-chain-aio:latest | gzip > litentry-parachain-dev.tar.gz
docker save litentry/heima:latest litentry/heima-aio:latest | gzip > litentry-heima.tar.gz
- name: Upload parachain docker image
uses: actions/upload-artifact@v4
with:
name: litentry-parachain-dev
path: litentry-parachain-dev.tar.gz
name: litentry-heima
path: litentry-heima.tar.gz
if-no-files-found: error

- name: Fail early
Expand Down Expand Up @@ -573,19 +573,19 @@ jobs:
strategy:
matrix:
chain:
- litentry
- heima
- paseo
name: ${{ matrix.chain }}
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
name: litentry-parachain-dev
name: litentry-heima

- name: Load docker image
run: |
docker load < litentry-parachain-dev.tar.gz
docker load < litentry-heima.tar.gz
- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm
Expand Down Expand Up @@ -685,8 +685,8 @@ jobs:
echo "::group::paseo runtime test"
cargo test --locked -p paseo-parachain-runtime --lib
echo "::endgroup::"
echo "::group::litentry runtime test"
cargo test --locked -p litentry-parachain-runtime --lib
echo "::group::heima runtime test"
cargo test --locked -p heima-parachain-runtime --lib
echo "::endgroup::"
- name: Fail early
Expand Down Expand Up @@ -715,15 +715,15 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: litentry-parachain-dev
name: litentry-heima

- uses: actions/download-artifact@v4
with:
name: litentry-identity

- name: Load docker image
run: |
docker load < litentry-parachain-dev.tar.gz
docker load < litentry-heima.tar.gz
docker load < litentry-identity.tar.gz
docker images
Expand All @@ -732,7 +732,7 @@ jobs:

- name: Launch parachain network
run: |
make launch-network-litentry
make launch-network-heima
- name: Integration single worker test ${{ matrix.test_name }}
working-directory: ./tee-worker/identity/docker
Expand Down Expand Up @@ -801,15 +801,15 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: litentry-parachain-dev
name: litentry-heima

- uses: actions/download-artifact@v4
with:
name: litentry-identity

- name: Load docker image
run: |
docker load < litentry-parachain-dev.tar.gz
docker load < litentry-heima.tar.gz
docker load < litentry-identity.tar.gz
docker images
Expand All @@ -818,7 +818,7 @@ jobs:

- name: Launch parachain network
run: |
make launch-network-litentry
make launch-network-heima
- name: Integration multi worker test ${{ matrix.test_name }}
working-directory: ./tee-worker/identity/docker
Expand Down Expand Up @@ -881,15 +881,15 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: litentry-parachain-dev
name: litentry-heima

- uses: actions/download-artifact@v4
with:
name: litentry-omni

- name: Load docker image
run: |
docker load < litentry-parachain-dev.tar.gz
docker load < litentry-heima.tar.gz
docker load < litentry-omni.tar.gz
docker images
Expand Down Expand Up @@ -942,7 +942,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: litentry-parachain-dev
name: litentry-heima

- uses: actions/download-artifact@v4
with:
Expand All @@ -961,9 +961,9 @@ jobs:
- name: Push parachain image
if: needs.set-condition.outputs.rebuild_parachain == 'true'
run: |
docker load < litentry-parachain-dev.tar.gz
docker push litentry/litentry-parachain
docker push litentry/litentry-chain-aio
docker load < litentry-heima.tar.gz
docker push litentry/heima
docker push litentry/heima-aio
- name: Push tee-worker image
if: needs.set-condition.outputs.rebuild_identity == 'true'
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/create-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ on:
options:
- none
- paseo
- litentry
- heima

env:
RELEASE_TAG: ${{ github.event.inputs.release_tag }}
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
matrix:
chain:
- paseo
- litentry
- heima
name: ${{ matrix.chain }}
steps:
- name: Checkout codes on ${{ env.RELEASE_TAG }}
Expand Down Expand Up @@ -130,16 +130,16 @@ jobs:
- name: Generate genesis artefacts if need
if: github.event.inputs.genesis_release != 'none'
run: |
docker run --rm litentry/litentry-parachain:${{ env.RELEASE_TAG }} export-genesis-state --chain=${{ env.GENESIS_RELEASE }} > ${{ env.GENESIS_RELEASE }}-genesis-state
docker run --rm litentry/litentry-parachain:${{ env.RELEASE_TAG }} export-genesis-wasm --chain=${{ env.GENESIS_RELEASE }} > ${{ env.GENESIS_RELEASE }}-genesis-wasm
docker run --rm litentry/heima:${{ env.RELEASE_TAG }} export-genesis-state --chain=${{ env.GENESIS_RELEASE }} > ${{ env.GENESIS_RELEASE }}-genesis-state
docker run --rm litentry/heima:${{ env.RELEASE_TAG }} export-genesis-wasm --chain=${{ env.GENESIS_RELEASE }} > ${{ env.GENESIS_RELEASE }}-genesis-wasm
- name: Copy client binary to disk
run: |
docker cp $(docker create --rm litentry/litentry-parachain:${{ env.RELEASE_TAG }}):/usr/local/bin/heima-node .
docker cp $(docker create --rm litentry/heima:${{ env.RELEASE_TAG }}):/usr/local/bin/heima-node .
- name: Save docker image
run: |
docker save litentry/litentry-parachain:${{ env.RELEASE_TAG }} | gzip > litentry-parachain-dev.tar.gz
docker save litentry/heima:${{ env.RELEASE_TAG }} | gzip > litentry-heima.tar.gz
- name: Upload the client binary
uses: actions/upload-artifact@v4
Expand All @@ -148,7 +148,7 @@ jobs:
if-no-files-found: ignore
path: |
heima-node
litentry-parachain-dev.tar.gz
litentry-heima.tar.gz
${{ env.GENESIS_RELEASE }}-genesis-state
${{ env.GENESIS_RELEASE }}-genesis-wasm
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
strategy:
matrix:
chain:
- litentry
- heima
name: ${{ matrix.chain }}
steps:
- name: Checkout codes
Expand All @@ -241,8 +241,8 @@ jobs:

- name: Load docker image
run: |
docker load < litentry-parachain-dev.tar.gz
docker tag litentry/litentry-parachain:${{ env.RELEASE_TAG }} litentry/litentry-parachain:latest
docker load < litentry-heima.tar.gz
docker tag litentry/heima:${{ env.RELEASE_TAG }} litentry/heima:latest
docker images
- name: Enable corepack and pnpm
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:

- name: Push docker image
run: |
docker push litentry/litentry-parachain:${{ env.RELEASE_TAG }}
docker push litentry/heima:${{ env.RELEASE_TAG }}
- name: Clean up for ${{ matrix.chain }}
if: ${{ always() }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
release-bot:
runs-on: ubuntu-22.04
# this means the release contains a new docker image (thus a new client)
if: contains(github.event.release.body, 'litentry/litentry-parachain:v')
if: contains(github.event.release.body, 'litentry/heima:v')
steps:
- name: Post discord message
env:
Expand All @@ -18,8 +18,9 @@ jobs:
args: |
Hi @everyone,
🚀 A new client release has been built: https://github.com/litentry/heima/releases/tag/${{ github.event.release.tag_name }}
✨ Please update the client using the docker image litentry/litentry-parachain:${{ github.event.release.tag_name }}
✨ Please update the client using the docker image litentry/heima:${{ github.event.release.tag_name }}
# TODO: confirm if OnF image still needs to be updated regularly
- name: Update litentry image version
uses: "OnFinality-io/action-onf-release@v1"
continue-on-error: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-ts-api-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
docker pull parity/polkadot
docker pull litentry/identity-worker:$DOCKER_TAG
docker pull litentry/identity-cli:$DOCKER_TAG
docker pull litentry/litentry-parachain:$DOCKER_TAG
docker pull litentry/heima:$DOCKER_TAG
- name: Re-tag docker image
run: |
docker tag litentry/identity-worker:$DOCKER_TAG litentry/identity-worker:latest
docker tag litentry/identity-cli:$DOCKER_TAG litentry/identity-cli:latest
docker tag litentry/litentry-parachain:$DOCKER_TAG litentry/litentry-parachain:latest
docker tag litentry/heima:$DOCKER_TAG litentry/heima:latest
- run: docker images --all

Expand All @@ -49,10 +49,10 @@ jobs:
run: |
./tee-worker/scripts/litentry/generate_parachain_artefacts.sh
- name: Build litentry parachain docker images
- name: Build heima docker images
run: |
cd tee-worker/docker
docker compose -f litentry-parachain.build.yml build
docker compose -f heima.build.yml build
- name: Update metadata and generate types
run: |
Expand Down
Loading

0 comments on commit cf375f9

Please sign in to comment.