diff --git a/deployment/core/tasks.py b/deployment/core/tasks.py index dcab19d..b43132b 100644 --- a/deployment/core/tasks.py +++ b/deployment/core/tasks.py @@ -127,12 +127,9 @@ return cfg = self.env.release - print(self.env) # 1. Target the current active symlink live_path = self.env.release.deploy_link - self.print(f" [HOTFIX] Pulling latest changes into {live_path}") - # 2. Pull changes try: self.sh( @@ -168,7 +165,6 @@ def _run(self): timestamp = time.strftime(self.env.timestamp_format) self.env.release_dir = f"{Path(self.env.testing.deploy_link)}-{timestamp}" - self.print(f" [BUILD] Target: {self.env.build_dir}") self.sh( f"git clone --branch {self.env.deploy_branch} {self.env.repo} {self.env.build_dir}" @@ -203,8 +199,6 @@ timestamp = time.strftime(self.env.timestamp_format) final_release_dir = Path(cfg.get_release_dir(timestamp)) - self.print(f" [MOVE] Finalizing build to: {final_release_dir}") - # 1. Finalize the directory (Rename from -BUILDING to versioned path) self.sh(f"mv {self.env.build_dir} {final_release_dir}") @@ -214,10 +208,6 @@ # Create a temporary symlink name in the same parent directory temp_link = deploy_link.with_name(deploy_link.name + "_tmp") - self.print( - f" [LINK] Swapping symlink: {deploy_link} -> {final_release_dir}" - ) - # Create temporary symlink pointing to the new version self.sh(f"ln -sfn {final_release_dir} {temp_link}") diff --git a/deployment/core/tests.py b/deployment/core/tests.py index 40fc505..9db3ad6 100644 --- a/deployment/core/tests.py +++ b/deployment/core/tests.py @@ -73,9 +73,8 @@ if self._owner.args.get("skip_tests") and not self.get_arg("enforce_testing"): return True - self.print(" [RUN] npm run test:postreceive") # Using sh_thread to ensure real-time log streaming for Jenkins - self.sh_thread("npm run test:postreceive", cwd=self.env.build_dir) + self.sh_thread("yarn test:postreceive", cwd=self.env.build_dir) return True @@ -91,7 +90,6 @@ def _run(self): # We try to stop even if SKIP_TESTS was true to be safe - self.print(f" [KILL] Terminating process in {self.env.pidfile}") self.sh(f"kill $(cat '{self.env.pidfile}') || true") return True