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

Mainnet update 2.3 #4713

Draft
wants to merge 35 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
19d20a8
Asc message execution - requery message bytecode after each message e…
Leo-Besancon Jun 18, 2024
dadb752
fix call stack inconsistency (#4709)
Leo-Besancon Jun 21, 2024
a6b46f0
Improve async message checks (#4706)
Leo-Besancon Jun 25, 2024
bfb0e93
Fix ledger change to take into account cancelled message balance chan…
Leo-Besancon Jul 2, 2024
88823b8
Fix async msg same slot (#4718)
Leo-Besancon Jul 2, 2024
aa7efcf
Update interface_impl.rs (#4728)
Leo-Besancon Jul 16, 2024
8df8780
Merge branch 'main' into mainnet_2_3
Leo-Besancon Jul 23, 2024
5f9f2a7
Fix potential ledger keys boundaries issue (#4731)
Leo-Besancon Aug 1, 2024
736a9ed
Consistent expiry period for async message and block operations (#4722)
sydhds Aug 1, 2024
6628fff
Update ci.yml
Leo-Besancon Aug 1, 2024
1f2c6be
fmt
Leo-Besancon Aug 1, 2024
2d6e1ff
Fixe issue with fees (#4734)
damip Aug 1, 2024
261c44f
Fix amount remaining to slash 2 (#4733)
Leo-Besancon Aug 2, 2024
ac14924
Fix wrong LedgerChanges::Delete handling (#4737)
Leo-Besancon Aug 2, 2024
da539b1
Add runtime condom middleware (#4741)
Leo-Besancon Sep 23, 2024
149a6e1
Update rust version to 1.81 (#4750)
sydhds Sep 30, 2024
6990fe6
Update actions/checkout to v4 (#4751)
sydhds Oct 1, 2024
10e439a
Add typos config file (#4753)
sydhds Oct 1, 2024
b6b8fa6
Fix slot index position status (#4736)
Leo-Besancon Aug 1, 2024
8c32b89
Validate that hd_cache_size >= snip_amount (#4732)
Leo-Besancon Aug 2, 2024
2d94edd
Improve handling of HistorySearchResult for fetched executed_ops/denu…
Leo-Besancon Aug 2, 2024
d98df3b
Update ASC trigger comment (#4740)
Leo-Besancon Aug 12, 2024
8612838
Fix join error message (was inconsistent with: VM controller thread)
sydhds Sep 19, 2024
f29a0b3
Cargo fmt pass
sydhds Sep 20, 2024
cca6d89
Fix join error message (was inconsistent with: VM controller thread) …
sydhds Oct 2, 2024
2664915
Revert "Fix join error message (was inconsistent with: VM controller …
sydhds Oct 2, 2024
99ce8b7
Update tonic to version 0.12.3 and jsonrpsee to 0.24 (#4759)
sydhds Oct 8, 2024
e55fd9a
Early set operation id (#4758)
sydhds Oct 9, 2024
df74119
Fix message for ExecutionManager (#4757)
sydhds Oct 9, 2024
ca70988
Add missing default gas cost for some abis (#4761)
sydhds Oct 10, 2024
3f59fd9
Add additional verification for v & s value in evm_signature_verify (…
sydhds Oct 11, 2024
b616bda
Remove wasm_gas_costs.json and used a constant value for wasm operato…
sydhds Oct 14, 2024
ecf7565
Merge branch 'main' into mainnet_2_3
Leo-Besancon Oct 15, 2024
b691160
Cargo clippy fix
Leo-Besancon Oct 15, 2024
3833083
Add SC recursion limit (#4729)
Leo-Besancon Oct 16, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.74.1
toolchain: 1.81.0
target: ${{ matrix.target }}
override: true
- uses: Swatinem/rust-cache@v2
Expand Down
136 changes: 70 additions & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [main, staging, trying]
pull_request:
branches: [main, 'testnet_*']
branches: [main, 'mainnet_*']
types:
- opened
- reopened
Expand All @@ -22,42 +22,44 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Actions doc / www page:
# actions/checkout: https://github.com/actions/checkout
# Swatinem/rust-cache: https://github.com/Swatinem/rust-cache
# dtolnay/rust-toolchain: https://github.com/dtolnay/rust-toolchain
# codecov/codecov-action: https://github.com/codecov/codecov-action
# JamesIves/github-pages-deploy-action: https://github.com/JamesIves/github-pages-deploy-action
# typos: https://github.com/crate-ci/typos/blob/master/docs/github-action.md

jobs:
# Quick tests on each commit/PR
sanity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.74.1
toolchain: 1.81.0
components: rustfmt
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "sanity"
save-if: ${{ github.ref_name == 'main' }}
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all --check

check:
if: github.ref != 'refs/heads/staging'
needs: sanity
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.74.1
toolchain: 1.81.0
- uses: Swatinem/rust-cache@v2
with:
shared-key: "check"
Expand All @@ -66,25 +68,21 @@ jobs:
with:
version: '23.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: check
- run: cargo check

clippy:
if: github.ref != 'refs/heads/staging'
needs: sanity
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.74.1
toolchain: 1.81.0
components: clippy
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "clippy"
Expand All @@ -93,23 +91,49 @@ jobs:
with:
version: '23.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --no-deps --all-targets
- run: cargo clippy --no-deps --all-targets

security:
if: github.ref != 'refs/heads/staging'
needs: sanity
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
# - uses: actions-rust-lang/audit@v1
# name: Audit Rust Dependencies

typos:
if: github.ref != 'refs/heads/staging'
needs: sanity
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: crate-ci/typos@master

misc:
if: github.ref != 'refs/heads/staging'
needs: sanity
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.81.0
- uses: Swatinem/rust-cache@v2
with:
shared-key: "clippy"
save-if: ${{ github.ref_name == 'main' }}
- run: cargo xtask check_gas_cost_definitions

# Full cross-platform tests required to merge on main branch
full:
name: full
Expand Down Expand Up @@ -185,14 +209,12 @@ jobs:
if: runner.os == 'Linux'
run: df -h
- uses: ilammy/setup-nasm@v1
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.74.1
override: true
toolchain: 1.81.0
- uses: Swatinem/rust-cache@v2
with:
shared-key: "massa"
Expand All @@ -202,22 +224,11 @@ jobs:
version: "23.x"
include-pre-releases: false
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: install
args: cargo-nextest --locked
- uses: actions-rs/cargo@v1
with:
command: nextest
args: run --retries 10 --profile ci --all-features
- uses: actions-rs/cargo@v1
with:
command: clean
- uses: actions-rs/cargo@v1
with:
command: test
args: --doc
- uses: codecov/codecov-action@v3
- run: cargo install cargo-nextest --locked
- run: cargo nextest run --retries 10 --profile ci --all-features
- run: cargo clean
- run: cargo test --doc
- uses: codecov/codecov-action@v4
with:
files: lcov.info
fail_ci_if_error: false
Expand All @@ -233,21 +244,19 @@ jobs:
if: github.ref != 'refs/heads/staging' && github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.74.1
toolchain: 1.81.0
components: rustfmt
override: true
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: massalabs/gas-calibration
path: gas-calibration
ref: main
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: massalabs/massa-as-sdk
path: massa-as-sdk
Expand All @@ -268,15 +277,13 @@ jobs:
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: 1.74.1
toolchain: 1.81.0
components: rustfmt
override: true
- uses: Swatinem/rust-cache@v2
with:
shared-key: "doc"
Expand All @@ -285,19 +292,16 @@ jobs:
with:
version: '23.x'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --document-private-items
- uses: JamesIves/[email protected]
- run: cargo doc --no-deps --document-private-items
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: target/doc

unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: "recursive"
- name: setup_tests
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: 18
- name: Install markdown-link-check
run: npm install -g markdown-link-check
- name: Check links in markdown files
Expand Down
Loading
Loading