Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
girazoki committed Nov 15, 2024
2 parents e9914ee + ffa8436 commit 358d007
Show file tree
Hide file tree
Showing 275 changed files with 47,335 additions and 4,947 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/coverage-report.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def generate_comparison_markdown(base_covdir, incoming_covdir, base_html_url):
for item in differences:
# Determine emoji based on coverage difference
if item["diff"] > 0:
emoji = "🔼"
emoji = ""
elif item["diff"] < 0:
emoji = "🔽"
emoji = ""
else:
emoji = ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: Install typescript-api
Expand Down
15 changes: 1 addition & 14 deletions .github/workflow-templates/zombienet-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,12 @@ runs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: "pnpm"

- name: "Download binaries"
uses: actions/download-artifact@v4
with:
name: binaries
path: target/release

- name: "Run zombie test"
shell: bash
run: |
chmod uog+x target/release/tanssi-node
chmod uog+x target/release/tanssi-relay
chmod uog+x target/release/tanssi-relay-prepare-worker
chmod uog+x target/release/tanssi-relay-execute-worker
chmod uog+x target/release/container-chain-simple-node
chmod uog+x target/release/container-chain-frontier-node
cd test
pnpm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/client-release-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
path: binaries
- name: Unit tests
run: |
cargo test --release --all --features=fast-runtime
cargo test --release --all --features=fast-runtime --exclude tc-consensus
- name: Typescript Tests Tanssi (Dev Service)
uses: ./.github/workflow-templates/typescript-tests-moonwall
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-runtime-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: binaries
path: build
Expand Down
122 changes: 122 additions & 0 deletions .github/workflows/e2e-test-bridge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Bridge e2e test

on:
workflow_run:
workflows: [CI]
branches: [master]
types: [completed]
workflow_dispatch:
inputs:
run_id:
description: "Run id from which artifacts are taken"
required: true

jobs:
e2e-bridge-test:
runs-on: self-hosted
steps:
- name: Retrieve run id
id: retrieve-run-id
run: |
if [[ -n "${{ github.event_name == 'workflow_dispatch' }}" ]]; then
echo "run_id=${{ github.event.inputs.run_id }}" >> $GITHUB_OUTPUT
else
echo "run_id=${{ github.event.workflow_run.id }}" >> $GITHUB_OUTPUT
fi
- name: Recognize sha ref
id: sharef
run: |
if [ ${{ github.event_name }} == 'pull_request' ]
then
echo "::set-output name=sha::$(echo ${{github.event.pull_request.head.sha}})"
elif [ ${{ github.event_name }} == 'workflow_run' ]
then
echo "::set-output name=sha::$(echo ${{github.event.workflow_run.head_sha}})"
else
echo "::set-output name=sha::$(echo $GITHUB_SHA)"
fi
- name: Checkout
uses: actions/checkout@v4
- name: Check g++
id: setup_g_plusplus
run: |
g++ --version
- name: Check protoc
id: check_proto_c
run: |
protoc --version
- name: Check jq
id: check_jq
run: |
jq --version
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.0'
- name: Check go
id: check_go
run: |
go version
- name: Run Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Check mage
id: check_mage
run: |
mage --version
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Check forge
id: check_forge
run: |
forge --version
- name: Pnpm
uses: pnpm/[email protected]
with:
version: 9
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install yarn
run: |-
curl -fsSL --create-dirs -o $HOME/bin/yarn \
https://github.com/yarnpkg/yarn/releases/download/v1.22.22/yarn-1.22.22.js
chmod +x $HOME/bin/yarn
echo "$HOME/bin" >> $GITHUB_PATH
- name: Check yarn
id: check_yarn
run: |
yarn --version
- name: Check date
id: check_date
run: |
date --version
- name: Download build artifact from triggered workflow
uses: dawidd6/action-download-artifact@v2
with:
run_id: ${{ steps.retrieve-run-id.outputs.run_id }}
name: binaries
path: target/release
search_artifacts: true
- name: "Make binaries executable"
shell: bash
run: |
chmod uog+x target/release/tanssi-node
chmod uog+x target/release/tanssi-relay
chmod uog+x target/release/tanssi-relay-prepare-worker
chmod uog+x target/release/tanssi-relay-execute-worker
chmod uog+x target/release/container-chain-simple-node
chmod uog+x target/release/container-chain-frontier-node
- name: Run Zombienet Test zombie_tanssi_relay_eth_bridge
uses: ./.github/workflow-templates/zombienet-tests
with:
test_name: zombie_tanssi_relay_eth_bridge
- name: Commit Action Status
uses: LouisBrunner/[email protected]
with:
sha: ${{ steps.sharef.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
name: Bridge e2e test
conclusion: ${{ job.status }}
4 changes: 4 additions & 0 deletions .github/workflows/prepare-tanssi-relay-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ jobs:
run: |
mkdir -p binaries
cp target/production/tanssi-relay binaries/tanssi-relay
cp target/production/tanssi-relay-execute-worker binaries/tanssi-relay-execute-worker
cp target/production/tanssi-relay-prepare-worker binaries/tanssi-relay-prepare-worker
- name: Save dancelight custom binary
if: ${{ matrix.cpu != '' }}
run: |
mkdir -p binaries
cp target/production/tanssi-relay binaries/tanssi-relay-${{matrix.cpu}}
cp target/production/tanssi-relay-execute-worker binaries/tanssi-relay-execute-worker-${{matrix.cpu}}
cp target/production/tanssi-relay-prepare-worker binaries/tanssi-relay-prepare-worker-${{matrix.cpu}}
- name: Upload binary
uses: actions/upload-artifact@v3
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish-binary-tannsi-relay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ jobs:
run: |
mkdir -p binaries
cp target/production/tanssi-relay binaries/tanssi-relay
cp target/production/tanssi-relay-execute-worker binaries/tanssi-relay-execute-worker
cp target/production/tanssi-relay-prepare-worker binaries/tanssi-relay-prepare-worker
- name: Save dancelight custom binary
if: ${{ matrix.cpu != '' }}
run: |
mkdir -p binaries
cp target/production/tanssi-relay binaries/tanssi-relay-${{matrix.cpu}}
cp target/production/tanssi-relay-execute-worker binaries/tanssi-relay-execute-worker-${{matrix.cpu}}
cp target/production/tanssi-relay-prepare-worker binaries/tanssi-relay-prepare-worker-${{matrix.cpu}}
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
Expand All @@ -69,10 +73,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-runtime-chevdor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ jobs:
with:
ref: ${{ github.event.inputs.to }}
fetch-depth: 0
- name: Use Node.js 18.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 18.x
node-version: 22.x
- name: Download Original Tools
uses: actions/download-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
uses: pnpm/[email protected]
with:
version: 9
- name: Use Node.js 20.x
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 20.x
node-version: 22.x
cache: 'pnpm'
- name: Build typescript API
run: |
Expand Down
Loading

0 comments on commit 358d007

Please sign in to comment.