Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
847fb3c
initial version of the script
sergiuosvat Nov 19, 2025
ebd8db3
Merge branch 'rc/beta' of https://github.com/multiversx/mx-sovereign-…
sergiuosvat Nov 19, 2025
4474c88
fix clippy in wrapper
sergiuosvat Nov 19, 2025
70248e6
refactored script
sergiuosvat Nov 19, 2025
02060be
refactor interactor state
sergiuosvat Nov 19, 2025
ceab10a
test actions
sergiuosvat Nov 20, 2025
bab9cb3
test actions commit
sergiuosvat Nov 20, 2025
bcc518c
update actions
sergiuosvat Nov 20, 2025
9444e21
bump gas for actions
sergiuosvat Nov 20, 2025
5b82e9f
update actions
sergiuosvat Nov 20, 2025
fd4e3ac
try to start the chain sims in actions
sergiuosvat Nov 20, 2025
94685cb
test action fix
sergiuosvat Nov 20, 2025
5ed339e
revert back to script based chain sim
sergiuosvat Nov 20, 2025
420685a
try a better cleanup
sergiuosvat Nov 21, 2025
d0cdb30
removed docker cleanup
sergiuosvat Nov 21, 2025
f70def6
try to run a single test
sergiuosvat Nov 21, 2025
d827a10
try a single test in actions
sergiuosvat Nov 21, 2025
26c5656
increase gas in template deploy
sergiuosvat Nov 21, 2025
3d86d32
increase esdt safe template gas more
sergiuosvat Nov 21, 2025
c38b60f
increase deploy gas for chain factory
sergiuosvat Nov 24, 2025
517b0fc
bump up deploy phase one gas
sergiuosvat Nov 24, 2025
8ec5b03
debug storage
sergiuosvat Nov 24, 2025
8825736
debug sov forge storage
sergiuosvat Nov 24, 2025
84f90cf
debug logs
sergiuosvat Nov 24, 2025
47ce8fb
add deploy logs
sergiuosvat Nov 24, 2025
09afe3d
increase gas
sergiuosvat Nov 24, 2025
9980750
bump up gas in the actual deploy phase
sergiuosvat Nov 24, 2025
75d824b
fix gas for phase one
sergiuosvat Nov 24, 2025
75e5b7a
bump up deploy phase two
sergiuosvat Nov 24, 2025
ec6b35d
bump phase two gas
sergiuosvat Nov 24, 2025
533f04b
bump phase two gas
sergiuosvat Nov 24, 2025
d83259d
run all tests
sergiuosvat Nov 24, 2025
9d649f2
remove no capture
sergiuosvat Nov 24, 2025
a842470
Merge branch 'rc/beta' of https://github.com/multiversx/mx-sovereign-…
sergiuosvat Nov 26, 2025
13ca947
Merge branch 'refactor-interactor-logic' of https://github.com/multiv…
sergiuosvat Nov 26, 2025
b80c653
fixes after merge
sergiuosvat Nov 26, 2025
808b22a
Merge pull request #551 from multiversx/refactor-interactor-setup
sergiuosvat Nov 26, 2025
9df5552
Merge pull request #1 from sergiuosvat/refactor-interactor-setup
sergiuosvat Nov 26, 2025
4d1b153
Merge branch 'refactor-interactor-logic' into refactor-interactor-logic
sergiuosvat Nov 26, 2025
4b18ee1
Merge pull request #2 from multiversx/refactor-interactor-logic
sergiuosvat Nov 26, 2025
864a9a9
add cleanup in actions
sergiuosvat Nov 26, 2025
69bac11
add improved logging
sergiuosvat Nov 27, 2025
91b7c0b
try test summary
sergiuosvat Dec 2, 2025
d48b6e5
try again interactor summary
sergiuosvat Dec 2, 2025
0a1feaa
improved cleanup and lock ports
sergiuosvat Dec 4, 2025
06c6897
update max concurency and some cleanup
sergiuosvat Dec 4, 2025
238f523
improved cleanup maybe
sergiuosvat Dec 5, 2025
62b9b87
update max concurency in second suite as well
sergiuosvat Dec 5, 2025
95e75dc
fix possible timeout issue
sergiuosvat Dec 5, 2025
da7e295
Merge pull request #560 from sergiuosvat/refactor-interactor-logic
sergiuosvat Dec 8, 2025
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
10 changes: 10 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# direnv configuration for automatic cargo wrapper activation
# Install direnv: https://direnv.net/
# Then run: direnv allow

# Add interactor scripts to PATH (so our cargo wrapper intercepts cargo test)
PATH_add interactor/scripts

# Set workspace root
export WORKSPACE_ROOT="$(pwd)"

80 changes: 79 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,84 @@ jobs:
with:
rust-toolchain: 1.87
coverage-args: --ignore-filename-regex='/.cargo/git' --output ./coverage.md
enable-interactor-tests: true
enable-interactor-tests: false
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

interactor-tests:
name: Interactor Tests
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.87
target: wasm32-unknown-unknown

- name: Install prerequisites
run: |
cargo install multiversx-sc-meta

- name: Build contracts and generate proxies
run: |
sc-meta all build
sc-meta all proxy

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Setup Docker
run: |
sudo systemctl start docker
docker pull multiversx/chainsimulator

- name: Run first interactor test suite
timeout-minutes: 60
env:
PATH: ${{ github.workspace }}/interactor/scripts:${{ env.PATH }}
WORKSPACE_ROOT: ${{ github.workspace }}
MAX_TEST_CONCURRENCY: "2"
GITHUB_ACTIONS: "true"
run: |
cargo test --package rust-interact --test complete_flow_tests --all-features

- name: Cleanup containers after first test suite
if: always()
run: |
# Clean up containers from first test suite before starting second
CONTAINERS=$(docker ps -a --filter "name=chain-sim-" --format "{{.ID}}")
if [ -n "$CONTAINERS" ]; then
echo "Cleaning up containers: $CONTAINERS"
docker stop $CONTAINERS
docker rm -f $CONTAINERS
fi
# Wait a moment for ports to be released
sleep 2

- name: Run second interactor test suite
timeout-minutes: 60
env:
PATH: ${{ github.workspace }}/interactor/scripts:${{ env.PATH }}
WORKSPACE_ROOT: ${{ github.workspace }}
MAX_TEST_CONCURRENCY: "2"
GITHUB_ACTIONS: "true"
run: |
cargo test --package rust-interact --test mvx_esdt_safe_tests --all-features

- name: Cleanup chain simulator containers
if: always()
run: |
# Remove only the per-test chain simulator containers created by the wrapper
CONTAINERS=$(docker ps -a --filter "name=chain-sim-" --format "{{.ID}}")
if [ -n "$CONTAINERS" ]; then
echo "Final cleanup of containers: $CONTAINERS"
docker stop $CONTAINERS
docker rm -f $CONTAINERS
fi

41 changes: 0 additions & 41 deletions Cargo.lock

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

Loading
Loading