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

Validate labels before creating flyte CRD #5671

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Validate labels before creating flyte CRD #5671

merged 1 commit into from
Aug 20, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Aug 19, 2024

Tracking issue

NA

Why are the changes needed?

Admin created the flyte CRD three times when using invalid labels in the execution and showed the error in flyteconsole.

We should validate labels before creating a CRD and return the error message to the client side (flytekit).

What changes were proposed in this pull request?

Validate labels before creating flyte CRD.

How was this patch tested?

pyflyte run --labels flyte=gwllo:123 --remote flyte-example/getting_started.py wf

Setup process

Screenshots

Before:

Screenshot 2024-08-19 at 3 24 22 PM Screenshot 2024-08-19 at 3 24 33 PM

After:
Screenshot 2024-08-19 at 3 24 53 PM

Check all the applicable boxes

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

Related PRs

NA

Docs link

NA

Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.17%. Comparing base (6292dec) to head (45e4d54).
Report is 180 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5671      +/-   ##
==========================================
+ Coverage   35.90%   36.17%   +0.27%     
==========================================
  Files        1301     1302       +1     
  Lines      109401   109494      +93     
==========================================
+ Hits        39275    39611     +336     
+ Misses      66029    65745     -284     
- Partials     4097     4138      +41     
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (ø)
unittests-flyteadmin 55.33% <100.00%> (+1.66%) ⬆️
unittests-flytecopilot 12.17% <ø> (ø)
unittests-flytectl 62.32% <ø> (+0.04%) ⬆️
unittests-flyteidl 7.08% <ø> (-0.02%) ⬇️
unittests-flyteplugins 53.31% <ø> (ø)
unittests-flytepropeller 41.74% <ø> (-0.02%) ⬇️
unittests-flytestdlib 55.35% <ø> (+0.08%) ⬆️

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.


🚨 Try these New Features:

@pingsutw pingsutw requested a review from katrogan August 20, 2024 04:37
Copy link
Contributor

@katrogan katrogan left a comment

Choose a reason for hiding this comment

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

nice, thank you!

@pingsutw pingsutw merged commit ff12f36 into master Aug 20, 2024
49 of 50 checks passed
@pingsutw pingsutw deleted the validate-label branch August 20, 2024 16:50
pmahindrakar-oss pushed a commit that referenced this pull request Sep 9, 2024
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
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