Skip to content

fail travis build on error for any plugin - #60

Merged
mschrimpf merged 15 commits into
mainfrom
kvf/plugin_errors
Sep 6, 2022
Merged

mschrimpf merged 15 commits into
mainfrom
kvf/plugin_errors

Conversation

@kvfairchild

@kvfairchild kvfairchild commented Sep 3, 2022 •

Copy link
Copy Markdown
Contributor

If a Travis build fails at any point, it stops. allow_failures permits 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.

@kvfairchild kvfairchild changed the title test dummy failure in pereira fail travis build on error for any plugin Sep 4, 2022
@mschrimpf
mschrimpf merged commit 319ba54 into main Sep 6, 2022
@mschrimpf
mschrimpf deleted the kvf/plugin_errors branch September 6, 2022 16:32
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants