Skip to content
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

[core] Fix typescript-next CI workflow #43394

Merged
merged 6 commits into from
Aug 21, 2024

Conversation

aarongarciah
Copy link
Member

@aarongarciah aarongarciah commented Aug 21, 2024

The typescript-next CircleCI workflow is failing due to a mismatch of the pnpm version installed vs the one defined in package.json engines. Example failure: https://app.circleci.com/pipelines/github/mui/material-ui/136842/workflows/2ee9d991-0807-4242-b5ae-f8911336ccb7/jobs/738034?invite=true#step-102-6

To solve the issue, we need to run corepack before pnpm gets used. Also modifying the typescript install script so we update all packages and not only the root package.json

@aarongarciah aarongarciah added the core Infrastructure work going on behind the scenes label Aug 21, 2024
@mui-bot
Copy link

mui-bot commented Aug 21, 2024

Netlify deploy preview

https://deploy-preview-43394--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 5319bac

@aarongarciah aarongarciah added the on hold There is a blocker, we need to wait label Aug 21, 2024
@aarongarciah aarongarciah marked this pull request as ready for review August 21, 2024 15:40
@aarongarciah aarongarciah requested a review from Janpot August 21, 2024 15:40
.circleci/config.yml Outdated Show resolved Hide resolved
@aarongarciah aarongarciah removed the on hold There is a blocker, we need to wait label Aug 21, 2024
@@ -352,13 +352,13 @@ jobs:
resource_class: 'medium+'
steps:
- checkout
- install_js
- run:
name: Resolve typescript version
command: |
pnpm add typescript@next -d -w
Copy link
Member

Choose a reason for hiding this comment

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

You could try with the following command. (Not sure it will work)

Suggested change
pnpm add typescript@next -d -w
pnpm update -r typescript@next

Copy link
Member Author

Choose a reason for hiding this comment

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

It "works": https://app.circleci.com/pipelines/github/mui/material-ui/136906/workflows/efb61b97-5715-455c-915f-a008c66cd81d/jobs/738078. It fails silently because this job is meant to fail silently.

The previous command also resulted in the same error: https://app.circleci.com/pipelines/github/mui/material-ui/136902/workflows/b9c1cbb1-625e-4e3d-a68b-4da986bd0108/jobs/738050?invite=true#step-107-198

Looks like the docs:typescript command is the one failing, but probably something to look into another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants