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: update lerna to 8.1.8 from 6.6.2 #30436

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Oct 21, 2024

  • Closes N/A

Additional details

This PR updates lerna from 6.6.2 to 8.1.8. The main reason for this update is some developers, including myself, is that there seems to be cache poisoning on the installl job which sometimes requires the use of sudo. This also seems to be happening in CI in some cases, like seen in the "Install node modules" job here where lerna handes on @packages/server`. To get this working, I:

  • installed [email protected].
  • ran lerna repair. This is the bulk of the changes in the nx.json, lerna.json, removal of @nrwl/nx-cloud package, .gitignore additions, and nx key being added to packages.
  • I also needed to pin typescript 5.4.5 since we can't cut over from importsNotUsedAsValuesin certain packages yet (removed in 5.5 and 5.6.3 got installed and wasnt noticed because cache poisoning)
  • I also updated the sync-exported-npm-with-cli to use the correct npm-packlist since we were explicitly referencing it but didn't have a version installed. The failure in the @cypress/react18 build job went unnoticed due to caching the build since no source files changed. I pinned npm-packlist and made the updates on a61cee0 (you can see v9 npm-packlist vs v6 and older npm-packlist. my guess is this was updated passively since we didnt pin it and it never failed since the cache did not bust for @cypress/react18 since we never made source file changes.

Steps to test

everything should work as expected. this is just an update to our build/repo tooling.

How has the user experience changed?

PR Tasks

@AtofStryker AtofStryker changed the title Chore/lerna update chore: update lerna to 8.1.8 from 6.6.2 Oct 21, 2024
@AtofStryker AtofStryker self-assigned this Oct 21, 2024
Copy link

cypress bot commented Oct 21, 2024

cypress    Run #57822

Run Properties:  status check passed Passed #57822  •  git commit 6b35b78201: remove console.log reference to print current package directory in sync exported...
Project cypress
Branch Review chore/lerna-update
Run status status check passed Passed #57822
Run duration 19m 29s
Commit git commit 6b35b78201: remove console.log reference to print current package directory in sync exported...
Committer AtofStryker
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 116
View all changes introduced in this branch ↗︎

Warning

No Report: Something went wrong and we could not generate a report for the Application Quality products.

…was removed in 5.5 and edit workflows and scripts to correctly scope learna packages on v8 snapshot tests [run ci]
@@ -54,5 +44,6 @@
"!{projectRoot/cypress.config.{ts,js}",
"!{projectRoot/**/*.cy.ts"
]
}
},
"nxCloudAccessToken": "ZmNlNjA0YzAtNTM1NS00MDIwLWFlMWItNWYxYzNiMjQ4N2VkfHJlYWQtb25seQ=="
Copy link
Member

Choose a reason for hiding this comment

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

@AtofStryker Should this be public? I know you just moved it...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its not supposed to be as it's legacy configuration but I figured addressing that was out of scope here. At some point we should see what we can clean up in our monorepo tools/processes.

@@ -6,6 +6,7 @@
* with this version of the binary
*/
const path = require('path')
const Arborist = require('@npmcli/arborist')
Copy link
Member

Choose a reason for hiding this comment

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

cool package name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🌲

@AtofStryker AtofStryker merged commit eed699e into develop Oct 22, 2024
82 of 85 checks passed
@AtofStryker AtofStryker deleted the chore/lerna-update branch October 22, 2024 18:46
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 24, 2024

Released in 13.15.1.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.15.1, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants