-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report invalid units generated during test session (bugfix) (#1560)
Before this commit, if a template generated a unit that was invalid, a message was logged (error for some, debug for some others) and the unit was skipped. The logged message was hard to find, and it was not immediately clear that some jobs had not been generated due to templating errors. This commit fixes this by introducing a new unit type (InvalidJob) and adding them to the test execution, so that errors in templating are surfaced in the test results as failures, and therefore easier to review and to fix. This behavior is the new default, but it is possible to use the legacy behavior (to just log the problems without creating "InvalidJobs") by defining setting the `strict_template_expansion` flag to `False` in the `features` section of a configuration file. * Implement late validation of template jobs * Added metabox test * Crash testplan * Better unit invalid exception * Full draft implementation of invalid units * Remove unused imports and lemmas * Make test positive * Don't reset the flags, but add and remove from set * Move SessionState_metadata resume before SessionState * Make InvalidJob valid enough to run the tests + use __index__ instead of UUID * Add Test for remote and local * New metabox tests provider * Check that the backward compatiblity works * Revert downgrade of warning * Fix tests for unit and ctrl * Move warning in use_feature_flags * Fully roll back downgrade to warning * Test new filter and wrap function in ctrl.py Minor: Also log warnings in wrapped units * Also test observe_results with new flag * New test for run_job * Add experimental feature tests * Verify that the infos are in the exception * Typo Co-authored-by: Pierre Equoy <[email protected]> * Better description --------- Co-authored-by: Pierre Equoy <[email protected]>
- Loading branch information
Showing
16 changed files
with
749 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.