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

Add node scripts/yarn_deduplicate #142531

Closed
wants to merge 9 commits into from

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Oct 3, 2022

Adds a wrapper around yarn-deduplicate, excluding to-be-triaged node_modules that break CI. Can be run with node scripts/yarn_deduplicate and is included in the bootstrap check on CI.

Closes #125712

@jbudz jbudz added Team:Operations Team label for Operations Team release_note:skip Skip the PR/issue when compiling release notes labels Oct 3, 2022
@jbudz
Copy link
Member Author

jbudz commented Oct 4, 2022

I looked into adding autocommits but it's messy, workflow would look something like:

  1. bootstrap
  2. check for changed files
  3. yarn_deduplicate
  4. bootstrap again. necessary, removed dependencies may have pointers to other dependencies, which also need to be removed.
  5. check for changed files
  6. autocommit changes

@jbudz jbudz marked this pull request as ready for review October 4, 2022 21:10
@jbudz jbudz requested a review from a team as a code owner October 4, 2022 21:10
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

jbudz and others added 3 commits October 10, 2022 08:20
…ntegration/test_suites/task_manager/task_management·ts - task_manager scheduling and running tasks should disable and reenable task and not run it when runSoon = false (elastic#142749)

* Unskipping test

* Adding some console logs

* Comparing strings

* Setting date beforehand

* Comparing against disabled task

* Reverting unnecessary changes

* Cleanup

Co-authored-by: Kibana Machine <[email protected]>
@jbudz jbudz requested a review from a team as a code owner October 10, 2022 14:03
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
kbnUiSharedDeps-npmDll 5.0MB 5.0MB -158.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -709,7 +709,7 @@ export default function ({ getService }: FtrProviderContext) {
const task = await currentTask(scheduledTask.id);

expect(task.enabled).to.eql(true);
expect(Date.parse(task.scheduledAt)).to.eql(Date.parse(scheduledTask.scheduledAt));
expect(Date.parse(task.scheduledAt)).to.eql(Date.parse(disabledTask.scheduledAt));
Copy link
Member Author

Choose a reason for hiding this comment

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

ignore this, sorry about the ping. looks like I messed up the merge

@jbudz jbudz closed this Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatically deduplicate "overlapping" packages
4 participants