-
Notifications
You must be signed in to change notification settings - Fork 394
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
scripts: link check improvements #1000
Comments
btw @shcheklein if you're happy to revert dvc.org/scripts/link-check-git-all.sh Line 2 in 64f4c48
git instead of find then it would be much easier to actually use git 's internal .gitignore logic to exclude files
|
This comment has been minimized.
This comment has been minimized.
Updated. Made the last item in the list p0, since people stopped paying attention to CI. |
The first step to solve this is to set the predictable Heroku deploy URLs on the dvc.org Heroku project. This opens up the question of which prefix to use, but I would think the example behavior of just using the project name, From there, we'll probably have to make sure the link checker is able to handle the case where a CI check runs before the deploy preview is up. The current integrations on Heroku or CircleCI may already handle this, but if so I'm unaware. Looking at the link check scripts, it should be pretty easy to adapt them to the predictable Heroku PRs once Heroku and CircleCI are set up for it. There is a quirk in the CircleCI builtin env vars Though, if that is the case, I believe we can chop up the CIRCLE_PULL_REQUEST env var which is present on every run and get the PR number from that. It just seems really weird if we'd have to do that, but the option exists in case the worst case is true. I can make the Heroku changes and get started at any time, but I think it'd prudent to hold off until I get the go-ahead in case there's a particular reason we don't already have predictable preview URLs. Would @shcheklein or @jorgeorpinel know if this is the case? |
@rogermparent consider this option (if it's technically possible):
Also, for the forked PRs- Heroku doesn't deploy them automatically, means that we can't keep CircleCI running infinitely . |
What's wrong with periodically pinging the predictable url with a timeout? |
wasting resources? deploy might take >10mins |
Quick comment: we're still getting 404 errors when new docs are added in a PR e.g. https://app.circleci.com/pipelines/github/iterative/dvc.org/5841/workflows/3fb81bb8-eb90-42f7-8bf7-6e845b278ecb/jobs/5897 (for #1705). Do we have a separate issue or hope to be able to fix that at some point? 🙂 Thanks |
@jorgeorpinel Try merging master into your branch, the GitHub Actions-based checker that fixes the issue runs off the workflow files in the PR, so PRs made before the new checker was added will need to be merged before the issue is solved in a particular PR. |
Ah makes sense, OK cool np then! |
UPDATE (by @shcheklein) - making it p0 since people stopped paying attention to CI due to the last item in the list below. We can make the last item only as a separate p0 PR.
Regarding checking for dead links:
.gitignore
-like test: links: fix failures #997 (comment))?noqa
-like test: links: fix failures #997 (comment))?yarn build
and then look for<a href>
/<ims src>
CHECK_LINKS_RELATIVE_URL
in CI automatically (instead ofhttps://dvc.org
, use predictable URLs - https://devcenter.heroku.com/articles/github-integration-review-apps#selecting-the-url-pattern) so can cross-references to newly added content in PRsThe text was updated successfully, but these errors were encountered: