-
Notifications
You must be signed in to change notification settings - Fork 34
Add "around" constraint for fuzzy schedule syntax #6664
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
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot support utc Time , am/pm. Reuse existing parser. |
Implement parser support and scattering algorithm for "daily around HH:MM" syntax. Uses deterministic hash-based scattering within ±2 hour window around target time. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
All tests pass, code is formatted and linted. Implementation complete. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot make +- 1 h |
…straint The implementation already supports UTC offsets and am/pm format by reusing the existing parseTime function. Added explicit test coverage and documentation. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in commit 6180fe4. The implementation already supported UTC offsets and am/pm format by reusing the existing Supported formats:
|
|
@copilot update/add fuzz tests for the new format |
Updated window size to 120 minutes (±1 hour) as requested. This provides tighter time constraints while still distributing load. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added seed corpus with valid and invalid "around" schedule patterns including UTC offsets and am/pm formats. Enhanced fuzz test validation to properly handle FUZZY:DAILY_AROUND format. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in commit 16b132e. Added comprehensive fuzz test coverage including: Valid patterns (20+ seeds):
Invalid patterns (12+ seeds):
Enhanced validation to properly handle |
Implementation Complete: "around" Constraint in Fuzzy Scheduling
✅ All implementation tasks completed successfully!
parseBase()inschedule_parser.goto recognize "around" keywordparseTime()parser for UTC and am/pm supportScatterSchedule()to handle FUZZY:DAILY_AROUND patternImplementation Summary:
daily around HH:MMsyntax (e.g.,daily around 14:00,daily around 9am)parseTime()function to automatically support:utc+9,utc-5,utc+05:30)3pm,11am)midnight,noon)HH:MM)Example Usage:
The implementation is complete, tested, and ready for review.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.