Skip to content

feat(FR-777): use resource limit of resource group#3480

Merged
graphite-app[bot] merged 1 commit into
mainfrom
feature/resource-limit-per-resource-group
Apr 11, 2025
Merged

feat(FR-777): use resource limit of resource group#3480
graphite-app[bot] merged 1 commit into
mainfrom
feature/resource-limit-per-resource-group

Conversation

@yomybaby
Copy link
Copy Markdown
Member

@yomybaby yomybaby commented Apr 10, 2025

Resolves #3463 (FR-777)

To conduct the test, you must use the environment at lablup/backend.ai#4108. There is a test server for this PR, and related details can be found at the following link.

This PR adds several new GraphQL types and queries:

  1. (Key change) Enhanced resource limit calculation to consider scaling group resource limits
  2. Update schema for resource_slot_limit field to the ScalingGroup type to expose resource limits
  3. Fixed number formatting in DynamicUnitInputNumberWithSlider to prevent trailing zeros

@github-actions github-actions Bot added the size:L 100~500 LoC label Apr 10, 2025
Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 10, 2025

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
4.21% (-0% 🔻)
408/9682
🔴 Branches
3.59% (-0% 🔻)
240/6677
🔴 Functions
2.56% (-0% 🔻)
79/3090
🔴 Lines
4.15% (-0% 🔻)
393/9470
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / useResourceLimitAndRemaining.tsx
18.75% (-1.25% 🔻)
4.92% (-0.44% 🔻)
6.25% (-0.42% 🔻)
19.15% (-1.31% 🔻)

Test suite run success

124 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 4c1d325

@yomybaby yomybaby force-pushed the feature/resource-limit-per-resource-group branch 2 times, most recently from e45d290 to 1507691 Compare April 11, 2025 07:48
@yomybaby yomybaby marked this pull request as ready for review April 11, 2025 07:54
Copy link
Copy Markdown
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Apr 11, 2025

Merge activity

Resolves #3463 (FR-777)

To conduct the test, you must use the environment at lablup/backend.ai#4108. There is a test server for this PR, and related details can be found at the following [link](https://teams.microsoft.com/l/message/19:acd1be4236b94664b814f4d4e5c84da6@thread.skype/1744025901127?tenantId=13c6a44d-9b52-4b9e-aa34-0513ee7131f2&groupId=74ae2c4d-ec4d-4fdf-b2c2-f5041d1e8631&parentMessageId=1744011801142&teamName=devops&channelName=JIRA%20Issue%20Notification&createdTime=1744025901127).

This PR adds several new GraphQL types and queries:

1. (Key change) **Enhanced resource limit calculation to consider scaling group resource limits**
2. Update schema for `resource_slot_limit` field to the ScalingGroup type to expose resource limits
3. Fixed number formatting in DynamicUnitInputNumberWithSlider to prevent trailing zeros
@graphite-app graphite-app Bot force-pushed the feature/resource-limit-per-resource-group branch from 1507691 to 4c1d325 Compare April 11, 2025 09:46
@graphite-app graphite-app Bot merged commit 4c1d325 into main Apr 11, 2025
6 checks passed
@graphite-app graphite-app Bot deleted the feature/resource-limit-per-resource-group branch April 11, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resource allocation max limit based on resource group setting

2 participants