From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bsmtp.bon.at (bsmtp.bon.at [213.33.87.14]) by mx.groups.io with SMTP id smtpd.web09.10110.1617814084686578767 for ; Wed, 07 Apr 2021 09:48:05 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: streamunlimited.com, ip: 213.33.87.14, mailfrom: quentin.schulz@streamunlimited.com) Received: from qschulz (vpn.streamunlimited.com [91.114.0.140]) by bsmtp.bon.at (Postfix) with ESMTPSA id 4FFr1D6K5vz5tlF; Wed, 7 Apr 2021 18:48:00 +0200 (CEST) Date: Wed, 7 Apr 2021 18:47:59 +0200 From: "Quentin Schulz" To: Nicolas Dechesne Cc: YP docs mailing list , Robert Berger Subject: Re: [docs] broken links Message-ID: <20210407164759.cmmr46dbsfwbkxs7@qschulz> References: <20210107165951.aqx4maful2uhopzx@qschulz> <20210407161247.p6jk2ow52scerzqa@qschulz> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 07, 2021 at 06:40:32PM +0200, Nicolas Dechesne wrote: > On Wed, Apr 7, 2021 at 6:12 PM Quentin Schulz < > quentin.schulz@streamunlimited.com> wrote: > > > On Wed, Jan 13, 2021 at 07:26:17PM +0100, Nicolas Dechesne wrote: > > > On Thu, Jan 7, 2021 at 6:08 PM Nicolas Dechesne < > > nicolas.dechesne@linaro.org> > > > wrote: > > > > > > > > > > > > > > > On Thu, Jan 7, 2021 at 5:59 PM Quentin Schulz < > > > > quentin.schulz@streamunlimited.com> wrote: > > > > > > > >> Hi Nicolas, > > > >> > > > >> On Thu, Jan 07, 2021 at 05:52:49PM +0100, Nicolas Dechesne wrote: > > > >> > hey! > > > >> > > > > >> > Robert opened a bug for a broken link in the doc, see > > > >> > https://bugzilla.yoctoproject.org/show_bug.cgi?id=14168 > > > >> > > > > >> > This is a valid bug, a regression in > > > >> > e1bcfe4d8 dev-manual: remove unused labels > > > >> > > > > >> > Unfortunately, it opens a can of worms... since it looks like the > > built > > > >> in > > > >> > linkcheck did not detect the broken links, and this is not the only > > > >> broken > > > >> > link. > > > >> > > > > >> > I ran an online link checker on > > > >> > https://docs.yoctoproject.org/dev-manual/common-tasks.html, and it > > > >> reported > > > >> > the following errors with anchors.. they look like they are > > regression > > > >> with > > > >> > the commit above.. > > > >> > > > > >> > > > >> [...] > > > >> > > > >> It'd be nice to fix the linkcheck indeed. > > > >> > > > > > > > > hmm. could it be that linkcheck only checks for 'external' links? > > > > > > > > > > in the meantime I was looking for a tool I could run locally, and found > > [1] > > > > > > It looks like it gives some good output: > > > > > > $ pytest --check-links --check-anchors --check-links-cache > > > _build/html/dev-manual/ > > > > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#new-recipe-autotooled-package> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#new-recipe-single-c-file-package-hello-world> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#new-recipe-patching-code> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#new-recipe-fetching-code> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#new-recipe-post-installation-scripts> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#new-recipe-storing-and-naming-the-recipe> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#usingpoky-extend-customimage> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#finding-the-temporary-source-code> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#understand-what-gives-your-image-size> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#combining-multiple-versions-library-files-into-one-image> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#using-a-provided-kickstart-file> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#wic-using-the-wic-plugin-interface> > > > FAILED _build/html/dev-manual/common-tasks.html > href=#wic-requirements> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#best-practices-to-follow-when-creating-layers> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#using-bbappend-files> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#incrementing-a-binary-package-version> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#automatically-incrementing-a-binary-package-revision-number> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#qemu-image-running-tests> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-debugging-viewing-logs-from-failed-tasks> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-debugging-viewing-variable-values> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-viewing-dependencies-between-recipes-and-tasks> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-viewing-task-variable-dependencies> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-debugging-taskrunning> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-debugging-bitbake> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-debugging-buildfile> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#platdev-gdb-remotedebug> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-other-debugging-others> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#dev-viewing-task-variable-dependencies> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#platdev-appdev-devshell> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#using-a-quilt-workflow> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#how-to-submit-a-change> > > > FAILED _build/html/dev-manual/common-tasks.html > > href=#figuring-out-the-mailing-list-to-use> > > > FAILED _build/html/dev-manual/qemu.html > > href=#qemu-running-under-a-network-file-system-nfs-server> > > > FAILED _build/html/dev-manual/qemu.html > > > FAILED _build/html/dev-manual/start.html > > https://autobuilder.yocto.io//pub/nightly/> > > > FAILED _build/html/dev-manual/start.html > > https://autobuilder.yocto.io//pub/nightly/> > > > FAILED _build/html/dev-manual/start.html > > href=#checkout-out-by-tag-in-poky> > > > > > > It's slow, it took 7 minutes to check for the dev-manual.. but it's a > > first > > > step. now we need to fix them! > > > > > > [1] https://github.com/jupyterlab/pytest-check-links > > > > > > > In the end, I went for htmltest to test links: > > https://github.com/wjdp/htmltest > > > > ~5min for the whole documentation. Not too bad :) > > > > Very interesting... It took 6min the first time, and I found 271 errors in > 145 documents. Then I applied your last patch, and it took 3 seconds, since > it uses the local cache.. and found 190 errors. your patch looks nice too > ;) Well... I know what's next then :) > We should review that a bit more, but looks like something we want to add > in the AB, at least for the master-next builds.. > To be fair, I said in the patch that I removed anchor links only :p I didn't check other links (though htmltest returns two 502 for the AB links). Cheers, Quentin