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

feat: add disk storage to session launchers #590

Merged
merged 9 commits into from
Jan 13, 2025

Conversation

leafty
Copy link
Member

@leafty leafty commented Dec 20, 2024

Closes #589.

Add a new disk_storage field to session launchers so that a custom disk size can be persisted.

Note: the disk storage size is not validated when saved.

See also: SwissDataScienceCenter/renku-ui#3463
Deployment: https://renku-ci-ui-3463.dev.renku.ch/

@coveralls
Copy link

coveralls commented Dec 20, 2024

Pull Request Test Coverage Report for Build 12743932319

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 23 of 23 (100.0%) changed or added relevant lines in 6 files are covered.
  • 7 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.02%) to 86.854%

Files with Coverage Reduction New Missed Lines %
components/renku_data_services/base_api/error_handler.py 1 89.47%
components/renku_data_services/crc/models.py 1 85.35%
components/renku_data_services/crc/db.py 2 85.68%
components/renku_data_services/crc/blueprints.py 3 93.06%
Totals Coverage Status
Change from base Build 12704979609: 0.02%
Covered Lines: 15202
Relevant Lines: 17503

💛 - Coveralls

@leafty leafty marked this pull request as ready for review December 24, 2024 07:57
@leafty leafty requested a review from a team as a code owner December 24, 2024 07:57
Copy link
Contributor

@m-alisafaee m-alisafaee left a comment

Choose a reason for hiding this comment

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

Thanks Flora! Please see my comments.

@@ -451,6 +455,7 @@ async def test_patch_session_launcher(
assert res.json.get("name") == patch_payload["name"]
assert res.json.get("description") == patch_payload["description"]
assert res.json.get("resource_class_id") == patch_payload["resource_class_id"]
assert res.json.get("disk_storage") == 3
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: We should add a test to check disk storage isn't modified if it isn't sent in the PATCH.

Copy link
Contributor

Choose a reason for hiding this comment

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

I've added a commit with the test.

Copy link
Member Author

Choose a reason for hiding this comment

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

🙏 Thank you!

@leafty leafty enabled auto-merge (squash) January 13, 2025 09:09
@leafty leafty merged commit fce24d6 into main Jan 13, 2025
12 checks passed
@leafty leafty deleted the leafty/add-disk-size-session-envs branch January 13, 2025 09:22
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.

Persist the requested disk size for session launchers
3 participants