Skip to content

docs(build): filter checklink's Perl noise in checkref#4108

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:docs/checkref-quiet-perl-noise
Open

docs(build): filter checklink's Perl noise in checkref#4108
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:docs/checkref-quiet-perl-noise

Conversation

@grandixximo
Copy link
Copy Markdown
Contributor

Now that link checking actually runs (#4104), the build and CI logs are flooded with Perl warnings from linuxcnc-checklink (w3c-linkchecker) itself:

Use of uninitialized value $_ in pattern match (m//) at /usr/bin/checklink line 1296.

These come from the W3C tool, not from any of our links, so they add only noise. Reported by @hansu on the #4081 CI run.

This drops those lines from the output checkref captures and prints. linuxcnc-checklink stays first in the pipe, so PIPESTATUS[0] (checked right after to distinguish "could not validate" from "found broken links") is unchanged, and the Access to 'file' URIs has been disabled sentinel that checkref greps for is preserved.

One-line change, no behavior change beyond suppressing the noise.

w3c-linkchecker prints "Use of uninitialized value ... checklink line N"
to stderr on some inputs; it is tool noise, not link results, and floods
the build/CI log. Drop those lines; checklink stays first in the pipe so
PIPESTATUS[0] is unchanged.
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

Successfully merging this pull request may close these issues.

1 participant