-
Notifications
You must be signed in to change notification settings - Fork 73
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
Make dylan-compiler exit status reflect warnings #1373
Comments
Dunno if it's overly complex, but we could use the low three bits of the exit status to indicate
|
I usually just ignore non-serious warnings in the first instance, e.g there are some when compiling the standard library, and also 'binding defined but not referenced or exported' happens all the time during development. But I find serious warnings mean that the program will crash. So it would definitely be useful to change the exit status on serious warnings, then I could do |
And since Open Dylan has the property that even serious warnings don't prevent a binary being created, we should have to explicitly ask for the exit status to reflect that as a failure. (Or at least there should be a way to turn it off.) There's also the question of whether any flag to turn on/off this behavior would apply to the entire build or would mean to stop after compiling any library dependency that generates warnings, or only after the entire build is complete. The former would be good for CI, to reduce overall resource usage. The latter is better for development, or at least is more like current behavior. Straw man proposal:
|
My current thinking is,
There might be some interaction with #1238 (Always recompile if there were serious warnings). |
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
Ended up returning non-zero exit code for serious warnings by default and providing |
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
Non-serious warnings do not cause an error exit status. We can enable that behavior later with a flag if desired. Issue dylan-lang#1373
It would be useful in various automation tasks if the
dylan-compiler
command would return non-zero exit status when serious warnings are encountered.Currently it's very easy to miss serious warnings in amongst all the other compiler output.
What issues would this raise, if any, for our current processes? Should non-serious warnings be reflected in the exit status as well?
The text was updated successfully, but these errors were encountered: