Automated model reloading after training #38
No reviewers
Labels
No labels
CI/CD
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AndreFerreira5/downtown-cab-co!38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "production-deployment"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request overview
This PR implements automated model reloading after training by removing the hardcoded "staging" alias and introducing a new continuous deployment workflow. The changes enable the inference API to dynamically load models based on the configured alias, and add a workflow to trigger model reloads in production after successful model promotion.
Key changes:
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Critical Issues Found:
The new deployment workflow has fundamental issues that will prevent it from functioning:
Invalid localhost target: The workflow attempts to call
http://localhost:9001/reloadon the GitHub Actions runner, but no production service is running there.Missing deployment infrastructure: Unlike the staging workflow which properly deploys a Docker container with all required environment variables (MLflow credentials, tracking URI, model alias), this workflow has no deployment steps and will fail to connect to any service.
The workflow needs to either:
@ -0,0 +18,4 @@run: |echo "Deploying to Production..."# Reload modelcurl -f -v -X GET "http://localhost:9001/reload"The curl command is targeting localhost:9001, which will fail because the production inference API is not running on the GitHub Actions runner. The workflow needs to either deploy or connect to an actual production environment. Consider deploying a production container first (similar to how the staging workflow deploys to test), or configure this to call a production server URL stored in GitHub variables or secrets.
The workflow is missing critical deployment steps before attempting to reload the model. Unlike the staging workflow which pulls and runs a Docker container with proper environment configuration (MLFLOW_TRACKING_URI, credentials, MODEL_ALIAS, etc.), this workflow attempts to reload without any container deployment or environment setup. The workflow should either deploy the production container with the production alias before reloading, or connect to an existing production deployment.
simple as it gets, ready to merge