Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Jul 25, 2025

Matches

{
name: 'Pipeline errors are reported',
code: normalizeIndent`
import useMyEffect from 'useMyEffect';
import {AUTODEPS} from 'react';
function Component({a}) {
'use no memo';
useMyEffect(() => console.log(a.b), AUTODEPS);
return <div>Hello world</div>;
}
`,
options: [
{
environment: {
inferEffectDependencies: [
{
function: {
source: 'useMyEffect',
importSpecifierName: 'default',
},
autodepsIndex: 1,
},
],
},
},
],
errors: [
{
message: /Cannot infer dependencies of this effect/,
},
],
},

#33800 conflicted with https://github.com/facebook/react/pull/33751/files#diff-97f51f298984cfcdbb6068bbe1985c312017015c9baca674d6daec451a43fe50R247

Not sure if we need to duplicate packages/eslint-plugin-react-hooks/__tests__/ReactCompilerRule-test.ts and compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRule-test.ts. Ideally we'd only have compiler/packages/eslint-plugin-react-compiler/__tests__/ReactCompilerRule-test.ts so that compiler issues don't infect the runtime pipeline.

A failing runtime pipeline blocks nightly releases.

@eps1lon eps1lon requested a review from josephsavona July 25, 2025 16:32
@eps1lon eps1lon changed the title [compiler] Fix CI [runtime] Fix CI Jul 25, 2025
@eps1lon eps1lon changed the title [runtime] Fix CI [Runtime] Fix CI Jul 25, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jul 25, 2025
Copy link
Member

@josephsavona josephsavona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, i was just looking into this too but the tests won't run locally for me

@josephsavona
Copy link
Member

Not sure if we need to duplicate packages/eslint-plugin-react-hooks/tests/ReactCompilerRule-test.ts and compiler/packages/eslint-plugin-react-compiler/tests/ReactCompilerRule-test.ts. Ideally we'd only have compiler/packages/eslint-plugin-react-compiler/tests/ReactCompilerRule-test.ts so that compiler issues don't infect the runtime pipeline.

We are in the process of consolidating these packages. The compiler and runtime are integrated so i don't think it's reasonable to expect that we can wall them off from in terms of test impact. But we can mitigate this, one approach might be to move the linter into compiler/packages/. cc @poteto @mofeiZ

@eps1lon eps1lon merged commit 19baee8 into facebook:main Jul 25, 2025
245 of 247 checks passed
@eps1lon eps1lon deleted the sebbie/07-25-_compiler_fix_ci branch July 25, 2025 19:05
github-actions bot pushed a commit that referenced this pull request Jul 25, 2025
github-actions bot pushed a commit that referenced this pull request Jul 25, 2025
github-actions bot pushed a commit to code/lib-react that referenced this pull request Jul 30, 2025
github-actions bot pushed a commit to code/lib-react that referenced this pull request Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants