-
Notifications
You must be signed in to change notification settings - Fork 49.8k
[ci] Try to make playground e2e tests less flaky #32582
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
Conversation
Extracting portions of #32416 for easier review. This PR dedupes @babel/types to resolve to 7.26.3, for compatibility in the root workspace where eslint-plugin-react-hooks resides. I also needed to update @babel/preset-typescript in snap. The compiler changes in HIR and ReactiveScopes were needed due to types changing. Notably, Babel [added support for optional chaining assignment](babel/babel#15751) (currently [Stage 1](https://github.com/tc39/proposal-optional-chaining-assignment)), so in the latest versions of @babel/types, AssignmentExpression.left can now also be of t.OptionalMemberExpression. Given that this is in Stage 1, the compiler probably shouldn't support this syntax, so this PR updates HIR to bailout with a TODO if there is a non LVal on the lhs of an Assignment Expression. There was also a small superficial SourceLocation change needed in `InferReactiveScopeVariables` as Babel 8 changes were [accidentally released in 7](babel/babel#10746 (comment)). It doesn't affect our analysis so it seems fine to just update with the new properties. Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>
Not sure when this happened but the playground tests have gotten a little bit flaky. I suspect it's because of timeouts since it happens randomly so let's see if this helps.
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.
Thanks for trying to fix ci! I noticed that playground tests are pretty flakey as well, although runlogs I've seen show that spurious failures are due to some static fonts (e.g. fetching from localhost:3000/fonts/Optimistic_Display_W_Md.woff2 returning a 404)
- I visited Actions -> Compiler: Playground -> Action details page e.g. https://github.com/facebook/react/actions/runs/13808144588
- downloaded and unzipped runtime artifacts, then ran
yarn playwright show-trace
I've tried reproing locally but it was pretty flakey 😅
Huh actually, I just noticed that this file isn't checked into source control while other font files are.. That looks surprising
Update:
Ohh I wonder if this is related to these fonts being in the gitignore and downloaded dynamically. That could explain why I haven't seen a 404 for Source-Code-Pro-Regular.woff2
|
@mofeiZ I've tried that before too but I don't think it's the missing font files causing the error. If you look at the screenshots included in test-results.zip (in the CI build artifact) you'll see that the failing ones only show the header and everything else is blank |
|
Gonna abandon this one, doesn't seem to help |
Extracting portions of #32416 for easier review. This PR dedupes @babel/types to resolve to 7.26.3, for compatibility in the root workspace where eslint-plugin-react-hooks resides. I also needed to update @babel/preset-typescript in snap. The compiler changes in HIR and ReactiveScopes were needed due to types changing. Notably, Babel [added support for optional chaining assignment](babel/babel#15751) (currently [Stage 1](https://github.com/tc39/proposal-optional-chaining-assignment)), so in the latest versions of @babel/types, AssignmentExpression.left can now also be of t.OptionalMemberExpression. Given that this is in Stage 1, the compiler probably shouldn't support this syntax, so this PR updates HIR to bailout with a TODO if there is a non LVal on the lhs of an Assignment Expression. There was also a small superficial SourceLocation change needed in `InferReactiveScopeVariables` as Babel 8 changes were [accidentally released in 7](babel/babel#10746 (comment)). It doesn't affect our analysis so it seems fine to just update with the new properties. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32581). * #32582 * __->__ #32581 Co-authored-by: michael faith <michaelfaith@users.noreply.github.com> Co-authored-by: michael faith <michaelfaith@users.noreply.github.com>
|
Ahh gotcha, makes sense. Thanks for explaining! |
Not sure when this happened but the playground tests have gotten a little bit flaky. I suspect it's because of timeouts since it happens randomly so let's see if this helps.
Stack created with Sapling. Best reviewed with ReviewStack.