Skip to content

feat: Massed Compute - #151

Merged
drewmalin merged 6 commits into
mainfrom
dm/massedcompute
Aug 27, 2026
Merged

feat: Massed Compute#151
drewmalin merged 6 commits into
mainfrom
dm/massedcompute

Conversation

@drewmalin

@drewmalin drewmalin commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Some odd things:

  • Their openapi spec is not valid, so it requires repair (see the patch file and Makefile that generates the "final" spec)
  • Their API does not include hardware details, so the "description" field must be parsed
  • Their API does not accept "region_name" as an input -- they instead decide on where an instance lands internally.

I've raised these with their team, so in the future we will need to consume fixes.

@drewmalin
drewmalin marked this pull request as ready for review August 27, 2026 17:58
@drewmalin
drewmalin requested a review from a team as a code owner August 27, 2026 17:58
const (
CloudProviderID = "massedcompute"
DefaultAPIURL = "https://vm.massedcompute.com/api/v1"
massedComputeLocation = "massedcompute" // Massed Compute does not support location selection, so report all locations as "massedcompute"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lol

const (
CloudProviderID = "massedcompute"
DefaultAPIURL = "https://vm.massedcompute.com/api/v1"
massedComputeLocation = "massedcompute" // Massed Compute does not support location selection, so report all locations as "massedcompute"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lol

return instance, nil
}

func validateCreateInstanceAttrs(attrs v1.CreateInstanceAttrs) error {

@patelspratik patelspratik Aug 27, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do they have a max chars limit for name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tripled the typical name and didn't see a validation error (> 200 characters), so we should be good.

}

func (c *MassedComputeClient) listRunningInstances(ctx context.Context) ([]openapi.RetrieveAllRunningInstancesV1RunningInstancesInner, error) {
resp, httpResp, err := c.client.InstancesAPI.InstanceGet(ctx).Execute()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not paged?

Comment on lines +88 to +89
memoryBytes := v1.NewBytes(v1.BytesValue(int32Value(specs.MemoryGib)), v1.Gibibyte)
storageBytes := v1.NewBytes(v1.BytesValue(int32Value(specs.StorageGb)), v1.Gigabyte)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why does everyone make this so god damn hard

@drewmalin
drewmalin merged commit 9c99629 into main Aug 27, 2026
4 checks passed
@drewmalin
drewmalin deleted the dm/massedcompute branch August 27, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants