-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Wrong error on emails in Gitlab-CI #136
Comments
So I tested it locally by cloning your repo and running the same command and I can verify that it also works for me. Perhaps the CI server is preventing the check.
Here are some tests that you could try: https://www.sparkpost.com/blog/how-to-check-an-smtp-connection-with-a-manual-telnet-session/ This is lychees entire e-mail checking code: Lines 216 to 230 in 4d5b989
So all of the above works but lychee does not, that would probably be a case for https://github.com/reacherhq/check-if-email-exists, which is the library we are using under the hood. |
Ok, so I guess you pointed to the exact pb, I am pretty sure that the CI server does not allow SMTP output (and it does not surprise me, wouldn't that be a very nice spam vector). In a CI context I guess that this check will fail most of the time? I did not had time to check if it works on https://github.com/lycheeverse/lychee-action but I will in the next days. Do you have any idea on how to fully disable email check then for CI context? So I will close this as it's clearly not a bug! |
I've added support for skipping e-mails entirely in #137.
That's fine, though. 😊 Your issue inspired a nice discussion and now we have support for skipping e-mails. 👍 |
wow, that was fast! Thanks a lot! |
and I have just checked, the email check works fine on GitHub actions: |
Hi @mre, I am trying to implement the latest alpha version in my workflow, it seems that the option to exclude email using: ...
- wget -qO- "https://github.com/lycheeverse/lychee/releases/download/v0.5.1-alpha/lychee-v0.5.1-alpha-x86_64-unknown-linux-gnu.tar.gz" | tar -xz
- ./lychee --verbose --exclude-mail --exclude="irc://irc.debian.org:6667" --exclude="https://anonscm.debian.org" build/**/*.html |
The exclusion is working, but the parsing of email addresses happened before exclusion; and the parsing failed. @pawroman fixed that in #177 and the change got merged to |
@fauust, can you give it another shot? Just released This was made possible by #196 thanks to @lebensterben. |
Hi! |
Oh my. 🤦 Forgot to pass the option to the builder. #200 (nice, even number!) should fix this. Added a unit- and and integration test to make sure it never breaks again. |
I will test again later today! |
https://salsa.debian.org/faust/go-team.pages.debian.net/-/jobs/1543957 all good! |
Alright! Sorry that you had to hang in there for a while and thanks for the feedback. The remaining error seems to be a true 404 link, correct? Line 266 in 036145e
It should only match URLs starting with a scheme and
and perhaps a few more. |
Gave it a shot here: #201 |
Yes, sorry my message was not very clear! |
BTW, I see a diff between https://salsa.debian.org/faust/go-team.pages.debian.net/-/jobs/1543957 and https://salsa.debian.org/faust/go-team.pages.debian.net/-/jobs/1520656, is this something wanted (verbose is less verbose now)? |
Nope, that wasn't on purpose. Don't know exactly what's going on there. Tried to reproduce it locally with your settings. Everything works as expected (lots of links printed in verbose mode). Here is what I tried:
I also tried running it with Docker, and I saw that if I don't set
Could be that something changed there. |
Your guesses are correct! Salsa gitlab instance was upgrated very recently. I will make deeper tests in the next days and keep you informed if I find something interesting. Closing this as the skip email option seems OK now. |
Hi,
lychee in GitLab-CI wrongly reports error on email addresses, see:
https://salsa.debian.org/faust/go-team.pages.debian.net/-/jobs/1427125#L150-L151
Here is the yaml part:
When running it locally, no error is detected:
Am I missing something?
The text was updated successfully, but these errors were encountered: