-
Notifications
You must be signed in to change notification settings - Fork 134
fix(genui): fix flaky api-extractor dist-rewrite race (TS2307/TS7016) #2780
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
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
617d458
fix(genui): wait for subpackage .d.ts before running tsc
upupming e640d44
Revert "fix(genui): wait for subpackage .d.ts before running tsc"
upupming 723981b
fix(genui): close TOCTOU in api-extractor lock
upupming 3fdd9d2
fix(genui): correct typo unparseable -> unparsable
upupming 404dea2
Merge branch 'main' into fix/genui-api-extractor-build-order
upupming 872617f
fix(genui): publish api-extractor lock atomically via link()
upupming ccb0845
fix(genui): drop redundant a2ui-prompt build:api to stop dist-rewrite…
upupming 47c19ee
fix(genui): build via turbo, not in api-extractor script, to end dist…
upupming 41d7c87
refactor(genui): remove now-unneeded api-extractor lock
upupming 45d7648
fix(genui): add build to a2ui api-extractor deps (root override gap)
upupming 8dedae8
fix(genui): scope api-extractor build dep to rust-free a2ui-prompt only
upupming f51a0a6
fix(genui): order a2ui-catalog-extractor api-extractor after its build
upupming 5eeb6cd
chore(changeset): update genui api-extractor changeset to match dist-…
upupming 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
|
|
||
| --- | ||
|
|
||
| Fix CI flake in `@lynx-js/genui#api-extractor` caused by a TOCTOU bug in `acquireLock` that let two concurrent invocations of `run-api-extractor.mjs` both enter the critical section; one would `rslib build` the subpackage dist while the other's tsc was reading it, producing TS7016 ("Could not find a declaration file"). The lock now waits on read/parse failures instead of deleting the file, since an unparseable lock usually means the holder is mid-write between `open(wx)` and `writeFile`. |
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
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 |
|---|---|---|
|
|
@@ -14,7 +14,8 @@ | |
| "tasks": { | ||
| "api-extractor": { | ||
| "dependsOn": [ | ||
| "//#build" | ||
| "//#build", | ||
| "build" | ||
| ], | ||
| "cache": false | ||
| }, | ||
|
|
||
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.