-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add multirm router layer to rm module #8963
Conversation
5cfdbd5
to
36f23b3
Compare
ba454ee
to
8d0b622
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8963 +/- ##
=======================================
Coverage 47.48% 47.49%
=======================================
Files 1168 1167 -1
Lines 176302 176298 -4
Branches 2353 2354 +1
=======================================
+ Hits 83717 83730 +13
+ Misses 92427 92410 -17
Partials 158 158
Flags with carried forward coverage won't be shown. Click here to find out more.
|
36f23b3
to
4ce070a
Compare
afbb0c5
to
9aaec35
Compare
@@ -39,14 +37,14 @@ type ResourceManager interface { | |||
) (model.TaskContainerDefaultsConfig, error) | |||
|
|||
// Job queue | |||
GetJobQ(sproto.GetJobQ) (map[model.JobID]*sproto.RMJobInfo, error) | |||
GetJobQ(string) (map[model.JobID]*sproto.RMJobInfo, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd like for us to type resource pools at some point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(type ResourcePoolName string
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
func ErrRPNotDefined(rp string) error { | ||
return fmt.Errorf("could not find resource pool %s", rp) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm trusting this is unchanged since it was last landed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change the signatures to not take in a RM name, and similarly, in getRM, I removed references to RM name
9aaec35
to
6d00842
Compare
6d00842
to
570f9e1
Compare
✅ Deploy Preview for determined-ui canceled.
|
Description
Add the multirm module back in (from #8857 ) , but look up the right resource manager from the globally unique resource pool name provided.
Also delete sproto messages that wrap under 3 variables, replace this directly with the variables in the RM interface. This reduces bloat in the repo, as sproto message wrappers are remnants of the actor system.
Test Plan
See multirm_intg_test.go
Commentary (optional)
Since I'm making changes to the signatures of methods in the RM interface, there are a lot of one-line changes in the repo. I recommend looking at the
resource_manager_iface.go
, and themultirm
module.There's no check if there are multiple same-named resource pools at this level -- that will be the responsibility of the config to check
Checklist
docs/release-notes/
.See Release Note for details.
Ticket
RM-73