Skip to content

Speed up npm install step on Linux ARM runners #1098

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mediremi
Copy link
Contributor

npm ci typically takes ~10s, but for ubuntu-24.04-arm it can take up to 10 minutes.

By using npm i --timing, I managed to pinpiont the source of the issue to analysis/reanalyze/examples/deadcode and analysis/reanalyze/examples/termination.

These folders were using ReScript v10, and for some reason its postinstall script takes much longer on Linux ARM.

Updating their version of ReScript to 11.1.4 fixed the issue and npm ci is as fast as for other runners.

@mediremi
Copy link
Contributor Author

}

@genType
let testForwardRef = React.forwardRef(makeWithRef)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't able to port any of the React.forwardRef examples to v11, but since it's always been discouraged and with React v19 allowing refs as props anyway I guess it's fine

6 parseListO$loop<f>: [+Parser.next; _ || switch f {some: parseListO$loop<f:f>, none: _}]
7 testAlwaysReturnNone: alwaysReturnNone
8 thisMakesNoProgress: None; [_ || +Parser.next; Some]
1 alwaysReturnNone: [_ || None]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is termination analysis being broken/different for v11 expected?

@mediremi mediremi marked this pull request as ready for review May 20, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant