Repository navigation
fail travis build on error for any plugin - #60
Merged
Merged
Conversation
kvfairchild
commented
Sep 4, 2022
kvfairchild
commented
Sep 4, 2022
mschrimpf
approved these changes
Sep 4, 2022
Co-authored-by: Martin Schrimpf <[email protected]>
mschrimpf
added a commit
that referenced
this pull request
Oct 26, 2022
* test dummy failure in pereira * typo fix * collect results from all plugin tests * add results list * Remove dummy error * POSIX compliance (add EOF blank line) * relative import * Update brainscore_language/plugin_management/test_plugins.py Co-authored-by: Martin Schrimpf <[email protected]> * absolute import * ignore flagged tests * update plugin results * set errors to exit status 1 * cleanup Co-authored-by: Katherine Fairchild <[email protected]> Co-authored-by: Martin Schrimpf <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If a Travis build fails at any point, it stops.
allow_failurespermits the build to continue, but also marks it as passing. Desired behavior is for the build to fail if a single plugin errors but to test all plugins before stopping.To this end, plugin runner now collects a list of return values. After all plugins are tested, it asserts that sum of return values list is 0. An error in any plugin will mark the build as failing.