-
Notifications
You must be signed in to change notification settings - Fork 4.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
Performance tests: Fix #28026
Performance tests: Fix #28026
Conversation
Size Change: 0 B Total Size: 1.3 MB ℹ️ View Unchanged
|
It looks like the issue is with the lock file in one of the older branches. In general, all those development dependencies should be hoisted to the root Example: one of the React Native packages overrides packages on purpose and therefore they are installed as local dependencies. |
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.
I agree that the original issue is that these node_modules shouldn't exist, that said, it seems that it doesn't hurt to make the script less prone to these errors.
If it helps then sure, but I'm afraid it's a fix that will work only one time 😄 |
it seems as written it doesn't work anyway because distclean command is not available in old branches, we should just move the command to the command instead. @gziolo what do you mean it works only one time. |
In general, we tend to avoid having different versions of the same development packages (in fact all of them, see |
Hmm right, makes sense. It's a bit confusing to keep track of which files are used from the current branch, and which ones from the ones that are being evaluated 😅 Anyway, I'll change accordingly. |
0cb43e5
to
ca61b4a
Compare
Done (and rebased). |
Going to merge (per Riad's approval here, and having applied this change) 🙂 |
Description
Purports to fix an issue that @youknowriad shared via Slack:
Specifically, the module that can't be found is
levenary
(which is required by babel).I was able to reproduce by following those steps manually. It seems like the problem is with nested
node_modules/
directories, e.g.packages/babel-preset-default/node_modules/
. Consequently, this PR adds a newdistclean
command topackage.json
to also remove those nestednode_modules/
, and uses that command in the perf test script.How has this been tested?
It hasn't really -- I'm having trouble running the perf tests on my Linux box 😬
The command to test them is
Types of changes
Bug fix