-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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(NA): assures a single version for the same dependency across the entire project #78825
Conversation
Will still need to hook it up to CI. You can actually remove the Grunt config and use |
@tylersmalley thanks for spotting it. I've changed it |
Pinging @elastic/kibana-operations (Team:Operations) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APM changes look good
Pinging @elastic/apm-ui (Team:apm) |
Why not integrate this into bootstrap? All the data necessary to do this check is available in https://github.com/elastic/kibana/blob/master/packages/kbn-pm/src/utils/validate_yarn_lock.ts and if it was integrated into bootstrap you and others wouldn't need to rely on CI to validate this, it'd be validated on every install very quickly. |
6ff1cda
to
0a869dc
Compare
3454043
to
eb919d0
Compare
I think that if we expect this check to catch actually cases of people accidentally adding duplicate dependencies we should try to give the feedback as soon as possible, and all the tools are available there to check the package.json files for all packages without any perceptible time cost. It doesn't need to look at transitive dependencies, we have all the package.json files already parsed and in memory, this would simply be a little loop we add to the validation logic. With the logic here: https://gist.github.com/spalger/dbaaef5bc1499fa27a92316b4ba758f1 We would get the following any time we bootstrap, alerting people to the problem as quickly as possible. There doesn't seem to be any good reason not to do this.
|
4290370
to
aca6579
Compare
Alright @spalger made the need changes to get this into the bootstrap a merge button away 😄 what do you think about that proposal @tylersmalley https://github.com/mistic/kibana/pull/13/files ? |
@mistic, I am fine with @spalger's proposal. This check should be short-lived as it's only to span the time until we get to a single In the long term, we should be very careful with where we place these checks. There is a tradeoff for having these checks in the bootstrap, which happens numerous times a day for each developer. I understand there is a point to faster feedback, but it shouldn't come at a high cost. |
@tylersmalley @spalger let's move on with the @spalger proposal here. I will add a note to make sure we will remove that check once we move into a single package.json |
Co-authored-by: spalger <spalger@users.noreply.github.com>
I don't think that's the case for any validation of static properties of the yarn.lock or package.json files personally. We would have to do something very wrong in order to increase the time bootstrap takes by even a second for these types of checks. @mistic I think we should also remove the |
…we move into a single package.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SIEM/Endopoint changes LGTM!
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]@kbn/optimizer bundle module count
async chunks size
distributable file count
page load bundle size
History
To update your PR or re-run it, just comment with: |
7.x: 86f628d |
That PR completes the work initiated on #78327
It clears the list of remaining dependencies with different versions across the repository.
Additionally it also introduces a script to make sure we will keep that way until we completely land our work to migrate into a single package json #76412