utils_devops 0.1.169__tar.gz → 0.1.171__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {utils_devops-0.1.169 → utils_devops-0.1.171}/PKG-INFO +1 -1
- {utils_devops-0.1.169 → utils_devops-0.1.171}/pyproject.toml +1 -1
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/docker_ops.py +6 -30
- {utils_devops-0.1.169 → utils_devops-0.1.171}/README.md +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/__init__.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/__init__.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/datetimes.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/envs.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/files.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/logs.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/script_helpers.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/strings.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/core/systems.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/__init__.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/aws_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/git_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/interaction_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/metrics_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/network_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/nginx_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/notification_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/performance_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/ssh_ops.py +0 -0
- {utils_devops-0.1.169 → utils_devops-0.1.171}/src/utils_devops/extras/vault_ops.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: utils_devops
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.171
|
|
4
4
|
Summary: Lightweight DevOps utilities for automation scripts: config editing (YAML/JSON/INI/.env), templating, diffing, and CLI tools
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: devops,automation,nginx,cli,jinja2,yaml,config,diff,templating,logging,docker,compose,file-ops
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "utils_devops"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.171" # Bumped for new string features + diffing
|
|
4
4
|
description = "Lightweight DevOps utilities for automation scripts: config editing (YAML/JSON/INI/.env), templating, diffing, and CLI tools"
|
|
5
5
|
authors = ["Hamed Sheikhan <sh.sheikhan.m@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -2346,36 +2346,12 @@ def playwright_test_compose(
|
|
|
2346
2346
|
logger.info(f"{STICKERS['success']} Validation complete")
|
|
2347
2347
|
logger.info("")
|
|
2348
2348
|
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
services=services,
|
|
2356
|
-
timeout=50,
|
|
2357
|
-
interval=1,
|
|
2358
|
-
logger=logger,
|
|
2359
|
-
env_file=env_file
|
|
2360
|
-
)
|
|
2361
|
-
|
|
2362
|
-
result["steps"]["health_check"] = health_details
|
|
2363
|
-
result["health_status"] = health_details.get("service_status", {})
|
|
2364
|
-
|
|
2365
|
-
# Identify failing services (any not 'healthy')
|
|
2366
|
-
failing_services = [
|
|
2367
|
-
svc for svc, status in health_details.get("service_status", {}).items()
|
|
2368
|
-
if status.get("overall_status") != "healthy"
|
|
2369
|
-
]
|
|
2370
|
-
result["failing_services"] = failing_services
|
|
2371
|
-
|
|
2372
|
-
if health_success:
|
|
2373
|
-
logger.info("✅ All services healthy!")
|
|
2374
|
-
result["success"] = True
|
|
2375
|
-
else:
|
|
2376
|
-
logger.error(f"❌ Health checks failed for {len(failing_services)} services: {failing_services}")
|
|
2377
|
-
result["success"] = False
|
|
2378
|
-
skip_project_up = False
|
|
2349
|
+
succses_skip_project_up=envs.filter_env_file(env_file=env_file,keys=["SKIP_PROJECT_UP"],backup=False).get("SKIP_PROJECT_UP", False)
|
|
2350
|
+
if succses_skip_project_up :
|
|
2351
|
+
envs.remove_env_var("skip_project_up",env_file,backup=False)
|
|
2352
|
+
skip_project_up = True
|
|
2353
|
+
else :
|
|
2354
|
+
skip_project_up = False
|
|
2379
2355
|
|
|
2380
2356
|
# STEP 1: Version update
|
|
2381
2357
|
if update_version and not skip_project_up :
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|