-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Sandboxes: Typecheck check production storybook packages #32447
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 12 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
f34122d
Create check-sandbox task
mrginglymus 4c198ed
Remove typescript version override
mrginglymus a2ac7da
Fixes
mrginglymus 6b6e9b6
Disable skipLibCheck
mrginglymus 730f279
Let @types/mdx know we're using React
mrginglymus 6fa69bd
snaps
mrginglymus f9c3d71
Merge branch 'next' into tc-sb
ndelangen cabc59e
Add circle ci config
mrginglymus 59007d8
Merge branch 'next' into tc-sb
mrginglymus f6763fb
Install sandbox dependencies first
mrginglymus d5a5789
Improve preparation of sandboxes for typechecking
mrginglymus 4051541
Merge branch 'next' into tc-sb
ndelangen 0509e56
Merge branch 'next' into tc-sb
mrginglymus 8db83ae
Add test types
mrginglymus 17d3f63
Merge branch 'next' into tc-sb
ndelangen 8a7a695
Merge branch 'next' into tc-sb
ndelangen 7c8f521
Merge branch 'next' into tc-sb
ndelangen ba719e6
Merge branch 'next' into tc-sb
ndelangen 816d794
Merge branch 'next' into pr/mrginglymus/32447
ndelangen 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 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 |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| executor: | ||
| class: medium | ||
| name: sb_node_22_classic | ||
|
|
||
| parameters: | ||
| parallelism: | ||
| type: integer | ||
|
|
||
| parallelism: << parameters.parallelism >> | ||
|
|
||
| steps: | ||
| - git-shallow-clone/checkout_advanced: | ||
| clone_options: '--depth 1 --verbose' | ||
| - attach_workspace: | ||
| at: . | ||
| - run: | ||
| name: Install sandbox dependencies | ||
| command: | | ||
| TEMPLATE=$(yarn get-template --cadence << pipeline.parameters.workflow >> --task check-sandbox) | ||
| cd sandbox/$(yarn get-sandbox-dir --template $TEMPLATE) && yarn | ||
| - run: | ||
| name: Type check Sandboxes | ||
| command: yarn task --task check-sandbox --template $(yarn get-template --cadence << pipeline.parameters.workflow >> --task check-sandbox) --no-link --start-from=never --junit | ||
| - report-workflow-on-failure: | ||
| template: $(yarn get-template --cadence << pipeline.parameters.workflow >> --task check-sandbox) | ||
| - store_test_results: | ||
| path: test-results |
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
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
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
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 |
|---|---|---|
|
|
@@ -93,6 +93,8 @@ interface TypeScriptPropsProps { | |
| } | ||
|
|
||
| export const TypeScriptProps: FC<TypeScriptPropsProps> = () => <div>TypeScript!</div>; | ||
| // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- we can't expect error as it isn't an error in 18 (development) but it is in 19 (sandbox) | ||
| // @ts-ignore not present on react 19 | ||
|
Comment on lines
+96
to
+97
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be fixed, if we do #32406 |
||
| TypeScriptProps.defaultProps = { | ||
| any: 'Any value', | ||
| string: 'A string value', | ||
|
|
||
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.
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.
This could have been implemented with the
skipTaskarray. Do you think that that is an easy adjustment to make, or difficult? If it's hard, I'm okay with it as-is.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.
Now that I understand how to use get-template, not that hard, just a lot of keyboard work.
The benefit is that, currently at least, adding type checking means conditionally modifying the sandbox slightly.
storybook/scripts/tasks/sandbox-parts.ts
Lines 223 to 225 in 4051541
There are a couple of options here, if we switch to skip-tasks:
if (!skipTasks.includes('type-check'))