Commits on Source (4)
-
Qinusty authored
This allows for users to configure fatal-warnings to be either a list of warnings or simply True to trigger all configurable warnings as errors. This commit deprecates the use of fail-on-overlap within project.conf, this will now use the fatal-warnings configuration item. plugin.py: get_warnings() is now available for plugins to override and return their configurable warnings. tests: This modifys the tests/frontend/overlaps.py tests to support the new fatal-warnings configuration. Backwards compatibility is also tested for `fail-on-overlap` _versions.py: BST_FORMAT_VERSION bumped to 12 for fatal-warnings Fixes: #526
-
Qinusty authored
This follows the implementation of configurable warnings.
-
Qinusty authored
This includes detailing the use of `fatal-warnings` within project.conf This also adds a deprecation notice to the fail on overlaps section.
-
Qinusty authored
This adds multiple tests for custom plugin warnings and core warnings, providing checks for both cases which should cause warnings and errors when configured as fatal.
Showing
- buildstream/_frontend/app.py 6 additions, 0 deletionsbuildstream/_frontend/app.py
- buildstream/_project.py 92 additions, 4 deletionsbuildstream/_project.py
- buildstream/_stream.py 3 additions, 0 deletionsbuildstream/_stream.py
- buildstream/_versions.py 1 addition, 1 deletionbuildstream/_versions.py
- buildstream/data/projectconfig.yaml 9 additions, 1 deletionbuildstream/data/projectconfig.yaml
- buildstream/plugin.py 82 additions, 3 deletionsbuildstream/plugin.py
- buildstream/plugins/sources/git.py 12 additions, 1 deletionbuildstream/plugins/sources/git.py
- doc/source/format_project.rst 55 additions, 6 deletionsdoc/source/format_project.rst
- tests/frontend/configurable_warnings.py 74 additions, 0 deletionstests/frontend/configurable_warnings.py
- tests/frontend/configuredwarning/elements/corewarn.bst 1 addition, 0 deletionstests/frontend/configuredwarning/elements/corewarn.bst
- tests/frontend/configuredwarning/elements/warninga.bst 1 addition, 0 deletionstests/frontend/configuredwarning/elements/warninga.bst
- tests/frontend/configuredwarning/elements/warningb.bst 1 addition, 0 deletionstests/frontend/configuredwarning/elements/warningb.bst
- tests/frontend/configuredwarning/plugins/corewarn.py 28 additions, 0 deletionstests/frontend/configuredwarning/plugins/corewarn.py
- tests/frontend/configuredwarning/plugins/warninga.py 29 additions, 0 deletionstests/frontend/configuredwarning/plugins/warninga.py
- tests/frontend/configuredwarning/plugins/warningb.py 29 additions, 0 deletionstests/frontend/configuredwarning/plugins/warningb.py
- tests/frontend/configuredwarning/project.conf 8 additions, 0 deletionstests/frontend/configuredwarning/project.conf
- tests/frontend/overlaps.py 15 additions, 8 deletionstests/frontend/overlaps.py
tests/frontend/configurable_warnings.py
0 → 100644