Skip to content

Commit

Permalink
adding prod back in and fixing bug for running on all environments
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Jun 28, 2024
1 parent b0ee58f commit 8e0f7ff
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
27 changes: 27 additions & 0 deletions deploy/deployment_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,33 @@ deployments:
string-db: 8921aec4382a896c
ubergraph: 470b86cde433f1fb
viral-proteome: 365c51354d2ed0cc
- deployment_environment: prod
automat_url: https://automat.transltr.io/
plater_version: v1.6.5
trapi_version: 1.5.0
platers:
binding-db: 57e22a8a314b0df8
cam-kp: dfdb15b2ecef5629
ctd: 8b5f74462c4179ca
drugcentral: 33887d252c2a0de4
genome-alliance: 85a6ce01fb7d2cbe
gtex: 982fac378b629570
gtopdb: b0048e5f6f14c0f7
gwas-catalog: 1fe140b41b7349e8
hetio: 35c7d6be215e8cc9
hgnc: 012197dd15067551
hmdb: 9bf6cb5142d79b7f
human-goa: 73059966f266f5a8
icees-kg: "4-11-2024"
intact: 2a79dda9d5bc2312
monarch-kg: "2024-04-18"
panther: 04726ca2b1148f20
pharos: 727a90a7317f97a8
reactome: 59c5f5859ca31e58
robokopkg: c5ec1f282158182f
string-db: 8921aec4382a896c
ubergraph: 470b86cde433f1fb
viral-proteome: 365c51354d2ed0cc
- deployment_environment: robokop
automat_url: https://robokop-automat.apps.renci.org/
plater_version: v1.6.5
Expand Down
4 changes: 2 additions & 2 deletions deploy/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ def validate_plater(url, expected_version, expected_plater_version, expected_tra


def run_validation(deployments_to_validate=None):
deployments_to_validate = deployments_to_validate if deployments_to_validate else []
deployments_to_validate = deployments_to_validate if deployments_to_validate else None
everything_is_good = True
graph_deployment_spec_path = os.path.join(os.path.dirname(__file__), 'deployment_spec.yaml')
with open(graph_deployment_spec_path) as graph_deployment_spec_file:
deployment_spec = yaml.safe_load(graph_deployment_spec_file)
plater_validation_results = {}
for deployment in deployment_spec['deployments']:
if deployment['deployment_environment'] not in deployments_to_validate:
if deployments_to_validate and deployment['deployment_environment'] not in deployments_to_validate:
print(f"Skipping deployment environment {deployment['deployment_environment']} ({deployment['automat_url']})")
continue
else:
Expand Down

0 comments on commit 8e0f7ff

Please sign in to comment.