Change path portion of unique cluster name to point to compose file, not argv[0]. (#678)
Publish / Build and publish (push) Successful in 1m6s Details
Deploy Test / Run deploy test suite (push) Successful in 3m28s Details
K8s Deploy Test / Run deploy test suite (push) Failing after 3m16s Details
Webapp Test / Run webapp test suite (push) Failing after 3m55s Details
Smoke Test / Run basic test suite (push) Successful in 4m8s Details

pull/680/head v1.1.0-ab0e70e-202312041939
Thomas E Lackey 2023-12-04 13:39:14 -06:00 committed by GitHub
parent c319e90ddd
commit ab0e70ed83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -271,8 +271,10 @@ def _make_cluster_context(ctx, stack, include, exclude, cluster, env_file):
if cluster is None: if cluster is None:
# Create default unique, stable cluster name from confile file path and stack name if provided # Create default unique, stable cluster name from confile file path and stack name if provided
# TODO: change this to the config file path if deployment:
path = os.path.realpath(sys.argv[0]) path = os.path.realpath(os.path.abspath(compose_dir))
else:
path = "internal"
unique_cluster_descriptor = f"{path},{stack},{include},{exclude}" unique_cluster_descriptor = f"{path},{stack},{include},{exclude}"
if ctx.debug: if ctx.debug:
print(f"pre-hash descriptor: {unique_cluster_descriptor}") print(f"pre-hash descriptor: {unique_cluster_descriptor}")