-
Notifications
You must be signed in to change notification settings - Fork 674
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
fix(admin): validate cron expression in launch plan schedule #5951
fix(admin): validate cron expression in launch plan schedule #5951
Conversation
Thank you for opening this pull request! 🙌 These tips will help get your PR across the finish line:
|
- Add cron expression validation using robfig/cron parser - Fix test cases to use correct 5-field cron format - Update invalid cron expression tests to expect errors - Remove extra asterisk from cron patterns in tests Signed-off-by: peterxcli <[email protected]>
4b340ca
to
5a6cdbe
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5951 +/- ##
===========================================
+ Coverage 33.09% 50.87% +17.77%
===========================================
Files 1013 1164 +151
Lines 107489 89630 -17859
===========================================
+ Hits 35570 45596 +10026
+ Misses 68767 40005 -28762
- Partials 3152 4029 +877
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Lgtm |
Reorder imports to follow gci standards with groups: 1. stdlib 2. third-party 3. internal/flyteorg packages Signed-off-by: peterxcli <[email protected]>
64e24f4
to
3957a55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, could you update the PR description
@pingsutw Thanks for reviewing this PR desc updated! please take a look, thanks! |
Is the codecov decrement a normal situation? Maybe this additional validation make some test fail earlier, which are also expected to fail? Or just a unrelated flake? |
Oh ok, checks passed after merging master branch😅 |
Congrats on merging your first pull request! 🎉 |
Tracking issue
#4953
Why are the changes needed?
Validate cron expression in launch plan schedule first, preventing "runtime error" when LPs are really scheduled.
What changes were proposed in this pull request?
Validate cron expression in launch plan schedule when they are created or updated.
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link