Skip to content

Commit

Permalink
remove extra check; tests are already run on github
Browse files Browse the repository at this point in the history
  • Loading branch information
itsthejoker committed Jan 12, 2023
1 parent 96f426c commit 92d384f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions bubbles/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@ def download_new_release(release_data: dict):
StatusMessage.step_succeeded()
return backup_archive, new_archive

def test_new_archive(new_archive):
StatusMessage.add_new_context_step("Validating new release...")

result = subprocess.run(
shlex.split(f"sh -c '{PYTHON_VERSION} {str(new_archive)} selfcheck'"),
stdout=subprocess.DEVNULL,
)
if result.returncode != 0:
raise DeployError("The selfcheck failed. Aborting deploy.")

StatusMessage.step_succeeded()

def send_error_end(exception=None):
message = "Hit an error I couldn't recover from. Check logs for more context."
if exception:
Expand Down Expand Up @@ -162,7 +150,6 @@ def migrate():
try:
release_data = check_for_new_version()
backup_archive, new_archive = download_new_release(release_data)
test_new_archive(new_archive)
replace_running_service(new_archive)
if service.lower() == "blossom":
migrate()
Expand Down

0 comments on commit 92d384f

Please sign in to comment.