Doc sanity checks#419
Conversation
… man=skip etc. syntax
| check-man-txt: $(SRC_ALL_PAGES) | ||
| @FAILED=""; LANG=C; LC_ALL=C; export LANG; export LC_ALL; \ | ||
| for F in $(SRC_ALL_PAGES) ; do \ | ||
| test -s "$$F" && { file "$$F" | egrep '(ASCII|UTF-8|Unicode).* text' > /dev/null ; } || FAILED="$$FAILED $$F" ; \ |
There was a problem hiding this comment.
From Buildbot on OpenBSD:
make check-local
FAILED man-source sanity check for: nutdrv_qx.txt rhino.txt solis.txt upscode2.txt nutdrv_qx.txt
nutdrv_qx.txt: ISO-8859 English text
rhino.txt: ISO-8859 English text
solis.txt: ISO-8859 English text
upscode2.txt: ISO-8859 English text
nutdrv_qx.txt: ISO-8859 English text
|
Other than the ISO-8859 thing on OpenBSD, looks good. |
|
Meh, the comment shows up as outdated, but I can't figure out how to comment on that line in the latest changeset. Still applicable as of commit 74f19fc. |
Some systems detect text sources as "ISO-8859 English" text - please them.
|
Thanks @clepple, posted a fix hopefully :) Are buildbots launched manually nowadays agains select branches/PRs/commits, or are they integrated in general PR testing and reporting? |
Builds are started a minute or so after a branch is pushed to the main NUT repository (the delay allows the scheduler to combine builds for commits on the same branch). This is why we have a lot of branches that shadow the pull requests. I just updated It would be nice to be able to poll all of the NUT developers' forks, but at one point, corporate firewall policies were forcing us to rewrite the pull URL scheme from git to HTTPS. The naive rewrite rule prevents a lot of features from working properly. Now that none of the Eaton buildslaves are active, it is probably worth revisiting this. |
|
Also failing on |
Whitespace mess
|
@clepple : I have no idea how to coerce buildbots into building a PR :\ Can this only happen by making and bumping a real branch in NUT upstream git? Can that existing buildbot's config be extended with support for PRs like at https://github.com/alalek/buildbot-pullrequest-sample/blob/master/config/pr_github.py#L105 or was there some reason against that (e.g. can't spare resources for all PRs coming and going, so just processing updates of code responsibly merged into main repo)? |
|
@jimklimov yes, it only builds branches pushed to the main networkupstools/nut repository (not just master, though). Previously I was creating temporary branches for PRs after a quick sanity check. I'd rather not open that system up to any random passer-by, especially given how much further along the Travis build infrastructure is. |
|
Ok, I'll add this branch to upstream repo then, to trigger a buildbot build and see how it goes in the multiverse. |
|
@clepple : so, as far as I see all buildbot builds that ran this branch passed the "configure" phase green. But it seems only a couple of bots ran the pull_419 branch. However while the FreeBSD-x64 build at http://buildbot.networkupstools.org/public/nut/builders/FreeBSD-x64/builds/634/steps/compile/logs/stdio succeeded to find tools needed for man pages and build/check passed green, the FreeBSD-x86 one failed because it lacked both the tools to make manpages and the pre-built pages too: http://buildbot.networkupstools.org/public/nut/builders/FreeBSD-x86/builds/921/steps/compile/logs/stdio I am frankly not sure what The way it happened to do so might not be that nice, however (exposed a typo, will fix in a sec): Then I guess it is good to merge, at least syntax-wise?.. Slightly off-topic, many of recent days' runs (for master mostly) exposed a number of warnings that I don't think I've seen earlier, in vastly different amounts per distro however. The ones about code issues make sense (like comparison of 500 to an uint8_t variable), I'll hopefully take a look at those. Maybe addressing ones about "obsolete headers" (e.g. preferring termios.h to sys/termios.h nowadays) can also be a quick win to remove tens of warnings from BSD builds ;) |
…s (to see better the cases where none were available)
|
@jimklimov I think the intent was for |
Sounds reasonable, but we really should test after this change. #833 |
|
As far as this PR is concerned, the line for According to that earlier build's log at http://buildbot.networkupstools.org/public/nut/builders/FreeBSD-x86/builds/922/steps/compile/logs/stdio now the diagnostic message was emitted correctly (so the yet earlier fault was the typo fixed by recent commits): |
|
All green in both CI's |
Inspired by discussion at #418, this PR adds recipes to sanity-check generated (or "tarball-released") documentation (HTML-single, HTML-chunked, PDF, MAN). This just tests the corresponding files are not empty and their
file(libmagic) signature in C locale matches expectations.Roughly tested to do the work and not explode in builds with enabled, skipped and disabled doc scenarios; hope Travis would check this all better ;)
Tested to do report an empty PDF file as an error (
cat /dev/null > FAQ.pdf && make check).Also fixes a couple of older issues.