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

build: stop pre-compiling lint-md #55266

Merged
merged 2 commits into from
Nov 1, 2024

Conversation

RedYetiDev
Copy link
Member

IIUC there wasn't any discussion in #40180 and related PRs about why this file is precompiled locally. Similar to eslint (#54231), it always has been...

This PR stops the pre-compilation of this file, similar to #54231 with eslint.

Similarly, @dependabot will manage updates.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/actions
  • @nodejs/security-wg

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform. labels Oct 4, 2024
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.42%. Comparing base (53b1050) to head (e63b9af).
Report is 43 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #55266   +/-   ##
=======================================
  Coverage   88.42%   88.42%           
=======================================
  Files         654      654           
  Lines      187552   187552           
  Branches    36087    36087           
=======================================
+ Hits       165839   165843    +4     
- Misses      14950    14952    +2     
+ Partials     6763     6757    -6     

see 33 files with indirect coverage changes

@RedYetiDev RedYetiDev removed the windows Issues and PRs related to the Windows platform. label Oct 6, 2024
@ovflowd
Copy link
Member

ovflowd commented Oct 14, 2024

Let me see if I understood this correctly. You are adding dependabot flow for automatic updates of the lint-md dependencies and removing it from the regular GitHub actions flow?

And you also simplified the oh my fucking god (https://github.com/RedYetiDev/node/blob/main/tools/lint-md/lint-md.mjs) this is huge O.o

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

Nice cleanup of tech debt -- as far as I'm concerned, LGTM!

@RedYetiDev RedYetiDev added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 14, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 14, 2024
@nodejs-github-bot
Copy link
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/63094/

@RedYetiDev
Copy link
Member Author

Let me see if I understood this correctly. You are adding dependabot flow for automatic updates of the lint-md dependencies and removing it from the regular GitHub actions flow?

Exactly!

@ovflowd
Copy link
Member

ovflowd commented Oct 14, 2024

And you also simplified the oh my fucking god (RedYetiDev/node@main/tools/lint-md/lint-md.mjs) this is huge O.o

I know this is just due to the fact we were using Rollup, but still, something definitely unnecessary nowadays. And it is good to remove rollup.

@targos
Copy link
Member

targos commented Oct 14, 2024

Note that this probably breaks make test when run without an internet connection. But I guess that ship has already sailed when eslint/node_modules was removed.

@RedYetiDev
Copy link
Member Author

RedYetiDev commented Oct 14, 2024

Note that this probably breaks make test when run without an internet connection.

I have nothing to back this up, but I'd assume that other tests may also break without internet, regardless of this?

@RedYetiDev
Copy link
Member Author

And you also simplified the oh my fucking god (RedYetiDev/node@main/tools/lint-md/lint-md.mjs) this is huge O.o

It's not really a simplification. The .src.mjs file was moved to that file.

@targos
Copy link
Member

targos commented Oct 14, 2024

Note that this probably breaks make test when run without an internet connection.

I have nothing to back this up, but I'd assume that other tests may also break without internet, regardless of this?

Maybe, but not so long ago, we were careful not to break this use case (that's why unit tests that require internet are put in the separate test/internet folder).

@targos
Copy link
Member

targos commented Oct 14, 2024

That's also why we have lint-py-build and lint-yaml-build, which are not run automatically.

@RedYetiDev
Copy link
Member Author

RedYetiDev commented Oct 14, 2024

Okay, so, what do you recommend? IMHO this is okay as is, and if that changes, it can always be reverted?

@targos
Copy link
Member

targos commented Oct 14, 2024

I'd like to ping the people who care about this concern, but I don't remember who they are.

@richardlau
Copy link
Member

Note that this probably breaks make test when run without an internet connection. But I guess that ship has already sailed when eslint/node_modules was removed.

I'd like to ping the people who care about this concern, but I don't remember who they are.

I think that would either be @nodejs/distros (I know for example that RHEL's build system (for packages) has no internet access) and/or perhaps people in countries with potentially restricted Internet access (e.g. China).

@trivikr trivikr self-requested a review October 14, 2024 16:58
@kapouer
Copy link
Contributor

kapouer commented Oct 14, 2024

Distributions don't need those linters to build Node properly, so it's fine to not include them in the release tarball.

@RafaelGSS
Copy link
Member

I'd like to ping the people who care about this concern, but I don't remember who they are.

IIRC @aduh95

@RedYetiDev
Copy link
Member Author

Also FWIW lint-md already required internet after eslint was removed locally, as lint-md called lint-js-md.

@RedYetiDev
Copy link
Member Author

There haven't been any objections by anyone here or that has been pinged, can this land?

@nodejs-github-bot
Copy link
Collaborator

@ovflowd
Copy link
Member

ovflowd commented Nov 1, 2024

I think another approval is required.

@RedYetiDev
Copy link
Member Author

I think another approval is required.

One approval is enough as it's been over a week. However, the CI needs to pass first

@nodejs-github-bot
Copy link
Collaborator

@aduh95
Copy link
Contributor

aduh95 commented Nov 1, 2024

I think another approval is required.

One approval is enough as it's been over a week. However, the CI needs to pass first

That's correct, worth noting that @trivikr has also approved (there have been pushes since that approval, but until it's dismissed, it still counts)

@RedYetiDev
Copy link
Member Author

These CI deadlocks are terrible 😅. I'm planning to some investigation into them over the weekend. For now, can someone resume the osx-arm build? Thanks!

@nodejs-github-bot
Copy link
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/63383/

@aduh95 aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 1, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 1, 2024
@nodejs-github-bot nodejs-github-bot merged commit 5ce3d10 into nodejs:main Nov 1, 2024
55 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 5ce3d10

louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
PR-URL: nodejs#55266
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
aduh95 pushed a commit that referenced this pull request Nov 5, 2024
PR-URL: #55266
Reviewed-By: Claudio Wunder <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI. meta Issues and PRs related to the general management of the project. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants