Skip to content

Commit

Permalink
Merge branch 'master' into ap/debug-assert
Browse files Browse the repository at this point in the history
  • Loading branch information
playX18 authored Jul 31, 2024
2 parents f3e4088 + 00c535f commit c65c57e
Show file tree
Hide file tree
Showing 279 changed files with 31,860 additions and 6,873 deletions.
10 changes: 10 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ path = "junit.xml"
filter = 'package(gear-authorship)'
retries = 5
threads-required = "num-test-threads"

[[profile.ci.overrides]]
filter = 'package(ethexe-cli)'
retries = 5
threads-required = "num-test-threads"

[[profile.ci.overrides]]
filter = 'package(ethexe-observer)'
retries = 5
threads-required = "num-test-threads"
4 changes: 3 additions & 1 deletion .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR

on:
pull_request:
branches: [ master ]
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -40,6 +40,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

docs:
permissions:
contents: write
runs-on: ubuntu-latest
env:
RUSTUP_HOME: /tmp/rustup_home
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,15 @@ jobs:
- name: "Install: Rust toolchain"
uses: dsherret/rust-toolchain-file@v1

- name: "Install: Foundry"
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: "Show: Versioning"
run: ./scripts/gear.sh show
run: |
./scripts/gear.sh show
forge --version
- name: "Build: Init"
run: ./scripts/gear.sh init cargo
Expand Down Expand Up @@ -140,8 +147,6 @@ jobs:
- name: "Test: Try runtime migrations"
run: |
export RUST_LOG=remote-ext=debug,runtime=debug
echo "---------- Downloading try-runtime CLI ----------"
curl -sL https://github.com/paritytech/try-runtime-cli/releases/download/v0.5.4/try-runtime-x86_64-unknown-linux-musl -o try-runtime
chmod +x ./try-runtime
Expand All @@ -152,7 +157,7 @@ jobs:
time ./try-runtime --runtime ./target/${{ matrix.profiles.name }}/wbuild/vara-runtime/vara_runtime.wasm on-runtime-upgrade --checks=all --no-weight-warnings --disable-spec-version-check live --uri ws://rpc-private.vara-network.io:9944
sleep 5
env:
RUST_LOG: info,remote-ext=debug,runtime=debug
RUST_LOG: info,pallet=debug

- name: "Build: Production binaries"
if: ${{ inputs.production && matrix.profiles.name == 'release' }}
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,37 @@ jobs:
steps:
- name: "ACTIONS: Checkout"
uses: actions/checkout@v4
with:
submodules: recursive

- name: "Install: Set cargo path"
run: echo "/tmp/cargo/bin" >> $GITHUB_PATH

- name: "Install: Rust toolchain"
uses: dsherret/rust-toolchain-file@v1

- name: "Install: Foundry"
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: "Install: Node.js"
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: "Show: Versioning"
run: |
./scripts/gear.sh show
forge --version
- name: "Check: ethexe contracts"
run: |
cd ethexe/contracts
forge fmt --check
forge build --sizes
forge test -vvv
- name: "Check formatting: Gear"
run: ./scripts/gear.sh format gear --check

Expand Down Expand Up @@ -111,3 +135,6 @@ jobs:

- name: "Check fuzzer competence with mutation test"
run: ./scripts/check-fuzzer.sh

- name: "Check lazy pages fuzzer with smoke test"
run: ./scripts/check-lazy-pages-fuzzer.sh
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ env:

jobs:
docs:
permissions: write-all
permissions:
contents: write
runs-on: ubuntu-latest
env:
RUSTUP_HOME: /tmp/rustup_home
Expand Down
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ target-xwin/
log/
weight-dumps/
.binpath
.vscode
/.vscode
.DS_Store
.idea
.log
*.meta.txt
.terraform*
utils/runtime-fuzzer/fuzz/corpus/*
utils/runtime-fuzzer/fuzz/coverage/*
utils/**/fuzz/corpus/*
utils/**/fuzz/coverage/*
utils/**/fuzz/artifacts/*
utils/**/fuzz/fuzz/*
.ethexe.toml
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "ethexe/contracts/lib/forge-std"]
path = ethexe/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "ethexe/contracts/lib/openzeppelin-contracts"]
path = ethexe/contracts/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "ethexe/contracts/lib/openzeppelin-foundry-upgrades"]
path = ethexe/contracts/lib/openzeppelin-foundry-upgrades
url = https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades
[submodule "ethexe/contracts/lib/openzeppelin-contracts-upgradeable"]
path = ethexe/contracts/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
Loading

0 comments on commit c65c57e

Please sign in to comment.