Skip to content

Conversation

@deadlycoconuts
Copy link
Contributor

Context

This is a follow up on PR #378, which introduces additional fixes and some minor refactoring to make the UI and API server behaviour consistent with that of Merlin's, especially with regards to the handling of autoscaling target values.

In short, this PR does the following:

  1. On the UI, removal of all integer parsing/verification of all autoscaling targets (this will now be handled in a more sophisticated manner in the API server; see below for more information)
  2. On the API server, introduction of additional handling to parse CPU and RPS autoscaling targets to integers

@deadlycoconuts deadlycoconuts added the type: bug Something isn't working label May 9, 2024
@deadlycoconuts deadlycoconuts self-assigned this May 9, 2024
@deadlycoconuts deadlycoconuts force-pushed the fix_autoscaling_target_parsing branch from 6b65992 to 4e28f71 Compare May 9, 2024 04:30
@codecov
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.19%. Comparing base (c96619d) to head (3a51e22).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #380      +/-   ##
==========================================
+ Coverage   62.15%   62.19%   +0.04%     
==========================================
  Files         124      124              
  Lines        9747     9755       +8     
==========================================
+ Hits         6058     6067       +9     
- Misses       2953     2954       +1     
+ Partials      736      734       -2     
Flag Coverage Δ
api-test 62.19% <ø> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@deadlycoconuts deadlycoconuts force-pushed the fix_autoscaling_target_parsing branch from 4e28f71 to 48a8e16 Compare May 9, 2024 05:51
@deadlycoconuts deadlycoconuts force-pushed the fix_autoscaling_target_parsing branch from 48a8e16 to 91396ad Compare May 9, 2024 05:54
@deadlycoconuts
Copy link
Contributor Author

Thanks for the quick review @ariefrahmansyah ! Merging this now (oops I totally forgot about this hanging PR for over 2 weeks 🥲)

@deadlycoconuts deadlycoconuts merged commit 0d6f578 into caraml-dev:main May 20, 2024
ariefrahmansyah pushed a commit to caraml-dev/merlin that referenced this pull request May 21, 2024
# Description
This PR introduces a fix to address a tiny UI bug whereby a red line
appears when an autoscaling target value that is outside the configured
step size (e.g. 1.003 when the step size is 1) is set:
![Screenshot 2024-05-09 at 2 16
06 PM](https://github.com/caraml-dev/merlin/assets/36802364/85c7d35d-31bf-406b-9312-9a6cb729f36b)

The fix implemented is exactly the same as what has been done for Turing
here:
caraml-dev/turing#380 (comment).

# Modifications
-
`ui/src/pages/version/components/forms/components/AutoscalingPolicyFormGroup.js`
- Update to some props passed to the `EuiFieldNumber` component

# Tests
<!-- Besides the existing / updated automated tests, what specific
scenarios should be tested? Consider the backward compatibility of the
changes, whether corner cases are covered, etc. Please describe the
tests and check the ones that have been completed. Eg:
- [x] Deploying new and existing standard models
- [ ] Deploying PyFunc models
-->

# Checklist
- [x] Added PR label
- [ ] 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 introduces API
changes

# Release Notes
```release-note
None
```
@deadlycoconuts deadlycoconuts deleted the fix_autoscaling_target_parsing branch June 6, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants