-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build status even on exception (#2573)
* Never call update_build from a BuildEnvironment * Fix broken celery test This is really a design decision thing. Either projects should be marked as having valid clones even if record is off, or they shouldn't. Personally, I believe the former behavior is better, since we will have actually cloned the repo at that point (in the setup_env), but this does mean that record will record *some* data in the database, which might not be desirable. * Catch all exceptions when exiting BuildEnvironment This removes the special handling of BuildEnvironmentError, and logs and catches all exceptions which aren't subclasses of BuildEnvironmentWarning. This simplifies exception handling for users of BuildEnvironments, but may have some unexpected effects if, for instance, SystemExit, StopIteration or KeyboardInterrupt is raised while inside a BuildEnvironment. * Don't surface the exception message to the end user * Raise BuildEnvironmentError on error parsing YAML
- Loading branch information
Showing
5 changed files
with
93 additions
and
31 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