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

v0.9.19 Dependency Update #1438

Merged
merged 44 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8cc01f9
Point cumulus, polkadot, and substrate to moonbeam repos
notlesh Apr 21, 2022
40c8974
s/moonbeam-polkadot-v0.9.18/moonbeam-polkadot-v0.9.19/
notlesh Apr 21, 2022
a4b04a9
Bump tracing crate version
notlesh Apr 21, 2022
0714b51
Update Cargo.lock
notlesh Apr 21, 2022
bc4d3db
Revert some version changes
notlesh Apr 22, 2022
b8ae1c8
No-op impl for LengthToFee
notlesh Apr 27, 2022
23b0f0c
Bump frontier commit
notlesh Apr 27, 2022
4a46ce5
Use parameter_types! to define byte fee
notlesh Apr 27, 2022
5b08d09
Specify rust edition of 2021
notlesh Apr 27, 2022
9ae692d
Update Cargo.lock
notlesh Apr 27, 2022
c4f5642
Remove max_past_logs from EthApiServer::new call
notlesh Apr 28, 2022
a16a52b
Bump frontier commit (fix for GenesisAccount not being pub)
notlesh Apr 28, 2022
d29e72c
Use fp_evm instead of pallet_evm for GenesisAccount
notlesh Apr 28, 2022
69daa10
Use v2::Id from polkadot_primitives
notlesh Apr 28, 2022
335957c
Bump frontier commit (includes LRU cache)
notlesh Apr 28, 2022
9ea54f1
Use v2 from polkadot_primitives in command.rs
notlesh Apr 28, 2022
b6c7af6
Pass None for aux_revert
notlesh Apr 28, 2022
ee70a9d
Comment out benchmark command temporarily
notlesh Apr 28, 2022
a473e1a
Bump crowdloan-rewards commit
notlesh Apr 28, 2022
8a949af
Re-implement benchmark for pallet subcommand
notlesh Apr 28, 2022
2d9acdf
Don't shadow runner with a duplicate
notlesh Apr 28, 2022
496d6fd
Impl BenchmarkCmd::Block
notlesh Apr 28, 2022
a469f2a
Impl benchmark storage
notlesh Apr 28, 2022
c6b971d
Impl aux revert in Revert subcommand
notlesh Apr 28, 2022
f04bca9
Update Cargo.lock
notlesh Apr 28, 2022
37b9670
fmt
notlesh Apr 28, 2022
a12bf39
Merge branch 'master' into moonbeam-polkadot-v0.9.19
notlesh Apr 28, 2022
8849a03
toml sort
notlesh Apr 28, 2022
b5ce527
Fix tests
notlesh Apr 29, 2022
1bc3d00
More test fixes
notlesh Apr 29, 2022
df6e2c2
Bump polkadot commit
notlesh Apr 29, 2022
720c2e8
Bump cumulus commit
notlesh Apr 29, 2022
5581e1c
Use match_types instead of match_type
notlesh Apr 29, 2022
0521944
Fixes prepare-polkadot docker CI
May 2, 2022
e640e5a
Bump frontier
notlesh May 9, 2022
475b32a
Merge branch 'master' into moonbeam-polkadot-v0.9.19
notlesh May 9, 2022
b45857c
fmt
notlesh May 9, 2022
b5c9cc5
Remove unused imports
notlesh May 9, 2022
cfc0d95
Bump frontier
notlesh May 9, 2022
f58d564
Adjust events index
notlesh May 9, 2022
ac3e6af
Expect hex-string instead of int in test
notlesh May 9, 2022
49dc521
editorconfig
notlesh May 9, 2022
d2d6625
prettier
notlesh May 9, 2022
38ecad8
Fixing para-test CI (#1479)
May 10, 2022
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
93 changes: 82 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,25 @@ jobs:
./scripts/build-alphanet-relay-image.sh
docker push $DOCKER_TAG
fi
- name: Check & prepare para-test docker image
run: |
POLKADOT_REPO=${{ needs.set-tags.outputs.polkadot_repo }}
POLKADOT_COMMIT=${{ needs.set-tags.outputs.polkadot_commit }}
DOCKER_TAG="purestake/polkadot-para-tests:sha-$POLKADOT_COMMIT"
POLKADOT_EXISTS=$(docker manifest inspect $DOCKER_TAG > /dev/null && \
echo "true" || echo "false")
if [[ "$POLKADOT_EXISTS" == "false" ]]; then
mkdir -p build
MOONBEAM_DOCKER_TAG="purestake/moonbase-relay-testnet:sha-$POLKADOT_COMMIT"
docker create --pull always -ti --name dummy $MOONBEAM_DOCKER_TAG bash
docker cp dummy:/usr/local/bin/polkadot build/polkadot
docker rm -f dummy
docker build . --pull --no-cache -f docker/polkadot-para-tests.Dockerfile \
--network=host \
--build-arg HOST_UID="$UID" \
-t $DOCKER_TAG
docker push $DOCKER_TAG
fi

####### Building and Testing binaries #######

Expand All @@ -219,8 +238,6 @@ jobs:
RUSTFLAGS: "-C opt-level=3 -D warnings"
# MOONBEAM_LOG: info
# DEBUG: "test*"
outputs:
RUSTC: ${{ steps.get-rust-versions.outputs.rustc }}
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -251,9 +268,6 @@ jobs:
fi
$SCCACHE_BIN -s
echo "RUSTC_WRAPPER=$SCCACHE_BIN" >> $GITHUB_ENV
- id: get-rust-versions
run: |
echo "::set-output name=rustc::$(rustc --version)"
- name: Build Node
run: |
env
Expand Down Expand Up @@ -312,7 +326,7 @@ jobs:

typescript-tests:
runs-on: self-hosted
needs: ["set-tags", "build"]
needs: ["set-tags", "build", "prepare-polkadot"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -327,16 +341,33 @@ jobs:
with:
node-version: 14.x
- name: Typescript integration tests (against dev service)
env:
BINARY_PATH: ../build/moonbeam
run: |
chmod uog+x build/moonbeam

#### Preparing the repository
cd moonbeam-types-bundle
npm install
npm run build
cd ../tests
npm install
node_modules/.bin/mocha --parallel -j 4 -r ts-node/register 'tests/**/test-*.ts'
cd ..

#### Retrieving docker image as base to run tests
POLKADOT_REPO=${{ needs.set-tags.outputs.polkadot_repo }}
POLKADOT_COMMIT=${{ needs.set-tags.outputs.polkadot_commit }}
DOCKER_TAG="purestake/polkadot-para-tests:sha-$POLKADOT_COMMIT"

docker run \
-e BINARY_PATH='../build/moonbeam' \
-v $(pwd):/moonbeam:z \
-u $UID \
-w /moonbeam/tests \
$DOCKER_TAG \
node node_modules/.bin/mocha \
--parallel -j 4 \
--exit \
-r ts-node/register \
'tests/**/test-*.ts'

# We determine whether there are unmodified package-lock.json files by:
# 1. Asking git for a list of all modified files
Expand Down Expand Up @@ -398,7 +429,7 @@ jobs:
npm run build
cd ../tests
npm install
node_modules/.bin/mocha --parallel -j 2 -r ts-node/register 'tracing-tests/**/test-*.ts'
node_modules/.bin/mocha --exit --parallel -j 2 -r ts-node/register 'tracing-tests/**/test-*.ts'

typescript-para-tests:
runs-on: self-hosted
Expand Down Expand Up @@ -437,11 +468,51 @@ jobs:
run: |
chmod uog+x build/polkadot
chmod uog+x build/moonbeam

#### Preparing the repository
cd moonbeam-types-bundle
npm install
cd ../tests
npm install
node_modules/.bin/mocha -r ts-node/register 'para-tests/**/test-*.ts'
cd ..

POLKADOT_REPO=${{ needs.set-tags.outputs.polkadot_repo }}
POLKADOT_COMMIT=${{ needs.set-tags.outputs.polkadot_commit }}
DOCKER_TAG="purestake/polkadot-para-tests:sha-$POLKADOT_COMMIT"

#### Retrieve binary to avoid para-node script to rely on docker
mkdir -p build
localVersion=$(grep 'spec_version: [0-9]*' runtime/moonbase/src/lib.rs | grep -o '[0-9]*')
baseRuntime=$(git tag -l -n 'runtime-[0-9]*' | \
cut -d' ' -f 1 | cut -d'-' -f 2 | \
sed "1 i ${localVersion}" | \
sort -n -r | \
uniq | \
grep -A1 "${localVersion}" | \
tail -1)
rev=$(git rev-list -1 runtime-$baseRuntime)
sha8=${rev:0:8}
dockerImage=purestake/moonbeam:sha-${sha8}
binaryPath=build/moonbeam-${sha8}
docker create --pull always --name moonbeam-tmp ${dockerImage} && \
docker cp moonbeam-tmp:/moonbeam/moonbeam ${binaryPath} && \
docker rm moonbeam-tmp

echo "Running para-tests inside docker: $DOCKER_TAG"
docker run \
-e OVERRIDE_RUNTIME_PATH='./runtimes' \
-e BINARY_PATH='../build/moonbeam' \
-e MOONBEAM_LOG='info' \
-e RELAY_BINARY_PATH='/binaries/polkadot' \
-e RUNTIME_DIRECTORY='/tmp/runtimes' \
-e BINARY_DIRECTORY='../build/' \
-e SPECS_DIRECTORY='/tmp/specs' \
-v $(pwd):/moonbeam:z \
-v $(pwd)/${binaryPath}:/binaries/moonbeam:z \
-u $UID \
-w /moonbeam/tests \
$DOCKER_TAG \
node node_modules/.bin/mocha --exit -r ts-node/register 'para-tests/**/test-*.ts'

docker-parachain:
runs-on: ubuntu-latest
Expand Down
Loading