Skip to content

Commit

Permalink
Pre mainnet WIP (#4563)
Browse files Browse the repository at this point in the history
* Update version & CI

* Test/array indexing checkup 1 (#4560)

* Update ci.yml

* Feature/feature/versioning ser der harden 2 (#4554)

* Add some unit tests for versioning deserialization to the limits

* Clippy pass

* Better error message

* Minor fixes

* Excluded -> Included

---------

Co-authored-by: sydhds <[email protected]>

* Add versioninig key & value checks (#4552)

* Add versioninig key & value checks

* Improve error message when no prefix

---------

Co-authored-by: sydhds <[email protected]>

* Update CI, Version and genesis timestamp

* Add array indexing listing tool

* Remove array indexing in denunciation code

* Remove more array indexing

* Add more exclude patterns

* Use nom take

---------

Co-authored-by: sydhds <[email protected]>

* Fails in send_operations if get_gas_usage() > max_gas_per_block

Returning a distinct error message for ExecuteSC and CallSC operations.

Signed-off-by: Jean-François <[email protected]>

* coins spending tests (#4532)

* Buildnet WIP

* Mock Final State/Improve tests execution (#4512)

* Use a controller for final state to be able to mock it

* Fix all formatting issues.

* Use more mocks in execution tests

* Fix test nested call usage

* improve some tests execution

* Fix tests async message and compact the test of executed

* Fix more execution tests

* Fix more tests.

* Update more tests

* Finish fixing all executions tests.

* Improve naming

* add more comment

* Fix comment

* update test to check spend coins with readonly

* add coins

* check coins on rollbuy

* clippy

* update roll_buy

* delete helloworld wasm

* update test_readonly_execution

* fix tests merge

* fix test test_readonly_execution

* Update ci.yml

* Feature/feature/versioning ser der harden 2 (#4554)

* Add some unit tests for versioning deserialization to the limits

* Clippy pass

* Better error message

* Minor fixes

* Excluded -> Included

---------

Co-authored-by: sydhds <[email protected]>

* Add versioninig key & value checks (#4552)

* Add versioninig key & value checks

* Improve error message when no prefix

---------

Co-authored-by: sydhds <[email protected]>

* Update CI, Version and genesis timestamp

* add test for cancel_async_msg

* clippy

* cancel async msg check refound sender

---------

Co-authored-by: Leo-Besancon <[email protected]>
Co-authored-by: AurelienFT <[email protected]>
Co-authored-by: Sydhds <[email protected]>
Co-authored-by: sydhds <[email protected]>

* improve errors (#4567)

* tech(async_msg) : check if the target address exist

* tech(call_sc) : add check target address to call_sc_op

* check target sc address on init_call

* check target address in read only call

* fix unit tests

* remove dbg macro

* Update massa-execution-worker/src/context.rs

Co-authored-by: Damir Vodenicarevic <[email protected]>

---------

Co-authored-by: Damir Vodenicarevic <[email protected]>

* Fix tests (#4568)

* Fix CI WIP (#4569)

* Fix ws_disabled() test on windows

* fix bootstrap server port

* Fix CI local Leo

* Update scenarios_mandatories.rs

* Add CI profile argument to nextest

---------

Co-authored-by: modship <[email protected]>

* Fix test + Update lcov.info

* Add codecov.yml

* fix internal error serde (#4570)

* Release prebuilt profile (#4572)

* codegen-units set to 1 for prebuilt binaries

* Update toolchain version in CI & CD

* Update CI & Genesis

---------

Signed-off-by: Jean-François <[email protected]>
Co-authored-by: Sydhds <[email protected]>
Co-authored-by: sydhds <[email protected]>
Co-authored-by: Jean-François <[email protected]>
Co-authored-by: Modship <[email protected]>
Co-authored-by: AurelienFT <[email protected]>
Co-authored-by: Damir Vodenicarevic <[email protected]>
  • Loading branch information
7 people authored Nov 30, 2023
1 parent 6499d2e commit faebb5a
Show file tree
Hide file tree
Showing 71 changed files with 74,163 additions and 67,941 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,32 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
target: ${{ matrix.target }}
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
if: matrix.platform != 'arm64'
with:
command: build
args: --release
args: --profile release_prebuilt
- uses: actions-rs/cargo@v1
if: matrix.platform == 'arm64'
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }}
args: --profile release_prebuilt --target ${{ matrix.target }}
- name: Package
shell: bash
run: |
mkdir massa && cd massa && mkdir massa-node && mkdir massa-client
if [[ "${{ matrix.platform }}" == "arm64" ]]
then
cp -v ../target/${{ matrix.target }}/release/massa-node massa-node/massa-node
cp -v ../target/${{ matrix.target }}/release/massa-client massa-client/massa-client
cp -v ../target/${{ matrix.target }}/release_prebuilt/massa-node massa-node/massa-node
cp -v ../target/${{ matrix.target }}/release_prebuilt/massa-client massa-client/massa-client
else
cp -v ../target/release/massa-node massa-node/massa-node
cp -v ../target/release/massa-client massa-client/massa-client
cp -v ../target/release_prebuilt/massa-node massa-node/massa-node
cp -v ../target/release_prebuilt/massa-client massa-client/massa-client
fi
cp -rv ../massa-node/config massa-node/config
cp -rv ../massa-node/base_config massa-node/base_config
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
components: rustfmt
override: true
- uses: Swatinem/rust-cache@v2
Expand All @@ -55,7 +55,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
- uses: Swatinem/rust-cache@v2
with:
shared-key: "check"
Expand All @@ -80,7 +80,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
components: clippy
override: true
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
override: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -206,7 +206,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: nextest
args: run --retries 10
args: run --retries 10 --profile ci
- uses: actions-rs/cargo@v1
with:
command: clean
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
components: rustfmt
override: true
- uses: actions/checkout@v3
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.72.1
toolchain: 1.74.0
components: rustfmt
override: true
- uses: Swatinem/rust-cache@v2
Expand Down
Loading

0 comments on commit faebb5a

Please sign in to comment.