More CI woes
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Sep 20 03:16:57 UTC 2020
Several CI pipelines are failing for
https://github.com/dlang/phobos/pull/7638, so I moseyed to what I
thought would be a simple one, the doc build:
http://dtest.dlang.io/results/d42adbc33e821c4223291e64541d57ffbb5b3b0d/eb9e6443fd3231b8d086509d950283587ac6ee9e/build.log
I spent some time trying to make heads and tails of it. A few things
that could be improved:
* It's 2942 lines long. Most of these lines are just chaff, e.g. do we
really need to log every single cp operation, or would a "Copied all
files" line suffice?
* The word '\Werror\W' appears in the log 25 times. Although I assume
most are to be ignored, some occur in quite dire contexts, such as:
"Error parsing type 'const(void function()* function() pure nothrow
@property @nogc)': Missing ')' for 'const('". Is it possible to massage
error messages known to be benign?
* Some of the command lines being run are printed like this:
[2020-09-20 02:25:55.606583] dautotest: Running: 'timeout' '1800' 'make'
'-f' 'posix.mak' 'DMD=/home/dtest/DAutoTest/work/build/bin/dmd' '-j' '8'
'MODEL=64'
Command lines are definitely something people would want to copy and
paste from the log. They should be printed like this:
[2020-09-20 02:25:55.606583] dautotest: Running: 'timeout 1800 make -f
posix.mak DMD=/home/dtest/DAutoTest/work/build/bin/dmd -j 8 MODEL=64'
The lines that carry actual information appear like this:
[1msrc/dmd/frontend.d(142): [1;31mError: [mtemplate
[0;36m[m[1mstd[0;36m.[m[1malgorithm[0;36m.[m[1miteration[0;36m.[m[1meach[0;36m[m
cannot deduce function from argument types
[0;36m!([m[1maddGlobalIdent[0;36m)([m[1mconst[0;36m([m[1mstring[0;36m[]))[m,
candidates are:
[1m/dev/shm/dtest/work/repo/dmd/generated/linux/release/64/../../../../../phobos/std/algorithm/iteration.d(805):
[1;31m [m[0;36m[m[1meach[0;36m([m[1malias[0;36m
[m[1mfun[0;36m = [m[1m"a"[0;36m,
[m[1mRange[0;36m)([m[1mauto[0;36m [m[1mref[0;36m
[m[1mRange[0;36m [m[1mrange[0;36m)[m
with [0;36m[m[1mfun[0;36m = [m[1maddGlobalIdent[0;36m,
[m[1mRange[0;36m = [m[1mconst[0;36m([m[1mstring[0;36m[])[m
must satisfy one of the following constraints:
[0;36m [m[1misInputRange[0;36m![m[1mRange[0;36m
[m[1misStaticArray[0;36m![m[1mRange[0;36m
[m[1mhasMember[0;36m!([m[1mRange[0;36m,
[m[1m"opApply"[0;36m)[m
They have escape sequences for pretty printing with colors. Whatever
system is producing that output should detect it's not running in a
console and omit the escape sequences.
Thanks in advance!
More information about the Digitalmars-d
mailing list