-
Notifications
You must be signed in to change notification settings - Fork 631
feat(rush,node-core-library): allow weighted async concurrency #4672
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
iclanton
merged 28 commits into
microsoft:main
from
aramissennyeydd:sennyeya/weighted-graph
May 5, 2024
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
919dff6
start working on weighted graph
aramissennyeydd ea5bae4
adds a new forEachWeightedAsync method to Async that uses operation w…
aramissennyeydd f16e6a9
add test cases for async weighted
aramissennyeydd cc5b1df
add a test case for weight 0
aramissennyeydd 8ed8fb8
add a header comment
aramissennyeydd dbc8402
fix-api-report
aramissennyeydd 0a1ebc5
fix weightedoperationplugin
aramissennyeydd fed6a23
add changesets
aramissennyeydd f935016
fix linting
aramissennyeydd 06c7679
move the weighting behavior into an overload
aramissennyeydd 32ad704
Apply suggestions from code review
aramissennyeydd 1ac2b95
update changeset
aramissennyeydd 75701f7
remove unnecessary tsdoc things
aramissennyeydd 56a70a6
make weight required
aramissennyeydd a04fe82
fix api report
aramissennyeydd 86ae47a
only use weights when weighted is set to true
aramissennyeydd 63857ef
add a test for weighted being disabled
aramissennyeydd 3406734
moving the comment to the public function
aramissennyeydd 80dae8f
fix linting concern
aramissennyeydd ca1ffc6
handle larger than concurrency weights
aramissennyeydd cc2a498
Apply suggestions from code review
aramissennyeydd a4bbbff
Update libraries/rush-lib/src/schemas/rush-project.schema.json
aramissennyeydd 6163ca9
address code review questions
aramissennyeydd 343ef0e
add documentation for weighted
aramissennyeydd 27ce6a1
fix api report
aramissennyeydd 84d8ce8
add weights for map too
aramissennyeydd 0598f0d
fix api report
aramissennyeydd a526067
Apply suggestions from code review
aramissennyeydd 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
10 changes: 10 additions & 0 deletions
10
common/changes/@microsoft/rush/sennyeya-weighted-graph_2024-05-01-22-51.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@microsoft/rush", | ||
"comment": "Add a `\"weight\"` property to the `\"operation\"` object in the project `config/rush-project.json` file that defines an integer weight for how much of the allowed parallelism the operation uses.", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@microsoft/rush" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/node-core-library/sennyeya-weighted-graph_2024-05-01-22-51.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/node-core-library", | ||
"comment": "Add a new `weighted: true` option to the `Async.forEachAsync` method that allows each element to specify how much of the allowed parallelism the callback uses.", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@rushstack/node-core-library" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/node-core-library/sennyeya-weighted-graph_2024-05-03-22-13.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/node-core-library", | ||
"comment": "Add a new `weighted: true` option to the `Async.mapAsync` method that allows each element to specify how much of the allowed parallelism the callback uses.", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@rushstack/node-core-library" | ||
} |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.