Skip to content

Commit

Permalink
ci/cd test
Browse files Browse the repository at this point in the history
  • Loading branch information
nmr2701 committed May 31, 2024
1 parent dca3c38 commit cd117a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/productionworkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
id: deployment
run: |
python ./se_ml_production/ML_backend_GKE/ML_GKE/ML_Service_GKE/main.py
if grep -q "Deployment Test Comlpete with no erors" deployment.log; then
if grep -q "Deployment Test Complete with no errors" deployment.log; then
echo "Deployment Test Complete with no errors"
exit 0
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def bootstrap_MongoDB_Prod(client, defined_collection_names):
db_prod.create_collection(collection)
print(f"[INFO] Collection '{collection}' created.\n")
spinner.stop()
print("Deployment Test Complete with no errors")
except Exception as err:
spinner.err()
print(f"[Error!] Error in Bootstrapping MongoDB Prod DB\nError: {err}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def startup_event():

nltk.download('punkt')

print("Deployment Test Complete with no err")

# MongoDB Bootstrap
defined_collection_names = ["uploads", "discarded"]
db_prod = connect_MongoDB_Prod()
Expand All @@ -80,7 +82,6 @@ def startup_event():
defined_collection_names, # Argument 2
connection_obj=db_manager.act_con[0]
)
print("Deployment Test Complete with no errors")
except Exception as e:
print(f"[Error!] FATAL ERROR! | {e}")
raise
Expand Down

0 comments on commit cd117a5

Please sign in to comment.