Add image checking to link crawler test#2764
Conversation
|
Ugh, worked on my machine. Will fix. :( |
|
Ah, seems like it's a side effect of the normalisation, and also a difference in behaviour between the vertx server and the serving solution used in gh pages.
|
eac7c66 to
3f0115b
Compare
|
Not sure why the build is failing here, I will let you sort it out :). |
The relative link `blog/tag/user-story/` resolved against `/faq/` to produce `/faq/blog/tag/user-story/`. Use an absolute path instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use absolute path for worldtour image to bypass incorrect imagesdir, and fix .png/.jpg extension mismatch in newsletter 60. Add missing internal images Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Single crawl pass now checks both broken links and broken images. Th crawl results are cached so both test methods reuse the same pass. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9d7df22 to
f16abae
Compare
Turns out I made typos in two of my image fixes, which is why we need automates checks. :) And my revisions to the link crawler caused it to pop up another, genuinely broken, dead link. |
|
🙈 The PR is closed and the preview is expired. |
Single crawl pass now checks both broken links and broken images. The crawl results are cached so both test methods reuse the same pass.
In order to be able to re-use the existing crawl and not crawl twice (sloooow), this needed a bit of a refactor of the current tests to allow the crawl results to be re-used.
The tests found one image which was semi-broken, but only semi – there was a
..at the start of the url, which would go out of the quarkus.io site, but all browsers normalise this to.. In fact, it's mandated by spec that they do so:So I've added this behaviour to the tests.
This PR will probably make a merge mess with #2713, but I'll see which merges first and then fix.
This PR has found 4 real dead images, so I'll have to fix those before it can merge.
The normalisation change in the link crawler, as a side effect, found another real dead link that had snuck through previous versions of the test. It turns out that http://quarkus.io/faq linked to user stories, but the link was inappropriately relative and doesn't work in a browser, even though it passed in the previous versions of the tests.