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

feat: Introduce gear-tasks #4017

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ea81b9a
Initial implementation
ark0f May 30, 2024
67cde59
Add smoke test
ark0f May 30, 2024
4531d2b
Add WASM smoke test
ark0f May 30, 2024
d79a1ed
Fix `no_std` compilation
ark0f Jun 1, 2024
cfaaa8c
Fix running tasks in WASM
ark0f Jun 2, 2024
f44549e
Use `self` argument instead of manual ext obtaining
ark0f Jun 8, 2024
e12f558
`RuntimeTasks` -> `GearTasks`
ark0f Jun 8, 2024
0ad2708
Execute WASM tasks via client
ark0f Jun 11, 2024
3bdec62
Spawn `GearTasksRunner` in pallet benchmarks
ark0f Jun 11, 2024
789141b
Fix WASM compilation
ark0f Jun 12, 2024
d36995b
Read storage in benchmark test
ark0f Jun 12, 2024
36f8a6b
Initial denial of writes in tasks
ark0f Jun 12, 2024
05aa81e
Support storage access in native
ark0f Jun 14, 2024
d9c3b53
Propagate panic from thread
ark0f Jun 14, 2024
0665964
Don't allow external API usage
ark0f Jun 17, 2024
226ff64
Remove unused imports
ark0f Jun 17, 2024
286216d
Update Substrate
ark0f Jun 17, 2024
9359d1e
Copy current overlay to thread
ark0f Jun 17, 2024
89179c4
Panic in runtime API implementation in non-test env
ark0f Jun 18, 2024
6511f87
Docs for `GearTasksContextExt`
ark0f Jun 18, 2024
62bdeec
Update Substrate
ark0f Jun 18, 2024
77a95ba
Clean up deps
ark0f Jun 18, 2024
9a2cf65
Fix check for native function conversion
ark0f Jun 18, 2024
cd6415a
Merge remote-tracking branch 'origin/master' into al/sp-tasks
ark0f Jun 18, 2024
87aa4ad
Update Cargo.lock
ark0f Jun 18, 2024
af142fe
Check `GearTasksRunner` is not initialized twice
ark0f Jun 18, 2024
821cbf6
Pass the number of tasks via runtime
ark0f Jun 19, 2024
57857f8
Add unjoined task detection test
ark0f Jun 19, 2024
a24d76d
Rename types
ark0f Jun 19, 2024
c06d490
Exit from runtime mode in overlay
ark0f Jun 19, 2024
6784a9d
Fix `pallet_gear::impl_config!`
ark0f Jun 19, 2024
f63d138
Fix `make pre-commit`
ark0f Jun 19, 2024
78c7659
Add docs
ark0f Jun 19, 2024
30fcf10
Run bench in CI
ark0f Jun 19, 2024
e6f0a78
Move `futures-executor` to root Cargo.toml
ark0f Jun 19, 2024
c7a2f8b
Comment out `crates-io` check
ark0f Jun 20, 2024
47949e2
Merge remote-tracking branch 'origin/master' into al/sp-tasks
ark0f Jun 20, 2024
b42533c
Add new runtime imports
ark0f Jun 20, 2024
cfc4ad0
Run `gear-tasks` tests on other platforms
ark0f Jun 20, 2024
3e8bec8
Fix CI commands
ark0f Jun 20, 2024
f46a54f
Revert "Run `gear-tasks` tests on other platforms"
ark0f Jun 20, 2024
9a883fe
Update Substrate
ark0f Jun 24, 2024
b33ce44
Update Substrate patches
ark0f Jul 11, 2024
830a084
Merge remote-tracking branch 'origin/master' into al/sp-tasks
ark0f Jul 11, 2024
dbe4e9e
Fix after-merge mess
ark0f Jul 11, 2024
89298ea
Fix staking.rs
ark0f Jul 11, 2024
765cb2f
Uncomment crates-io check
ark0f Jul 11, 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: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ jobs:
./target/${{ matrix.profiles.name }}/gear benchmark pallet --chain=dev --pallet=pallet_gear --repeat=0 --extrinsic="read_big_state" --heap-pages=4096 --extra
# check that signal_stack_limit_exceeded_works benchmarks works
./target/${{ matrix.profiles.name }}/gear benchmark pallet --chain=dev --pallet=pallet_gear --repeat=0 --extrinsic="signal_stack_limit_exceeded_works" --heap-pages=4096 --extra
# check that gear-tasks works
./target/${{ matrix.profiles.name }}/gear benchmark pallet --chain=dev --pallet=pallet_gear --repeat=0 --extrinsic="check_gear_tasks" --heap-pages=4096 --extra
# check that check/test benchmarks works
./target/${{ matrix.profiles.name }}/gear benchmark pallet --chain=dev --pallet=pallet_gear --repeat=0 --extrinsic="check_all" --heap-pages=4096 --extra

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ jobs:
cargo +stable check --manifest-path utils/wasm-builder/test-program/Cargo.toml
cargo +stable check --manifest-path utils/cargo-gbuild/test-program/Cargo.toml --workspace --target wasm32-unknown-unknown

- name: "Check: crates-io packages"
run: cargo +stable run --release -p crates-io check
# TODO: uncomment after PR is ready to be merged, because versions inside have to be bumped
#- name: "Check: crates-io packages"
# run: cargo +stable run --release -p crates-io check

fuzzer:
runs-on: [kuberunner, github-runner-01]
Expand Down
Loading
Loading