Skip to content

Commit

Permalink
relax build transition assertion (hail-is#50)
Browse files Browse the repository at this point in the history
* relax build transition assertion

* update deployment

* update deployment
  • Loading branch information
danking committed Aug 30, 2018
1 parent f86c085 commit 4542cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/build_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def __init__(self, target_sha):
self.target_sha = target_sha

def transition(self, other):
if not isinstance(other, Buildable):
if (not isinstance(other, Buildable) or
not isinstance(other, Building)):
raise ValueError(f'bad transition {self} to {other}')
return other

Expand Down
2 changes: 1 addition & 1 deletion deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: hail-ci
image: gcr.io/broad-ctsa/hail-ci:518a2d8142267e751afe854dccb1bd410419d321
image: gcr.io/broad-ctsa/hail-ci:6e6cacc94df1cf99d683eb1113147689cc1a4c0b
env:
- name: SELF_HOSTNAME
value: http://hail-ci
Expand Down

0 comments on commit 4542cf9

Please sign in to comment.