Skip to content

Commit

Permalink
Update JS Packages (#2249)
Browse files Browse the repository at this point in the history
# Goal
The goal of this PR is regular updates to the JS packages

# Discussion

- The metadata comparison has also been broken and the most recent
updates required us to use the dev version instead of the mainnet
version
- Updated:
    - API-Augment
    - Schemas
    - E2E Tests
    - Tools
    - Metadata comparison in release
  • Loading branch information
wilwade authored Jan 3, 2025
1 parent 8945c5e commit f521746
Show file tree
Hide file tree
Showing 12 changed files with 1,403 additions and 1,700 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,9 @@ jobs:
name: Compare Metadata
runs-on: ubuntu-22.04
env:
NETWORK: mainnet
BIN_DIR: target/release
BIN_FILENAME: frequency.amd64
TEST_BIN_FILENAME: frequency.amd64
BIN_FILENAME: frequency-dev.amd64
TEST_BIN_FILENAME: frequency-dev.amd64
TEST_DOWNLOAD_DIR: download-test
REF_BIN_FILENAME: frequency-ref.amd64
REF_DOWNLOAD_DIR: download-ref
Expand All @@ -524,7 +523,7 @@ jobs:
steps:
- name: Set Env Vars
run: |
echo "OUTPUT_FILENAME=metadata-compare-$NETWORK.txt" >> $GITHUB_ENV
echo "OUTPUT_FILENAME=metadata-compare.txt" >> $GITHUB_ENV
- name: Check Out Repo
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -571,7 +570,7 @@ jobs:
--name test-node \
ubuntu:24.04 \
/bin/sh -c "chmod +x /app/${{env.TEST_BIN_FILENAME}} && /app/${{env.TEST_BIN_FILENAME}} \
--chain=frequency \
--chain=dev \
--rpc-external \
--rpc-cors=all \
--rpc-methods=Unsafe \
Expand All @@ -581,6 +580,7 @@ jobs:
--no-hardware-benchmarks \
--tmp \
-- \
--no-telemetry \
--reserved-only"
- name: Start Reference Node
working-directory: ${{env.BIN_DIR}}
Expand All @@ -590,7 +590,7 @@ jobs:
--name ref-node \
ubuntu:24.04 \
/bin/sh -c "chmod +x /app/${{env.REF_BIN_FILENAME}} && /app/${{env.REF_BIN_FILENAME}} \
--chain=frequency \
--chain=dev \
--rpc-external \
--rpc-cors=all \
--rpc-methods=Unsafe \
Expand All @@ -600,6 +600,7 @@ jobs:
--no-hardware-benchmarks \
--tmp \
-- \
--no-telemetry \
--reserved-only"
- name: Prepare Output
working-directory: ${{env.OUTPUT_DIR}}
Expand All @@ -614,7 +615,7 @@ jobs:
- name: Compare Metadata
timeout-minutes: 10
run: |
CMD="docker run --pull always --net=net-${{env.RELEASE_BRANCH_NAME}} jacogr/polkadot-js-tools:0.59.1 metadata ws://ref-node:9944 ws://test-node:9944"
CMD="docker run --pull always --net=net-${{env.RELEASE_BRANCH_NAME}} jacogr/polkadot-js-tools:0.61.2 metadata ws://ref-node:9944 ws://test-node:9944"
echo -e "Running:\n$CMD"
$CMD >> ${{env.OUTPUT_DIR}}/${{env.OUTPUT_FILENAME}}
cat ${{env.OUTPUT_DIR}}/${{env.OUTPUT_FILENAME}} | egrep -n -i ''
Expand Down Expand Up @@ -786,7 +787,7 @@ jobs:
"${RUNTIME_INFO_MAINNET}" \
"${RUNTIME_INFO_PASEO}" \
"${IS_FULL_RELEASE}" \
"/tmp/metadata-compare-mainnet.txt" \
"/tmp/metadata-compare.txt" \
> release-notes.md
- name: Publish Release Candidate on GitHub
if: steps.is-full-release.outputs.is-full-release != 'true'
Expand All @@ -798,7 +799,7 @@ jobs:
tag_name: ${{env.NEW_RELEASE_TAG}}
files: |
/tmp/frequency*.*
/tmp/metadata-compare-*
/tmp/metadata-compare*
/tmp/polkadot-api-types-json/json/types.json
- name: Publish Full Release on GitHub
if: steps.is-full-release.outputs.is-full-release == 'true'
Expand All @@ -808,7 +809,7 @@ jobs:
tag_name: ${{env.NEW_RELEASE_TAG}}
files: |
/tmp/frequency*.*
/tmp/metadata-compare-*
/tmp/metadata-compare*
/tmp/polkadot-api-types-json/json/types.json
- name: Get Latest Commit
id: get-latest-commit
Expand Down
Loading

0 comments on commit f521746

Please sign in to comment.