Skip to content
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

Per module linkchecks #785

Open
srid opened this issue Feb 24, 2024 · 1 comment
Open

Per module linkchecks #785

srid opened this issue Feb 24, 2024 · 1 comment

Comments

@srid
Copy link
Contributor

srid commented Feb 24, 2024

checks.linkcheck = pkgs.runCommand "linkcheck"
{
nativeBuildInputs = [ pkgs.linkchecker pkgs.python3 ];
site = config.packages.default;
} ''
# https://linkchecker.github.io/linkchecker/man/linkcheckerrc.html
cat >>$TMPDIR/linkcheckrc <<EOF
[checking]
threads=''${NIX_BUILD_CORES:-4}
[AnchorCheck]
EOF
echo Checking $site
linkchecker -f $TMPDIR/linkcheckrc $site/
touch $out
'';

It would make haskell-flake CI a bit faster to have per module linkchecks. I don't want to have to run link checks for the other N-1 modules

linkcheck>  6 threads active,  1029 links queued, 

And it takes 3 minutes to check these links, while downloading 154.1MB of data ...

https://github.com/srid/haskell-flake/actions/runs/8031533843/job/21939954417#step:3:942

@roberth
Copy link
Member

roberth commented Mar 30, 2024

linkchecker was doing something very naive. I've switched it to lychee, which is basically instant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants