mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Rollback prestable part on failed testing
This commit is contained in:
parent
6cedd2f671
commit
3b1c858bff
@ -121,8 +121,16 @@ class Release:
|
||||
else:
|
||||
logging.info("Skipping prestable stage")
|
||||
|
||||
rollback = self._rollback_stack.copy()
|
||||
try:
|
||||
with self.testing():
|
||||
logging.info("Testing part of the releasing is done")
|
||||
except (Exception, KeyboardInterrupt):
|
||||
logging.fatal("Testing part failed, rollback previous steps")
|
||||
rollback.reverse()
|
||||
for cmd in rollback:
|
||||
self.run(cmd)
|
||||
raise
|
||||
|
||||
elif self.release_type in self.SMALL:
|
||||
with self.stable():
|
||||
|
Loading…
Reference in New Issue
Block a user