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

Add semver check for dev and beta version #5757

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Conversation

pmahindrakar-oss
Copy link
Contributor

Why are the changes needed?

Supporting dev and beta versions of the flytekit sdk during semver version checks for literal offloading feature.
Follow up to #5705

What changes were proposed in this pull request?

Do a regex match for the version string passed against a valid semver and use that for comparision with the supported one.

How was this patch tested?

Unit test added to test dev and beta versions

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
Contributor

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

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

Just one minor comment, otherwise LGTM.

flytepropeller/pkg/controller/config/config.go Outdated Show resolved Hide resolved
@pmahindrakar-oss pmahindrakar-oss enabled auto-merge (squash) September 18, 2024 14:59
Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 76.92308% with 3 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@312910d). Learn more about missing BASE report.
Report is 159 commits behind head on master.

Files with missing lines Patch % Lines
flytepropeller/pkg/controller/config/config.go 75.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #5757   +/-   ##
=========================================
  Coverage          ?   36.29%           
=========================================
  Files             ?     1305           
  Lines             ?   109997           
  Branches          ?        0           
=========================================
  Hits              ?    39926           
  Misses            ?    65915           
  Partials          ?     4156           
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (?)
unittests-flyteadmin 55.62% <ø> (?)
unittests-flytecopilot 12.17% <ø> (?)
unittests-flytectl 62.21% <ø> (?)
unittests-flyteidl 7.12% <ø> (?)
unittests-flyteplugins 53.35% <ø> (?)
unittests-flytepropeller 41.88% <76.92%> (?)
unittests-flytestdlib 55.19% <ø> (?)

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

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

@@ -133,6 +134,9 @@ var (
MaxSizeInMBForOffloading: 1000, // 1 GB is the default size before failing fast.
},
}

// This regex is used to sanitize semver versions passed to IsSupportedSDK checks for literal offloading feature.
Copy link
Contributor

Choose a reason for hiding this comment

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

mind including an example of what this matches against with the dev sdk versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Missed this. Will add in follow up PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added here #5758

@pmahindrakar-oss pmahindrakar-oss merged commit 2d9c35b into master Sep 18, 2024
49 of 50 checks passed
@pmahindrakar-oss pmahindrakar-oss deleted the support-dev-semver branch September 18, 2024 15:39
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.

3 participants