-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[node-core-library] Fix an issue where attempting to acquire multiple…
… `LockFile`s at the same time on POSIX would cause the second to immediately be acquired without releasing the first. (#4920) * Introduce a test that's broken on mac and linux for acquiring two locks on the same resource at the same time. * Rename LockFile.acquire to Lockfile.acquireAsync. * Add support for multiple locks in the same process. * Refactor @rushstack/rush-azure-storage-build-cache-plugin to delay locking the CredentialCache file until the credential has been acquired. * Apply suggestions from code review Co-authored-by: Daniel <[email protected]> * Apply suggestions from code review Co-authored-by: David Michon <[email protected]> * Refactor the retryLoop to be a simple while loop. * Update libraries/node-core-library/src/LockFile.ts Co-authored-by: David Michon <[email protected]> * Revert changes to Rush. * Rush change. --------- Co-authored-by: Daniel <[email protected]> Co-authored-by: David Michon <[email protected]>
- Loading branch information
1 parent
c6b5e1d
commit 7f838f9
Showing
9 changed files
with
221 additions
and
92 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
common/changes/@microsoft/rush/lockfile-fixes_2024-09-12-22-36.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@microsoft/rush", | ||
"comment": "", | ||
"type": "none" | ||
} | ||
], | ||
"packageName": "@microsoft/rush" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/node-core-library/lockfile-fixes_2024-09-12-06-22.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/node-core-library", | ||
"comment": "Rename `LockFile.acquire` to `Lockfile.acquireAsync`.", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@rushstack/node-core-library" | ||
} |
10 changes: 10 additions & 0 deletions
10
common/changes/@rushstack/node-core-library/lockfile-fixes_2024-09-12-06-25.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@rushstack/node-core-library", | ||
"comment": "Fix an issue where attempting to acquire multiple `LockFile`s at the same time on POSIX would cause the second to immediately be acquired without releasing the first.", | ||
"type": "patch" | ||
} | ||
], | ||
"packageName": "@rushstack/node-core-library" | ||
} |
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.