-
Notifications
You must be signed in to change notification settings - Fork 113
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
feat: ignore .md files when do requiresJenkinsRun
check
#641
Conversation
Codecov Report
@@ Coverage Diff @@
## main #641 +/- ##
=======================================
Coverage 84.09% 84.09%
=======================================
Files 37 37
Lines 4074 4081 +7
=======================================
+ Hits 3426 3432 +6
- Misses 648 649 +1
Continue to review full report at Codecov.
|
covert to draft because I still need to add more tests for this feature to keep coverage increasing. |
494fed4
to
662b459
Compare
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
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.
How often does this help, i.e., how often do PRs edit *.md
files outside of doc
?
If it does not happen a lot, I am concerned about being too permissive.
- There is no guarantee that dependencies will use
.md
for documentation only. - Even node itself does not use
.md
for documentation only. For example,test/fixtures
contains.md
files that affect tests (e.g., because they are linter test cases).
@tniessen those tests are covered by the GHA CI, I think it's safe to skip Jenkins CI for those.
Sure, but that seems even more rare than what this PR is trying to fix. For those case, it's still possible to add the |
I don't think it's a problem with the current state of the repository, but there is no guarantee that this won't change in the future.
Agreed, both false positives without this PR and false negatives with this PR are unlikely. Anyway, I am not explicitly blocking this PR; erroring on the side of caution is merely my personal preference. |
@tniessen Node core will add This patch is useful in the below scenario:
This patch's motivation is to remove this surprise: If you do think this |
This pr ignores .md files when do
requiresJenkinsRun
checkRefs: nodejs/node#43483 (comment)
cc @aduh95