-
Notifications
You must be signed in to change notification settings - Fork 710
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
Collation fetching fairness #4880
Open
tdimitrov
wants to merge
151
commits into
master
Choose a base branch
from
tsv-collator-proto-fairness
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,915
−1,015
Open
Changes from 132 commits
Commits
Show all changes
151 commits
Select commit
Hold shift + click to select a range
f4738dc
Collation fetching fairness
tdimitrov c7074da
Comments
tdimitrov 73eee87
Fix tests and add some logs
tdimitrov fa321ce
Fix per para limit calculation in `is_collations_limit_reached`
tdimitrov 96392a5
Fix default `TestState` initialization: claim queue len should be equ…
tdimitrov 0f28aa8
clippy
tdimitrov e5ea548
Update `is_collations_limit_reached` - remove seconded limit
tdimitrov 9abc898
Fix pending fetches and more tests
tdimitrov c07890b
Remove unnecessary clone
tdimitrov e50440e
Comments
tdimitrov 42b05c7
Better var names
tdimitrov 2f5a466
Fix `pick_a_collation_to_fetch` and add more tests
tdimitrov ff96ef9
Fix test: `collation_fetching_respects_claim_queue`
tdimitrov e837689
Add `collation_fetching_fallback_works` test + comments
tdimitrov 91cdd13
More tests
tdimitrov 9f2d59b
Fix collation limit fallback
tdimitrov a10c86d
Separate `claim_queue_support` from `ProspectiveParachainsMode`
tdimitrov b39858a
Fix comments and add logs
tdimitrov b30f340
Update test: `collation_fetching_prefer_entries_earlier_in_claim_queue`
tdimitrov c0f18b9
Fix `pick_a_collation_to_fetch` and more tests
tdimitrov 703ed6d
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov fba7ca6
Fix `pick_a_collation_to_fetch` - iter 1
tdimitrov d4f4ce2
Fix `pick_a_collation_to_fetch` - iter 2
tdimitrov 5f52712
Remove a redundant runtime version check
tdimitrov 6c73e24
formatting and comments
tdimitrov 752f3cc
pr doc
tdimitrov f0069f1
add license
tdimitrov 6b9f0b3
clippy
tdimitrov 5f6dcdd
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov b8c1b85
Update prdoc/pr_4880.prdoc
tdimitrov f26362f
Limit collations based on seconded count instead of number of fetches
tdimitrov d6857fc
Undo rename: is_seconded_limit_reached
tdimitrov cde28cd
fix collation tests
tdimitrov 4c3db2a
`collations_fetching_respects_seconded_limit` test
tdimitrov b2bbdfe
nits
tdimitrov e220cb4
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov 01d121e
Remove duplicated dependency after merge
tdimitrov 7b3c002
Remove `ProspectiveParachainsMode` from collator-protocol, validator-…
tdimitrov 5dffdde
Fix compilation errors in collation tests
tdimitrov 1c1744b
`is_seconded_limit_reached` uses the whole view
tdimitrov aaccab1
Fix `is_seconded_limit_reached` check
tdimitrov b1df2e3
Trace logs useful for debugging tests
tdimitrov ce3a95e
Handle unconnected candidates
tdimitrov fe3c09d
Rework pre-prospective parachains tests to work with claim queue
tdimitrov b9ab579
Fix `collation_fetches_without_claimqueue`
tdimitrov fe623bc
Test - `collation_fetching_prefer_entries_earlier_in_claim_queue`
tdimitrov d216689
Remove collations test file - all tests are moved in prospective_para…
tdimitrov ea99c7a
fixup - collation_fetching_prefer_entries_earlier_in_claim_queue
tdimitrov ee155f5
New test - `collation_fetching_considers_advertisements_from_the_whol…
tdimitrov 55b7902
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov 515a784
Update PRdoc and comments
tdimitrov 4ef6919
Combine `seconded_per_para` and `claims_per_para` from collations in …
tdimitrov bd7174f
No need to handle missing claim queue anymore
tdimitrov df6165e
Remove dead code and fix some comments
tdimitrov 4c5c271
Remove `is_seconded_limit_reached` and use the code directly due to t…
tdimitrov b0e4627
Fix comments
tdimitrov d1cf41d
`pending_for_para` -> `is_pending_for_para`
tdimitrov df3a215
Fix `0011-async-backing-6-seconds-rate.toml` - set `lookahead` to 3 o…
tdimitrov b70807b
Set `lookahead` in polkadot/zombienet_tests/elastic_scaling/0002-elas…
tdimitrov f047036
paras_now -> assigned_paras
tdimitrov 94e4fc3
Remove a duplicated parameter in `update_view`
tdimitrov 386488b
Remove an outdated comment
tdimitrov ff312c9
Fix `seconded_and_pending_for_para_in_view`
tdimitrov 88d0307
`claim_queue_state` becomes `unfulfilled_claim_queue_entries` - the b…
tdimitrov af78352
For consistency use `chain_ids` only from `test_state`
tdimitrov d636091
Limit the number of advertisements accepted by each peer for spam pro…
tdimitrov 2bb82eb
Zombienet test
tdimitrov c782058
Rearrange imports
tdimitrov 903f7f4
Newline and outdated comment
tdimitrov cefbce8
Undo `lookahead = 3` in zombienet tests
tdimitrov cb69361
Consider what's scheduled on the core when determining assignments
tdimitrov 1142a90
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov 4438349
Fix a clippy warning
tdimitrov e82c386
Update PRdoc
tdimitrov 4b2d4c5
Apply suggestions from code review
tdimitrov 1c91371
".git/.scripts/commands/fmt/fmt.sh"
be34132
Code review feedback
tdimitrov 5c7b2ac
Fix a typo in prdoc
tdimitrov 62c6473
`seconded_and_pending_for_para_in_view` looks up to the len of the cl…
tdimitrov 9e3f62d
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov a4bc21f
rerun CI
tdimitrov 6c103df
Fix zombienet test
tdimitrov 15e3a74
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov d6b35ca
Relax expected block counts for each para
tdimitrov 586b56b
Bump lookahead and decrease timeout
tdimitrov a04d480
Fix ZN pipeline - try 1
tdimitrov 13d5d15
Fix ZN pipeline - try 2
tdimitrov 86870d0
Fix ZN pipeline - try 3
tdimitrov 7b822af
Fix ZN pipeline - try 4
tdimitrov 558c82e
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov 06c0fd0
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov ade7f9b
Rename ZN test
tdimitrov 8ba2a80
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov ab70567
Handle merge conflicts
tdimitrov d24fdc1
When counting occupied slots from the claim queue consider relay pare…
tdimitrov f55390e
Add a test
tdimitrov a2093ee
Small style fixes in tests
tdimitrov ded6fb5
Fix a todo
tdimitrov cda9330
Fix `paths_to_relay_parent`
tdimitrov 505eb24
Additional test for `paths_to_relay_parent`
tdimitrov 94f573a
Simplifications
tdimitrov fa82404
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov 55e7fb2
Resolve merge conflicts
tdimitrov e27ddd4
Fix todos
tdimitrov a10c0c1
Comment
tdimitrov ee11c6a
Remove unneeded log line
tdimitrov f8e3f52
Update ZN tests and add some additional logs
tdimitrov 1c0f93a
Remove `CollationStatus::WaitingOnValidation` and fix pending collati…
tdimitrov 67321cb
Use slot based collator for 0018-shared-core-idle-parachain
tdimitrov 40cbf2f
Use slot based collator for 0019-coretime-collation-fetching fairness
tdimitrov b30c037
Remove log line assert from coretime-collation-fetching-fairness test
tdimitrov 9fbed03
Update coretime-collation-fetching-fairness ZN test to simulate a col…
tdimitrov b032c66
Remove `outer_leaves` from backing implicit view
tdimitrov eb0ca12
Restore `WaitingOnValidation` and `back_to_waiting`
tdimitrov 00fafd4
Update polkadot/node/network/collator-protocol/src/validator_side/mod.rs
tdimitrov 61e3a80
Don't fetch availability cores
tdimitrov 5b741d2
Fix a log message and remove 'outer' from comments/variable names.
tdimitrov 56eac5d
Small refactor in `seconded_and_pending_for_para_below` and `seconded…
tdimitrov 9607e1c
Comments + test name
tdimitrov 02ed2ae
Remove `activated` from `update_view` in tests
tdimitrov fe7f944
Remove `cores` from `TestState`
tdimitrov a31bf6f
Fix `ensure_seconding_limit_is_respected`
tdimitrov d251a14
newline
tdimitrov 7c39070
clippy
tdimitrov 5c3e52a
fmt
tdimitrov 2c9721e
".git/.scripts/commands/fmt/fmt.sh"
46b4d9f
Fix PRdoc
tdimitrov bf927d2
Remove `seconded_and_pending_for_para_below` and fix `seconded_and_pe…
tdimitrov d05777b
Update comment
tdimitrov f833783
new test - `claims_above_are_counted_correctly`
tdimitrov 7c807e9
more tests
tdimitrov 8f33ba0
comment
tdimitrov 1c9db10
Fix path iteration in `seconded_and_pending_for_para_above`
tdimitrov e6947b9
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov 439291a
Remove a debug println
tdimitrov 3f7691a
Refactor claims counting: project claim queue state on top of relay p…
tdimitrov b1de6ba
Remove unused code
tdimitrov 48d3f5c
Trace logs in claim_queue_state
tdimitrov 2e0d142
Fix path generation in `ensure_seconding_limit_is_respected`
tdimitrov 33e5c9f
Rework `unfulfilled_claim_queue_entries`
tdimitrov 5bc63de
`paths_from_leaves_via_relay_parent`
tdimitrov 1a195c1
Fix `fetch_next_collation_on_invalid_collation`
tdimitrov ac3e1a1
`paths_via_relay_parent` uses `block_info`
tdimitrov 31c6cdb
Fix tests
tdimitrov 3794e69
Comments
tdimitrov 3e2acd4
File header and tests for edge cases in claim_queue_state
tdimitrov 583f469
Merge branch 'master' into tsv-collator-proto-fairness
tdimitrov eac7a73
clippy
tdimitrov 3bd85d9
Apply suggestions from code review
tdimitrov 4b2a67d
comment
tdimitrov f3634e1
Small refactoring at claim_queue_state
tdimitrov 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
There are no files selected for viewing
This file contains 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 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 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we treat it as Pending at this step as well?