-
Notifications
You must be signed in to change notification settings - Fork 1
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
coding_standard.md: Relax warning as error on release (opensource) #2
base: main
Are you sure you want to change the base?
Conversation
This is a "user oriented" best practice used in many FLOSS projects. Fixing at least one supported env is good, but maybe not enough, extending support can help but will it scale? Reality of sofware engineering is that software integration is a moving science, constraints are evolving over space and time. We can't anticipate (future) breakage, this change can mitigate the annoyance and maximize user adoption, help integrators and ease software maintenance. The alternative option, would be to wait user(s) to complain and provide support for the desired env in an acceptable time frame. Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
I disagree with this. I don't see the motivation behind this. |
The motivation applies specifically when producing opensource software (shared code will be rebuild in a different env) Not about the code we build and deliver as binaries ok I can explain more but let others read what I initially proposed. |
I also disagree with this. If someone is building code on a new compiler that's stricter, they can always turn the warnings off themselves. They should do this knowingly rather than have us quietly do it for everyone. |
So this mean encouraging them to patch the released code, I am not in favor of downstream patches if it can be avoided,. BTW IMHO we are making some assumptions here:
|
There is already a statement in the preceding paragraph that says "This applies to builds that are part of "make test". It does not apply to build mechanisms passed through to other projects." I think if CI builds etc all run with Werror but the released code doesn't by default, I think that's fine. A conscious official choice like this is better than turning it on and off in random commits. |
I think the document does not explain the drawbacks of always enforcing I suggest:
|
Thank you for your feedback, it is interesting to see that this change is controversial (what is the priority our process or our users or a tradeoff ? , less provocatively can we satisfy our SDK users AND our "out of SDK" users ?) Let's clarify, First let's try to see if we manage to reach a consensus on the final goal when producing OSS: User/Integrator should be able to rebuild the released code without tweaking it for an unsupported env. It is highly probable that the component will work as good, but just trigger warnings which is useful for developers not integrator (as I said previously it is a different mindset) Please vote:
|
This is a "user oriented" best practice used in many FLOSS projects. Fixing at least one supported env is good, but maybe not enough, extending support can help but will it scale?
Reality of sofware engineering is that software integration is a moving science, constraints are evolving over space and time. We can't anticipate (future) breakage,
this change can mitigate the annoyance and maximize user adoption, help integrators and ease software maintenance.
The alternative option, would be to wait user(s) to complain and provide support for the desired env in an acceptable time frame.