-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: Ignore transient tap test directories #350
Conversation
@@ -155,7 +155,9 @@ module.exports = { | |||
'/LICENSE*', | |||
'/CHANGELOG*', | |||
], | |||
ignorePaths: [], | |||
ignorePaths: [ |
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'll let @lukekarrys weigh in here since it's surprising to me coming in fresh on this that we don't have anything in here already.
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.
@rotu the current pattern is to put these paths in lib/content/gitignore
and leave ignorePaths
as a config to be set by consumers. can you make that change? apologies that this is not discoverable! 🙇🏼
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.
No worries. I can add the breadcrumbs that would have retroactively helped me. The lib/content/gitignore
file is clearly a template of some sort. What instantiates this template?
EDIT: nvm found it: https://github.com/npm/template-oss/blob/2a5e18677f6de45d903b7d06ec7780c7d31b6963/lib/util/template.js
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.
Also, any reason why allowPaths
and distPaths
are inlined in this file but ignorePaths
is not?
CI is goofy cause of a new |
That only explains the node@14 errors. This is curious to me: https://github.com/npm/template-oss/actions/runs/6103503295/job/16623491287?pr=350
I don't expect this since:
|
npm has a special check it does if it detects you are installing npm globally, strict engines checks are done then. This started in npm 7 cf npm/cli#3731 |
This is how we've been fixing the ci for packages that didn't get an engines bump to match npm 10 npm/read-package-json#190 |
That's a major wtf! There should definitely more specific error, especially since the error is the exact same one packages can no longer enforce: |
Yeah after many rfc calls it was decided that package maintainers should not be able to specify things like that, only the consumers. npm is a special snowflake because it IS what you use to install packages, so if it ends up installing a version that doesn't work in your current node, you can't run it to fix the problem. |
Back to a draft to figure out interaction with tapjs/tapjs@a5dc854 |
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.
sigh I'm gonna miss using git status
to find where TAP_SAVE_FIXTURE
left its stuff for a given test but this is the right choice.
@rotu I can't land this cause of conflicts, and they're the kind I can't even resolve in the GitHub ui :/ |
@rotu can you try fetching the latest |
Rebased in #364 once @lukekarrys approves it'll auto merge. |
Running tests causes a lot of file churn. Although (usually) ephemeral, these files cause high CPU usage and can make developer tools difficult to use. These files also make linting fail. Now the files will be ignored by git and by eslint. ## References Fixes #348 Fixes #359 This is a rebase of #350 since it had yet another conflict. --------- Authored-by: Dan <[email protected]>
Oops! I was going to do that, but thank you for the favor, @wraithgar! |
Running tests causes a lot of file churn. Although (usually) ephemeral, these files cause high CPU usage and can make developer tools difficult to use. These files also make linting fail.
Now the files will be ignored by git and by eslint.
References
Fixes #348
Fixes #359