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

restore size job #3819

Closed
wants to merge 7 commits into from
Closed

Conversation

karankiri
Copy link

No description provided.

@codesandbox
Copy link

codesandbox bot commented Oct 24, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@markerikson
Copy link
Collaborator

.......

huh. Now I'm trying to remember why we (I?) apparently even renamed this in the first place :)

Oh. The job immediately fails with:


Run andresz1/size-limit-action@v1
/usr/local/bin/npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: rtk-monorepo@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.25.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^8.0.0" from [email protected]
npm ERR! node_modules/eslint-config-react-app
npm ERR!   dev eslint-config-react-app@"^7.0.1" from the root project

That might have been why? I think there might have been a conflict with our use of Yarn v3, and this action trying to install things via NPM somehow.

Could you look into that?

Thanks!

@markerikson markerikson added this to the 2.0 milestone Oct 24, 2023
@netlify
Copy link

netlify bot commented Oct 24, 2023

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 7a0b4f5
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/6538a5071154a90008bbecf8
😎 Deploy Preview https://deploy-preview-3819--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 24, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7a0b4f5:

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration

@karankiri
Copy link
Author

Just read your conversation on this thread andresz1/size-limit-action#77, I'm trying with the latest action version to see if it solves our problem, otherwise might have to use any other/custom action for this one.

@EskiMojo14
Copy link
Collaborator

no luck :(

@karankiri
Copy link
Author

Yeah, Checked this issue, Seems like only option is to create fake yarn.lock file inside packages/toolkit folder as the action version with fix is not published yet andresz1/size-limit-action#87, or to use other action for it.

@karankiri
Copy link
Author

Just pushed a fake yarn.lock to see if it fixes the issue

@markerikson
Copy link
Collaborator

Assuming it does work: could we de-commit the fake yarn.lock file after that, and instead have the workflow do a touch yarn.lock prior to running the size action? That would skip having the actual file as part of the repo

@markerikson
Copy link
Collaborator

Okay, latest error:


Run andresz1/[email protected]
/usr/local/bin/yarn install
➤ YN0000: ┌ Resolution step
Resolution step
➤ YN0000: └ Completed in 20s 508ms
➤ YN0000: ┌ Post-resolution validation
Post-resolution validation
  ➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 20s 607ms
Error: The process '/usr/local/bin/yarn' failed with exit code 1

I... unfortunately mostly know how to work around this :(

So there's two options here, I think.

One is to delete the fake yarn.lock file before we run Yarn to install deps.

The other is to swipe the hack I used over in the React-Redux repo for a CI task:

https://github.com/reduxjs/react-redux/blob/7a6e465d0f5d38a2a7827b45e593c7f9651542a7/.github/workflows/test.yml#L143

      - name: Install deps
        working-directory: ./redux-toolkit/examples/publish-ci/${{ matrix.example }}
        run: rm yarn.lock && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn add msw@latest

@karankiri
Copy link
Author

Removed the yarn.lock file from commit, doing the yarn install in a separate step with YARN_ENABLE_IMMUTABLE_INSTALLS=false, let's see how it behaves

@markerikson
Copy link
Collaborator

Looks like the action is still running into the NPM issues:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.25.0" from the root project
npm ERR!   peer eslint@">=7.0.0" from [email protected]
npm ERR!   node_modules/eslint-config-prettier
npm ERR!     dev eslint-config-prettier@"^8.3.0" from the root project
npm ERR!     dev eslint-config-prettier@"^8.3.0" from @reduxjs/[email protected]
npm ERR!     packages/toolkit
npm ERR!       @reduxjs/[email protected]
npm ERR!       node_modules/@reduxjs/toolkit
npm ERR!         workspace packages/toolkit from the root project
npm ERR!         20 more (@graphql-codegen/typescript-rtk-query, ...)
npm ERR!     1 more (@reduxjs/rtk-codemods)
npm ERR!   27 more (eslint-plugin-import, eslint-plugin-jest, ...)

@markerikson markerikson modified the milestones: 2.0, Post 2.0 Oct 29, 2023
@markerikson
Copy link
Collaborator

Superseded by later efforts, thanks!

@markerikson markerikson closed this May 9, 2024
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.

3 participants