Open toelli-msft opened 4 years ago
Looks like this is currently not possible: https://github.com/diku-dk/futhark/blob/7ae2f47a57a9e6a74ebcaaedd73a0309efba4216/src/Futhark/CLI/Misc.hs#L22-L28
I can definitely add this if it's considered useful, although it won't be available until the next release. But don't most CI tools normally hide the output of commands that succeed?
I can definitely add this if it's considered useful, although it won't be available until the next release
I think it would be pretty useful to have in general, unless there's another workaround I'm not seeing.
But don't most CI tools normally hide the output of commands that succeed?
Yes, I wasn't quite precise enough. I only care that there are a lot of unused variable warnings when there is a failure. Then I have to scroll through a lot of warnings to see the error message. We also run the exact same command locally when we're developing and the problem applies there too. Is there any other solution you can think of that would be more appropriate?
It does not print warnings when there is a type error.
I think a --no-warnings
flag or similar for futhark check
might be generally useful, so I'll probably add it.
It does not print warnings when there is a type error.
The troublesome cases are the ones where one file in the test suite produces errors but most of the other files don't, but do produce a lot warnings.
I think a --no-warnings flag or similar for futhark check might be generally useful, so I'll probably add it.
Great! In the meantime I may just suppress all output from successful invocations of Futhark.
Currently we use
futhark check
in our CI pipeline to check that the Futhark code we emit is at least type-correct. Because it's generated code we end up with quite a lot of unused variable warnings. Is it possible to suppress them?futhark check --help
doesn't seem very promising: