-
Notifications
You must be signed in to change notification settings - Fork 397
ci: test to check all links #652
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
Comments
p.s per #637 (comment) (and biopython/biopython.github.io/issues/62)
|
If this issue is still interesting, I may have a look at it and try to build a script. I did not understand, what was the problem with the other script, that was deleted? |
yep it's definitely useful if it's made part of the CI flow (CircleCI) |
The script is submitted here: #690 It is not completely robust and reliable, sometimes it may give false-positives, so maybe not suitable for automatic checking and CI. But it may still be useful for manual checking once in a while. |
Thanks. I'm a little behind on my own work but will check it out ASAP. |
@jorgeorpinel @dashohoxha left my comments in the PR. I think it's a good first step, but does not resolve the issue. My major concern, no one will be using it (and someone will just do a PR do delete it like happened already) if it's not integrated into CI system. |
I was actually using the deleted script each time before committing, and it always would find something to fix. But if it was only me that was using it, no problem, I can use a local copy of the script.
If it is not useful then there is no point in merging it. Although I tried it manually and it reported a lot of issues (most of them actually are redirection problems, which are not really breaking any thing). It might be useful for manual checking, especially when we restructure the hierarchy of the docs (which we are planning to do). |
why not pre-commit hook? or the yarn command we have now?
I'm not saying that it's not useful. I'm saying that there are extremely high chances that everyone will forget about it later if it's not part of the CI system and even not documented anywhere. It seems to me that it's not that big of a problem to make part of the CI system and run it on changed files? @algomaster99 could you take a look and help @dashohoxha with this? |
Does this mean that I don't need to check and fix them because the git hooks will do it automatically?
Which yarn command? The one mentioned here: https://dvc.org/doc/user-guide/contributing-docs#doc-style-guidelines-and-tips-for-java-script-and-markdown?
I would prefer if @algomaster99 takes this script and makes it part of the CI system, because I don't know anything about it. |
Yep. That's the whole point - it takes care about everything automatically before you do
I think, yes. @jorgeorpinel can address this question better I believe and concern with **.
sure, np. Please, address some point in the PR and I'll merge it, will keep this ticket open. We can update the description of the ticket to mention the script. |
@shcheklein sure I will look into it 👌🏼 |
Sorry guys, just getting back to this. I think most has been said so let's try to integrate it to CI. Making scripts for personal use is totally fine of course, but I agree they don't need to be committed if they're not something everyone should be using and integrated to git hooks and/or CI system, or at least documented somewhere as a recommendation (e.g. shell autocompletion scripts in the core repo). Off topic discussion about Prettier command
It seems to be part of the regular Prettier syntax as it's used in several usage examples here: https://prettier.io/docs/en/cli.html (The example |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a good option is to use some external tools - like Hexometer. Any other tools available that will keep monitoring the website? |
Good idea. Here's the report: The 6 bad links are:
Which are not from docs or md files. Probably related to
|
Well, Hexometer costs for checking continuously and it would only send us reports. I don't think we can integrate in the CI pipeline. I only know SAM (includes Web Link monitor) which is expensive. But probably most APM tools include this? |
I think I'm fine with that tools sending a weekly report or something as a solution. |
OK, we can close this then? Just curious about:
Cc @iAdramelk |
yep, let's close for now (one ticket less 😅 ) .... those come from the |
I can be assigned here - could add some fixes on top of #690. I'd add both pre-commit diff as well as full CI. |
@casperdcl just curious, don't you think it can be a bit overkill to support this? Hexometer detects changes once a week I suppose - more or less enough? |
Not sure it's overkill since I think it'll be quick to implement. Hexometer has false positives and doesn't provide instant feedback on a PR... |
@casperdcl kk, let's try this! |
Kewl |
We have internal and external links, mainly in our MD files, which tend to change regularly and its easy to break them accidentally for different reasons. We could probably automate this check?
Per #637 (review)
The text was updated successfully, but these errors were encountered: