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

Merge master -> feat/unified #1487

Merged
merged 38 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7d43d92
enforce arg kebab case & test
alyn509 Mar 4, 2024
e9b799a
Merge branch 'master' into bugfix_template
alyn509 Mar 11, 2024
8b596f3
include numbers in template name test
alyn509 Mar 11, 2024
b287580
exclude no_new_dir feature
alyn509 Mar 11, 2024
c284c1e
run llvm-cov and render outputs
laurci Mar 11, 2024
2d5b341
add action
laurci Mar 11, 2024
23555e3
add action
laurci Mar 11, 2024
93e5f2b
fix action
laurci Mar 11, 2024
c56efef
fix action
laurci Mar 11, 2024
d920b53
cleanup
andrei-marinica Mar 11, 2024
3f9676c
fix action
laurci Mar 11, 2024
f6b548c
fix action
laurci Mar 11, 2024
d41af20
fix action
laurci Mar 11, 2024
263f968
fix action
laurci Mar 11, 2024
5fe0027
fix action
laurci Mar 11, 2024
216e629
fix action
laurci Mar 11, 2024
51b9fac
fix clippy warnings
laurci Mar 12, 2024
efe7395
Merge pull request #1451 from multiversx/bugfix_template
alyn509 Mar 12, 2024
e18bf80
fix fmt
laurci Mar 12, 2024
d44ee7c
Merge branch 'master' into test-coverage
andrei-marinica Mar 12, 2024
58af3f6
Merge pull request #1471 from multiversx/test-coverage
andrei-marinica Mar 12, 2024
63fc3a8
add idea and zed editor configs to gitignore
laurci Mar 14, 2024
c092f82
Merge pull request #1477 from multiversx/gitignore-more-editors-configs
andrei-marinica Mar 14, 2024
89cf661
adder interactor in template
andrei-marinica Mar 14, 2024
34eabff
clippy fix
andrei-marinica Mar 14, 2024
0817a63
Merge pull request #1479 from multiversx/adder-interact-template
andrei-marinica Mar 14, 2024
e4b1620
sc 0.47.6
andrei-marinica Mar 14, 2024
faa9941
Cargo.lock update
andrei-marinica Mar 14, 2024
835ac02
template fix: remove path from interactor Cargo.toml
andrei-marinica Mar 15, 2024
54789fe
sc 0.47.7
andrei-marinica Mar 15, 2024
b2bf499
Cargo.lock update
andrei-marinica Mar 15, 2024
f3901a0
Merge pull request #1480 from multiversx/release-47-6
andrei-marinica Mar 15, 2024
1602097
removed deprecation from old testing framework
andrei-marinica Mar 19, 2024
9f233b4
vec_mapper set has mut ref
alyn509 Mar 19, 2024
55c8528
Merge pull request #1485 from multiversx/vec-mapper-set-fix
alyn509 Mar 19, 2024
bb8c7a3
Merge branch 'master' into whitebox-legacy-undeprecate
andrei-marinica Mar 19, 2024
cf7ef6b
Merge pull request #1483 from multiversx/whitebox-legacy-undeprecate
andrei-marinica Mar 20, 2024
9ebc192
Merge branch 'master' into feat/unified
andrei-marinica Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 56 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

cargo install wasm-opt
cargo install twiggy

cargo install --path framework/meta
sc-meta install mx-scenario-go --tag v2.1.0-alpha

Expand All @@ -46,8 +46,7 @@ jobs:
- name: Run the wasm tests
env:
RUSTFLAGS: ""
run:
cargo test --features multiversx-sc-scenario/run-go-tests
run: cargo test --features multiversx-sc-scenario/run-go-tests

- name: Generate the contract report
env:
Expand Down Expand Up @@ -108,8 +107,8 @@ jobs:
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Contract comparison'
comment-author: "github-actions[bot]"
body-includes: "Contract comparison"

- name: Create or update the report comment
uses: peter-evans/create-or-update-comment@v2
Expand All @@ -120,6 +119,57 @@ jobs:
body: ${{ steps.template.outputs.result }}
edit-mode: replace

test_coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-12-11

- name: Install prerequisites
run: |
rustup component add llvm-tools-preview
dirname $(find ~/.rustup -name llvm-cov) >> $GITHUB_PATH

echo $(dirname $(find ~/.rustup -name llvm-cov))

# which llvm-cov
# which llvm-profdata

- name: Run tests and generate report
env:
RUSTFLAGS: ""
run: |
./tests-coverage.sh

- name: Upload the report
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage.md

- name: Find the comment containing the report
id: fc
uses: peter-evans/find-comment@v2
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: "Coverage Summary"

- name: Create or update the report comment
uses: peter-evans/create-or-update-comment@v2
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body-file: ./coverage.md
edit-mode: replace

rust_test:
name: Rust tests
runs-on: ubuntu-latest
Expand All @@ -132,8 +182,7 @@ jobs:
- name: Run the rust tests
env:
RUSTFLAGS: ""
run:
cargo test
run: cargo test

clippy_check:
name: Clippy linter check
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@ sdk/**/Cargo.lock
tools/**/Cargo.lock
vm/**/Cargo.lock

# Profiler outputs
*.profraw
*.profdata
*.coverage

# These are backup files generated by rustfmt
**/*.rs.bk

# VSCode config
# Editors config
.vscode
.zed
.idea

# Others
my-vm-tests.sh
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ They are:
- `multiversx-chain-scenario-format`, in short `scenario-format`, scenario JSON serializer/deserializer, 1 crate.
- `multiversx-sdk`, in short `sdk`, allows communication with the chain(s), 1 crate.


## [sc 0.47.7] - 2024-03-15
- Template bugfix (concerning the interactor).

## [sc 0.47.6] - 2024-03-14
- Template naming bugfix, regarding numbers in the project name.
- Added the interactor to the adder template.

## [sc 0.47.5] - 2024-03-08
- Fixed an issue with `MapMapper` when reading from another contract.
- Got rid of nightly feature `maybe_uninit_uninit_array`/`maybe_uninit_array_assume_init`.
Expand Down
49 changes: 29 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ members = [
"sdk/scenario-format",

"tools/mxpy-snippet-generator",
"tools/coverage-renderer",

"vm",

Expand Down
4 changes: 2 additions & 2 deletions contracts/benchmarks/large-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ publish = false
path = "src/large_storage.rs"

[dependencies.multiversx-sc]
version = "0.47.5"
version = "0.47.7"
path = "../../../framework/base"

[dev-dependencies.multiversx-sc-scenario]
version = "0.47.5"
version = "0.47.7"
path = "../../../framework/scenario"
2 changes: 1 addition & 1 deletion contracts/benchmarks/large-storage/meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.47.5"
version = "0.47.7"
path = "../../../../framework/meta"
default-features = false
6 changes: 3 additions & 3 deletions contracts/benchmarks/large-storage/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contracts/benchmarks/large-storage/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ overflow-checks = false
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.47.5"
version = "0.47.7"
path = "../../../../framework/wasm-adapter"

[workspace]
Expand Down
4 changes: 2 additions & 2 deletions contracts/benchmarks/mappers/benchmark-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ publish = false
path = "src/lib.rs"

[dependencies.multiversx-sc]
version = "0.47.5"
version = "0.47.7"
path = "../../../../framework/base"

[dev-dependencies.multiversx-sc-scenario]
version = "0.47.5"
version = "0.47.7"
path = "../../../../framework/scenario"
4 changes: 2 additions & 2 deletions contracts/benchmarks/mappers/linked-list-repeat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ path = "../benchmark-common"


[dependencies.multiversx-sc]
version = "0.47.5"
version = "0.47.7"
path = "../../../../framework/base"

[dev-dependencies.multiversx-sc-scenario]
version = "0.47.5"
version = "0.47.7"
path = "../../../../framework/scenario"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ publish = false
path = ".."

[dependencies.multiversx-sc-meta]
version = "0.47.5"
version = "0.47.7"
path = "../../../../../framework/meta"
default-features = false

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ overflow-checks = false
path = ".."

[dependencies.multiversx-sc-wasm-adapter]
version = "0.47.5"
version = "0.47.7"
path = "../../../../../framework/wasm-adapter"

[workspace]
Expand Down
Loading
Loading