-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
test: add a test to check for correct internal links, and fix them #4421
test: add a test to check for correct internal links, and fix them #4421
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4421 +/- ##
=======================================
Coverage 81.37% 81.37%
=======================================
Files 243 243
Lines 29518 29518
=======================================
Hits 24021 24021
Misses 5497 5497
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
95ebbcf
to
4f263f7
Compare
Tagging the issue which was created for this: #4342 |
Because I would rather not introduce a new dependency if it doesn't buy us much. Checking for internal links is pretty simple. And checking for external links I think it should not be done as part of CI (we can sync on that offline). |
fca663f
to
a56e48e
Compare
9f82ee3
to
8f3253e
Compare
Add a helper function to only consider files in the repo. This helps if the local workspace has files coming from other sources, like the linux kernel, or uncommitted changes. Signed-off-by: Pablo Barbáchano <[email protected]>
Add a test to check that internal links in markdown files are correct. Also restrict both markdown tests to only check for files within the git repo. Signed-off-by: Pablo Barbáchano <[email protected]>
This helps when the workspace includes files not commited in the repo. Signed-off-by: Pablo Barbáchano <[email protected]>
This is convenient to add all the style checks locally Signed-off-by: Pablo Barbáchano <[email protected]>
2b34a7c
to
3307724
Compare
Add a test to check that internal links in markdown files are correct.
Also restrict both markdown tests to only check for files within the git repo.
Changes
Reason
This should help internal and external contributors run style checks quickly, which is one of the DevEx pain points we currently have.
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following
Developer Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md
.PR Checklist
CHANGELOG.md
.TODO
s link to an issue.rust-vmm
.