-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor deployments storage on redeploy and undeployment (#483)
<!-- Thanks for sending a pull request! Here are some tips for you: 1. Run unit tests and ensure that they are passing 2. If your change introduces any API changes, make sure to update the e2e tests 3. Make sure documentation is updated for your PR! --> **What this PR does / why we need it**: <!-- Explain here the context and why you're making the change. What is the problem you're trying to solve. ---> The terminated endpoint means the user has triggered Undeployment and there's no deployed endpoint in the cluster. When we redeploy this terminated endpoint, the deployment history should show all previous successful deployment logs as Not Deployed and the new deployment as Pending. However, when redeploying the terminated endpoint, the deployment history shows the previous successful deployment as the current and deployed one: Before redeployment of terminated endpoint: <img width="500" alt="image" src="https://github.com/caraml-dev/merlin/assets/8122852/90d3cc87-9e73-4317-aaea-c37bc3c6b510"> Actual view from redeployment of terminated endpoint: <img width="500" alt="image" src="https://github.com/caraml-dev/merlin/assets/8122852/e363bac3-b7b2-4d1f-b942-b8dea9a6e4eb"> ## Fixes introduced by this PR: Before redeployment, the current label is given to the latest successful/terminated endpoint: <img width="500" alt="image" src="https://github.com/caraml-dev/merlin/assets/8122852/76ccf983-f51d-43a8-8e8c-c3ba6547e21e"> During redeployment: <img width="500" alt="image" src="https://github.com/caraml-dev/merlin/assets/8122852/5aa74859-1ec7-4d36-98f8-6928b7aad6ae"> After redeployment succeed: <img width="500" alt="image" src="https://github.com/caraml-dev/merlin/assets/8122852/f17e1420-4aa6-4112-981d-bff3e5064798"> *Note: Please ignore the time displayed as `in 7 hours` -- this is because I'm running from local and the time zone is not translated correctly. --- Behind the scene, we refactor deployments table for given version endpoint for redeployment and unemployment: 1. Redeployment a. new deployment status = running/serving, b. old successful deployment status = terminated 2. Undeployment a. old successful deployment status = terminated **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> * Fixes redeployment of terminated endpoint * Fixes duplicate link icon on Mlflow run **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required. Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". For more information about release notes, see kubernetes' guide here: http://git.k8s.io/community/contributors/guide/release-notes.md --> ```release-note NONE ``` **Checklist** - [x] Added unit test, integration, and/or e2e tests - [x] Tested locally - [ ] Updated documentation - [ ] Update Swagger spec if the PR introduce API changes - [ ] Regenerated Golang and Python client if the PR introduce API changes
- Loading branch information
1 parent
281a15d
commit 95a6183
Showing
16 changed files
with
441 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.