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
Collect even more links from even more sources #1422
Conversation
For the tests: I did a bit of digging and found
I think with |
So the mixed content filter depends on I’m inclined to say this is out of scope for this PR as the mixed content checker didn’t really do its job too well prior to this change; and this change will let the internal and external link checkers do a way better job. |
@da2x I’m rather confused by the original code myself now. :( (I assure you that this does not happen very often.)
|
More potential pedantry: tags ≠ elements, even though the LinkCollector refers to elements as tags. |
It’s actually a URI collector and not a URL collector to be even more pedantic as it picks up on all URI schemes. Anyhow, I’m unsure how to proceed with this. How about dropping the mixed content checker altogether? The current version wouldn’t pick up on a bunch of stuff yet I can’t find any bugs relating to it. To me, this suggests that no one is using it. Update: I can’t find any mentions of it outside the docs and this repo anywhere on the web either. The mixed content checker could also be changed to check all links to the site conf base_uri domain under the http scheme. This would also pick up on internal links that could downgrade security. This wouldn’t pick up on external embeds, however. |
I’d like to keep the Would it make sense to duplicate |
I’ll change things so |
878c447
to
e543679
Compare
Current status: Everything should be working including the mixed content checker (except downgrade links but those were already not tested). The internal_link checker now handles deeply-nested relativized links and more variations of same-directory file links. I still can’t run the tests locally even when commenting out therubyracer. I’m on Fedora so gcc hardening is applied, however. I don’t want to blindly writing more tests, however. @ddfreyne, what is the failing test? I can’t tell from the output. The same tests failed in #1424.
Update: I got tests running but with a really high random failure rates from tens of tests. Trying to work out those issues now. |
So there was a number of issues higher than zero. I’ve addressed those now and added tests for new link collection sources, and changed the ilinks tests to work with URIs from the link collector. I don’t know whats with |
Yeah, the tests on CI started to become flaky and I have not investigated in detail yet. I plan on doing that soon! |
OK, one more go at this. test_nanoc_cruby24 and test_nanoc_cruby25 still not giving me any usable information. |
Whoa, |
Very odd — it seems that this particular branch fails consistently, but only on CI. I can’t make it fail locally. I created a branch to test out this weird behavior (#1433), but that branch also does not fail, and I can’t make it fail even when re-running over and over. |
Lets run this branch with trace then. TODO: Don’t merge without reverting 05c5d19 |
OK, so that gave us no new information. |
I rebased this branch again to no avail. I managed to setup a Ruby 2.5 environment locally and the tests ran just fine. @ddfreyne Any idea why the #1424 branch failed in the same way? There is really no reason why that branch should have fail. Could you try restarting the tests in that branch for comparison? Could it be that CCI just doesn’t like branches created by me? |
I’m also stumped. I’ve never seen this behavior — I cannot figure out why |
I SSH’d into the test container (which you can do with CircleCI), changed the test configuration to be verbose, and got this:
… and a handful of similar failures. FYI, I changed the
|
|
@da2x Ohhhh, |
The “test summary” is supposed to list all the failed tests, but that is clearly not quite working the way I expected… |
Thanks, trying URI::Generic instead. Seems to handle Windows paths as well so should be fine. What about test_nanoc_cruby24? |
Can you apply the changes from #1434 to your branch? That should get you actual test results! |
f975bf5
to
c2915d2
Compare
* Support area, base, blockquote, object, and source elements. * Support srcset attribute on img and source elements (for responsive images). * Support ping attribute on a and area elements. * Support poster attribute on the video element. * Support cite attribute on the blockquote element. * Support HTML+RDFa global about and resource attributes.
All green! … So there is a small behavioral difference in Ruby2.4 compared to 2.5 and 2.6 that I’ll just leave in. |
Detailed description
To do