-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Tasks: general system for recognizing and executing service work #1343
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
Merged
Changes from 1 commit
Commits
Show all changes
200 commits
Select commit
Hold shift + click to select a range
df81863
import `sam-tasks` branch from old `substrate` repository
sam0x17 cbc24c7
add missing RuntimeTask defs, still getting From<Event<Self>> error
sam0x17 e7c2721
fix `RuntimeEvent: From<tasks_example::Event<Runtime>>` not satisfied
sam0x17 7f77ce2
add some missing RuntimeTasks
sam0x17 5161f60
add even _more_ missing RuntimeTasks
sam0x17 5409562
Fixes kitchensink build
gupnik 1dfc5d0
add remaining missing RuntimeTasks, cargo check green without --works…
sam0x17 f227630
add more missing RuntimeTasks
sam0x17 92b1865
re-organize traits WIP
sam0x17 5a76836
clean up WIP
sam0x17 594f21e
impls for RuntimeTask is_valid, run, and weight
sam0x17 d380b4f
WIP
sam0x17 42d85ab
collective enumerate working, some unrelated compile issue still
sam0x17 7fe5f3b
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 0822498
update syn in lockfile
sam0x17 aa964fe
indeed
kianenigma f411bd1
fix handling of runtimes without any tasks
sam0x17 359ea35
add remaining missing RuntimeTasks, `cargo test --workspace` green :b…
sam0x17 58aec8d
disable debug pretty printing so RA settles
sam0x17 197c237
add minimal mock runtime for tasks-example (not using derive_impl yet)
sam0x17 a97c7a0
add TODO for using derive_impl
sam0x17 bc66b43
add working new_test_ext() (but tasks_example stuff not in it?)
sam0x17 a656faa
add test for increment/decrement on tasks_example
sam0x17 7d371df
add coverage for increment overflowing
sam0x17 ed735c4
test task-level enumerate
sam0x17 88430c5
test RuntimeTask-level enumerate
sam0x17 512d329
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 6fd2e10
rename pallet::condition => pallet::task_condition to be consistent
sam0x17 51c2e2e
add unit tests for `#[pallet::tasks]`
sam0x17 ee472eb
Parse impl for TaskDef
sam0x17 7beb8ff
fix: tasks_list => task_list
sam0x17 f8fff6d
fix bad test
sam0x17 d2b8b47
experimental macro for testing parsing errors with patterns
sam0x17 abca627
clean up
sam0x17 cd4b90a
fix comment
sam0x17 f160f44
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 1a75ac3
scaffold for tasks expansion
sam0x17 d781b73
add parsing for `TasksDef`, gav's example syntax now parses :boom:
sam0x17 cb0b0f8
rename TaskAttrType => TaskAttrMeta
sam0x17 d3cc4d2
refactor TaskAttrMeta to use explicit instantiable struct variants
sam0x17 e615f67
even more generic
sam0x17 fbae809
refactor + detection of duplicate task indices working :boom:
sam0x17 3e92ef6
test covering duplicate task indices
sam0x17 008e3d2
add test covering missing `#[pallet::task_list(..)]`
sam0x17 c9f17fe
add test covering missing `#[pallet::task_condition(..)]`
sam0x17 a7180da
add test covering missing `#[pallet::task_index(..)]`
sam0x17 7b7c7f8
add compile errors for duplicate tasks attributes + tests
sam0x17 4d4f3f2
refactor "duplicate" => "unexpected extra" for consistency
sam0x17 3520fe3
add test covering extra `#[pallet::tasks]` attribute
sam0x17 6228074
use proper runtime name in construct_runtime tasks expansion
sam0x17 70da716
clean up tt_default_parts
sam0x17 872f879
clean up task enum parse
sam0x17 5103230
rename enumerate() => iter() to fix RA issue
sam0x17 28a5083
fix identification of Task enum + finish enumerate() => iter()
sam0x17 f750fcc
ensure that either both or none of (task_enum, tasks) is specified
sam0x17 4793c41
proper access to tasks enum
sam0x17 8fb1e08
add tests for TaskEnumDef parsing
sam0x17 50a9b2c
working simulate_manifest_dir function
sam0x17 d9cbab7
WIP
sam0x17 ccde928
fix dev mode to use parse_quote for empty weight
sam0x17 b53bb12
full-pallet parse tests working, start task-related ones
sam0x17 01c42d4
parsing fixes
sam0x17 13f9208
allow omitting `#[pallet::tasks]` attribute
sam0x17 d270adc
add assert_pallet_parses!
sam0x17 cd80bb1
add assert_pallet_parse_error! shorthand
sam0x17 a6ca40b
fix: ensure CARGO_MANIFEST_DIR is always restored
sam0x17 7387a17
add explicit drop of ManifestContext
sam0x17 bbb04d1
make drop impl safer
sam0x17 68ccb76
clean up
sam0x17 8128108
test missing task enum
sam0x17 c72ec4d
fix race condition in testing support code
sam0x17 34dc54a
fix
sam0x17 95964d9
allow omitting `#[pallet::task_enum]` if enough info is provided
sam0x17 802c9e7
allow omitting `#[pallet::tasks]` attribute
sam0x17 a2f9e33
test omitting both `#[pallet::tasks]` and `#[pallet::task_enum]`
sam0x17 7a4d740
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 cf388f6
fix task indices
sam0x17 9722741
clean up
sam0x17 b3baffb
add TasksDef::generate()
sam0x17 d9903d4
auto-generate task enum if it is not specified
sam0x17 0c35558
change auto-generated task enum name to _Task to prevent collisions
sam0x17 bee216f
add TODOs
sam0x17 cd280ab
expansion for task enum
sam0x17 13d28f1
enum expansion WIP
sam0x17 f525a41
fix handling of missing attr
sam0x17 5890ffc
include scrate on TasksDef because we need it in expansion
sam0x17 b2271f9
before switching to individual task structs
sam0x17 ff8bc5e
WIP
sam0x17 4a59c33
expansion almost working
sam0x17 80d515c
example pallet tests passing :boom:
sam0x17 cc24864
clean up
sam0x17 2195884
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 29a7ce6
upgrade syntax
sam0x17 4a9cdc1
Merge remote-tracking branch 'origin/master' into sam-tasks
sam0x17 e9901c6
add missing RuntimeTask
sam0x17 71d20df
fix warnings
sam0x17 b0302c3
fix unreachable code issue
sam0x17 e62dea3
Adds task index expansion
3ab1e57
Adds task condition expansion
6214562
Adds task function expansion
38ddea4
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
3b59b32
Adds RuntimeTask in SoloChainDefaultConfig
e1ffb15
FMT
fa7f74a
Adds License
gupnik 8933bfa
Makes clippy happy
gupnik 74b3698
Fixes minimal runtime build
gupnik 45c4a6f
Fixes bench build
gupnik 12373fe
Fixes std propagation
gupnik 123f645
Merge branch 'master' into sam-tasks
gupnik a24da39
Adds arg support in Task and updates example
gupnik 21c29aa
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik 824ae34
Fixes build
gupnik 5626284
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik 10adf61
Removes task example from kitchensik
gupnik fba3228
Fixes build
gupnik 5a94a04
Revert "Removes task example from kitchensik"
gupnik a3932f6
Removes RuntimeTask for pallet_balances
gupnik 34f26d8
Merge branch 'master' into sam-tasks
gupnik 8248087
Minor fix
gupnik 8101437
Adds setup for benchmarking
gupnik 962f2ee
Adds task weight parsing
gupnik b5734a2
Adds weight support for tasks
gupnik df37f16
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik 9d1e31b
Adds RuntimeTask in Config
gupnik 418e338
Fixes tests
gupnik 13d5d51
Fixes another test
gupnik c3705b2
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik 923e768
Fixes a todo
gupnik 835ed81
Fixes another todo
gupnik 0a53b36
Cleans up task example pallet
gupnik 6d7d9b7
Nits
gupnik da208f6
Fixes feature propagation
gupnik 140679b
Adds tests for task execution
gupnik 33cb94f
Updates UI Tests
gupnik 27fd361
Merge branch 'master' into sam-tasks
gupnik ee6bd4b
Adds RuntimeTask in mock pallet contracts
gupnik 5ccabe6
Adds RuntimeTask in a couple of missing places
gupnik 1bd2422
Minor update
gupnik 53f8270
Adds RuntimeTask in missing places
gupnik c226105
Minor update
gupnik 2b6146c
Restructures Task impl and adds a couple of UI Tests
gupnik ac1c57e
Adds more UI Tests
gupnik 16bf1af
Adds more UI Tests
gupnik 9624f0c
add docs and a few doc tests for task-related stuff
sam0x17 61a2549
Adds ability to handle multiple args in tasks and other fixes
gupnik 09cae78
Minor fix
gupnik 7ff8a2f
Merge branch 'sam-tasks' of github.com:paritytech/polkadot-sdk into s…
gupnik 93582c1
Merge branch 'master' of github.com:paritytech/polkadot-sdk into sam-…
gupnik a433805
Adds RuntimeTask in missing places
gupnik e85c1e7
Fix
gupnik e57cf98
Adds UI Test for passing case with multiple args
gupnik cdc8e3d
Adds Docs
gupnik c5c898d
Merge branch 'master' into sam-tasks
gupnik 1f677e6
".git/.scripts/commands/fmt/fmt.sh"
b199039
Minor fix
gupnik 097dd2f
Merge branch 'sam-tasks' of github.com:paritytech/polkadot-sdk into s…
gupnik 0053aee
Minor fix
gupnik e45eb4c
Minor fix
gupnik 86fb3c1
Minor fix
gupnik e2fda09
Minor fixes
gupnik 82e79ea
Updates UI Test outputs
gupnik 56fb9ba
Merge branch 'master' into sam-tasks
gavofyork 7e8b495
Update substrate/frame/examples/tasks/src/lib.rs
gupnik bc99c0d
Addresses review comments
gupnik 5b1fd64
Fixes spans
gupnik a9b7393
Fixes build
gupnik 9b6e6b7
".git/.scripts/commands/fmt/fmt.sh"
e72bea7
Merge branch 'master' into sam-tasks
gupnik 009060a
Adds PrDoc
gupnik fc1ee33
Adds missing RuntimeTask
gupnik 06fbea8
Removes RuntimeTask from configs
gupnik 9477cef
Merge branch 'master' of github.com:paritytech/polkadot-sdk into gupn…
gupnik 5ff01c5
".git/.scripts/commands/fmt/fmt.sh"
8f94772
Removes unnecessary changes
gupnik 1441500
Removes unnecessary changes
gupnik dfda32d
Fixes substrate-test-runtime build
gupnik 0c4a109
Fixes UI Test
gupnik ba685f9
".git/.scripts/commands/fmt/fmt.sh"
6b3e239
Fixes build
gupnik 04a9767
Fixes build
gupnik 86e5145
Minor fix
gupnik c13fb8e
Minor fix
gupnik 94634b4
Minor fix
gupnik c5fc023
Update substrate/frame/examples/src/lib.rs
codekitz 34a5780
Update substrate/frame/examples/tasks/src/lib.rs
codekitz 2fba261
Update substrate/frame/examples/tasks/src/lib.rs
codekitz 73cbb3f
Update substrate/frame/examples/tasks/src/lib.rs
codekitz 26eae60
Update substrate/frame/examples/tasks/src/tests.rs
codekitz 8990256
Update substrate/frame/support/src/tests/mod.rs
codekitz ef58f32
Addresses some review comments
gupnik eb69f37
Addresses more review comments
gupnik 7e496bf
Merge branch 'master' into sam-tasks
codekitz 260fd82
Updates PrDoc
gupnik 334f051
Addresses review comments
gupnik 4c906b4
Updates PrDoc
gupnik 84719c6
".git/.scripts/commands/fmt/fmt.sh"
00b515d
Moves tasks to tasks_experimental
gupnik 2fd452a
Updates PrDoc
gupnik 3c6b00a
".git/.scripts/commands/fmt/fmt.sh"
68af208
Merge branch 'master' into sam-tasks
codekitz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
allow omitting
#[pallet::tasks] attribute
- Loading branch information
commit 802c9e70decf95fbcbe60ed7d0b218b741680d48
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.