Skip to content
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: refactor ResourceManager interface for multirm #8847

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

carolinaecalderon
Copy link
Contributor

@carolinaecalderon carolinaecalderon commented Feb 14, 2024

Description

Refactor the requests/responses in ResourceManager interface, as a pre-requisite for the multiRM project, remove sproto message types where necessary.

Add a ResourceManager field to sproto.AllocateRequest{} and expconf.ResourceConfigV0.

Test Plan

Pass existing tests.

Commentary (optional)

Checklist

  • Changes have been manually QA'd
  • User-facing API changes need the "User-facing API Change" label.
  • Release notes should be added as a separate file under docs/release-notes/.
    See Release Note for details.
  • Licenses should be included for new code which was copied and/or modified from any external code.

Ticket

RM-44

@cla-bot cla-bot bot added the cla-signed label Feb 14, 2024
Copy link

codecov bot commented Feb 14, 2024

Codecov Report

Attention: Patch coverage is 34.54545% with 144 lines in your changes are missing coverage. Please review.

Project coverage is 47.54%. Comparing base (4618389) to head (8134116).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8847   +/-   ##
=======================================
  Coverage   47.53%   47.54%           
=======================================
  Files        1066     1066           
  Lines      170434   170450   +16     
  Branches     2235     2235           
=======================================
+ Hits        81015    81036   +21     
+ Misses      89261    89256    -5     
  Partials      158      158           
Flag Coverage Δ
backend 43.39% <34.54%> (+0.03%) ⬆️
harness 63.69% <ø> (ø)
web 42.53% <ø> (ø)

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

Files Coverage Δ
master/internal/api_command.go 47.34% <100.00%> (+0.25%) ⬆️
master/internal/api_tasks.go 47.83% <100.00%> (ø)
master/internal/checkpoint_gc.go 68.04% <100.00%> (+2.10%) ⬆️
master/internal/command/command.go 68.10% <100.00%> (+0.13%) ⬆️
master/internal/core_experiment.go 61.33% <100.00%> (+0.17%) ⬆️
master/internal/rm/agentrm/agents.go 32.43% <ø> (ø)
master/internal/rm/kubernetesrm/pods.go 15.70% <ø> (ø)
master/internal/task/allocation.go 76.46% <100.00%> (+0.36%) ⬆️
master/internal/telemetry/reports.go 69.76% <100.00%> (ø)
master/internal/api_job.go 0.00% <0.00%> (ø)
... and 16 more

... and 3 files with indirect coverage changes

@carolinaecalderon carolinaecalderon changed the title Chore replace rp struct chore: replace ResourceManager interface vars with ResourcePoolName Feb 14, 2024
@carolinaecalderon carolinaecalderon marked this pull request as ready for review February 14, 2024 21:32
@carolinaecalderon carolinaecalderon requested a review from a team as a code owner February 14, 2024 21:32
@carolinaecalderon carolinaecalderon requested review from maxrussell, stoksc and NicholasBlaskey and removed request for a team February 14, 2024 21:32
Base automatically changed from remove-redundant-rm-interface to main February 16, 2024 16:45
@carolinaecalderon carolinaecalderon requested review from a team as code owners February 19, 2024 21:55
Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for determined-ui canceled.

Name Link
🔨 Latest commit 8134116
🔍 Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/65df2c0a88616e00083b8184

@carolinaecalderon carolinaecalderon changed the base branch from main to nickb_multirm_config February 19, 2024 21:57
@carolinaecalderon carolinaecalderon force-pushed the chore-replace-rp-struct branch 2 times, most recently from aa8c82b to 90d55fe Compare February 20, 2024 08:44
@carolinaecalderon carolinaecalderon marked this pull request as draft February 20, 2024 09:44
@carolinaecalderon carolinaecalderon changed the title chore: replace ResourceManager interface vars with ResourcePoolName chore: add ResourceManager fields to Allocate & ResourceConfig Feb 20, 2024
@carolinaecalderon carolinaecalderon changed the title chore: add ResourceManager fields to Allocate & ResourceConfig chore: add ResourceManager fields to AllocateRequest & ResourceConfig Feb 21, 2024
Copy link
Contributor

@NicholasBlaskey NicholasBlaskey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good to me

@@ -47,6 +47,8 @@ message GetAgentsResponse {
message GetAgentRequest {
// The id of the agent.
string agent_id = 1;
// The resource manager for the request.
string resource_manager = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this optional? Or required?

Is it optional if you just have a single resource manager?

Can we mark optional fields with optional string resource_manager = 2;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, it can always be blank "" -- there will have to be some logic in the router that checks that checks these cases.

@carolinaecalderon carolinaecalderon changed the base branch from main to carolinac/multirm-proto-schema-changes February 23, 2024 04:34
@carolinaecalderon carolinaecalderon force-pushed the carolinac/multirm-proto-schema-changes branch from b834b79 to dea6aad Compare February 23, 2024 19:10
@carolinaecalderon carolinaecalderon force-pushed the chore-replace-rp-struct branch 2 times, most recently from e976eb5 to 626f7c0 Compare February 26, 2024 02:00
Base automatically changed from carolinac/multirm-proto-schema-changes to main February 27, 2024 20:14
@carolinaecalderon carolinaecalderon changed the title chore: add ResourceManager fields to AllocateRequest & ResourceConfig chore: refactor ResourceManager interface for multirm Feb 28, 2024
@carolinaecalderon carolinaecalderon merged commit 6857ecf into main Feb 28, 2024
82 of 101 checks passed
@carolinaecalderon carolinaecalderon deleted the chore-replace-rp-struct branch February 28, 2024 16:58
carolinaecalderon added a commit that referenced this pull request Mar 5, 2024
carolinaecalderon added a commit that referenced this pull request Mar 6, 2024
This reverts commit c3012ff.

Revert "chore: refactor ResourceManager interface for multirm (#8847)"

This reverts commit 6857ecf.

Revert "chore: refactor proto, schema, and jobservice for multiRM (#8875)"

This reverts commit 7c6bec9.
carolinaecalderon added a commit that referenced this pull request Mar 6, 2024
This reverts commit c3012ff.

Revert "chore: refactor ResourceManager interface for multirm (#8847)"

This reverts commit 6857ecf.

Revert "chore: refactor proto, schema, and jobservice for multiRM (#8875)"

This reverts commit 7c6bec9.
carolinaecalderon added a commit that referenced this pull request Mar 6, 2024
This reverts commit c3012ff.

Revert "chore: refactor ResourceManager interface for multirm (#8847)"

This reverts commit 6857ecf.

Revert "chore: refactor proto, schema, and jobservice for multiRM (#8875)"

This reverts commit 7c6bec9.
carolinaecalderon added a commit that referenced this pull request Mar 7, 2024
* Revert "chore: add multirm module to ResourceManager (#8857)"

This reverts commit c3012ff.

Revert "chore: refactor ResourceManager interface for multirm (#8847)"

This reverts commit 6857ecf.

Revert "chore: refactor proto, schema, and jobservice for multiRM (#8875)"

This reverts commit 7c6bec9.
maxrussell pushed a commit that referenced this pull request Mar 21, 2024
* Revert "chore: add multirm module to ResourceManager (#8857)"

This reverts commit c3012ff.

Revert "chore: refactor ResourceManager interface for multirm (#8847)"

This reverts commit 6857ecf.

Revert "chore: refactor proto, schema, and jobservice for multiRM (#8875)"

This reverts commit 7c6bec9.
eecsliu pushed a commit to determined-ai/determined-release-testing that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants