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

chore(deps): deduplicate #29974 yarn.lock #30058

Closed

Conversation

MikeMcC399
Copy link
Contributor

Additional details

Deduplicates yarn.lock following on from Renovate PR:

using the post-installation command:

yarn run yarn-deduplicate --strategy highest

Steps to test

Execute

git clean -xfd
yarn
git diff

and confirm that yarn install does not generate any uncommitted differences.

How has the user experience changed?

Developer change only.

PR Tasks

@cypress-app-bot
Copy link
Collaborator

@jennifer-shehane
Copy link
Member

type checks are not happy ☹️

@MikeMcC399
Copy link
Contributor Author

MikeMcC399 commented Aug 20, 2024

@jennifer-shehane

type checks are not happy ☹️

I don't have an explanation for why https://app.circleci.com/pipelines/github/cypress-io/cypress/63542/workflows/bed46da9-a920-42d9-91b7-c958d69f8f2c/jobs/2633249

shows failure executing

yarn workspace cypress dtslint

attempting to install TypeScript

Installing to /root/.dts/typescript-installs/3.5...
TypeError: Class extends value #<Object> is not a constructor or null

Running the same command locally is able to install TypeScript and run the tests, although these do output lots of deprecations (see #30063) which were appearing before this PR.

I guess it might be a caching issue in CircleCI, but I can't say for sure.

@MikeMcC399
Copy link
Contributor Author

MikeMcC399 commented Aug 20, 2024

This error or similar is occurring in multiple tests. This is suspicious as it is the yarn.lock entry for tar which has been deduplicated. I still suspect that caching is responsible.

TypeError: Class extends value #<Object> is not a constructor or null
    at Object.<anonymous> (/root/cypress/node_modules/npm/node_modules/tar/lib/read-entry.js:91:4)

@MikeMcC399
Copy link
Contributor Author

@MikeMcC399 MikeMcC399 marked this pull request as draft August 20, 2024 15:17
@jennifer-shehane
Copy link
Member

Maybe this is only happening on contributor PRs for some reason because it's not happening on our internal PRs.

@jennifer-shehane
Copy link
Member

Oh, I see what you're saying about the deduping there too. That makes sense. Let me try some things.

@jennifer-shehane
Copy link
Member

@AtofStryker is going to take a look at this issue.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review August 20, 2024 15:54
@MikeMcC399
Copy link
Contributor Author

@jennifer-shehane

@AtofStryker is going to take a look at this issue.

That's very good! I haven't been able to locate the root cause. The issue would have come up anyway the next time there was a PR with any dependency changes. This PR has just ended up highlighting the issue a little earlier.

@AtofStryker
Copy link
Contributor

I can't exactly figure out what is going on here. Going to try bumping the cache in circle as well as sshing into the box to see if I can replicate

@MikeMcC399
Copy link
Contributor Author

MikeMcC399 commented Aug 22, 2024

@MikeMcC399 MikeMcC399 deleted the deduplicate-29974-yarn-lock branch August 22, 2024 14:29
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.

4 participants