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

Improvement: accept int value for Resources #2196

Merged
merged 13 commits into from
Apr 30, 2024

Conversation

lowc1012
Copy link
Contributor

@lowc1012 lowc1012 commented Feb 16, 2024

Tracking issue

Closes flyteorg/flyte #4691

Why are the changes needed?

Make str and int available for mem, gpu and ephemeral_storage.
Make str, int, float available for cpu.

What changes were proposed in this pull request?

Update Resources class in flytekit/core/resources.py

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Copy link

welcome bot commented Feb 16, 2024

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 16, 2024
@lowc1012 lowc1012 marked this pull request as draft February 16, 2024 11:11
@lowc1012 lowc1012 marked this pull request as ready for review February 16, 2024 11:26
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 16, 2024
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.59%. Comparing base (bf38b8e) to head (9976397).
Report is 4 commits behind head on master.

❗ Current head 9976397 differs from pull request most recent head 1c6be50. Consider uploading reports for the commit 1c6be50 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2196      +/-   ##
==========================================
- Coverage   83.04%   80.59%   -2.45%     
==========================================
  Files         324      180     -144     
  Lines       24861    17856    -7005     
  Branches     3547     3483      -64     
==========================================
- Hits        20645    14391    -6254     
+ Misses       3591     2843     -748     
+ Partials      625      622       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
Signed-off-by: Ryan Lo <wenchih@apache.org>
@eapolinario
Copy link
Collaborator

Can you merge master ?

@pingsutw pingsutw merged commit 7278c92 into flyteorg:master Apr 30, 2024
47 checks passed
Copy link

welcome bot commented Apr 30, 2024

Congrats on merging your first pull request! 🎉

austin362667 pushed a commit to austin362667/flytekit that referenced this pull request May 9, 2024
Signed-off-by: Ryan Lo <wenchih@apache.org>
Co-authored-by: Kevin Su <pingsutw@gmail.com>
austin362667 pushed a commit to austin362667/flytekit that referenced this pull request May 10, 2024
Signed-off-by: Ryan Lo <wenchih@apache.org>
Co-authored-by: Kevin Su <pingsutw@gmail.com>
fiedlerNr9 pushed a commit that referenced this pull request Jul 25, 2024
Signed-off-by: Ryan Lo <wenchih@apache.org>
Co-authored-by: Kevin Su <pingsutw@gmail.com>
Signed-off-by: Jan Fiedler <jan@union.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support passing integer to flytekit.resource
3 participants