Constraints refactor - #786
Merged
mergify[bot] merged 7 commits intoJun 11, 2026
Merged
Conversation
sjmonson
self-requested a review
June 9, 2026 20:44
dbutenhof
reviewed
Jun 9, 2026
dbutenhof
left a comment
Collaborator
There was a problem hiding this comment.
A few comments on a very quick first pass ... I'll delve deeper tomorrow morning.
sjmonson
requested changes
Jun 9, 2026
Uses a new format with a kind discriminator and separate args classes. Includes translation layer for the old CLI format to use the new constraints format. Assisted-by: Cursor AI Claude Opus 4.6 Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Assisted-by: Cursor AI Claude Opus 4.6 Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Remove old create method, remove unnecessary comments, and remove unnecessary static function. Assisted-by: Cursor AI Claude Opus 4.6 Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Assisted-by: Cursor AI Claude Opus 4.6 Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Generated-by: Cursor AI Claude Opus 4.6 Signed-off-by: Jared O'Connell <joconnel@redhat.com>
jaredoconnell
force-pushed
the
feat/constraints-refactor
branch
from
June 10, 2026 17:44
14f5a45 to
f813642
Compare
Collaborator
Author
|
This is now rebased and ready for ew-review. |
dbutenhof
reviewed
Jun 10, 2026
…raint Generated-by: Cursor AI Claude Opus 4.6 Signed-off-by: Jared O'Connell <joconnel@redhat.com>
Signed-off-by: Jared O'Connell <joconnel@redhat.com>
jaredoconnell
force-pushed
the
feat/constraints-refactor
branch
from
June 10, 2026 22:01
e0debc9 to
05ca95f
Compare
dbutenhof
approved these changes
Jun 11, 2026
dbutenhof
left a comment
Collaborator
There was a problem hiding this comment.
This is now rebased and ready for ew-review.
Ew ... 😆
sjmonson
approved these changes
Jun 11, 2026
sjmonson
left a comment
Collaborator
There was a problem hiding this comment.
Looks good. Tested locally with a bunch of constraints and all seem to work.
Contributor
Merge Queue Status
This pull request spent 16 seconds in the queue, including 4 seconds running CI. Required conditions to merge
|
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Uses a new format with a
kinddiscriminator and separate args classes. Includes translation layer for the old CLI format to use the new constraints format.Details
max_durationinstead ofmax_secondssince it's more generic and with the follow up refactor we can do--constraint kind=max_duration,seconds=120, which would enable--constraint kind=max_duration,minutes=2, or in the new format--constraint max_duration seconds=120Test Plan
Related Issues
Use of AI
git log
commit d6a2313
Author: Jared O'Connell joconnel@redhat.com
Date: Tue Jun 9 14:22:47 2026 -0400
commit 04c6960
Author: Jared O'Connell joconnel@redhat.com
Date: Tue Jun 9 15:57:43 2026 -0400
commit 03046f3
Author: Jared O'Connell joconnel@redhat.com
Date: Wed Jun 10 11:56:26 2026 -0400
commit 1e73fca
Author: Jared O'Connell joconnel@redhat.com
Date: Wed Jun 10 13:11:01 2026 -0400
commit f813642
Author: Jared O'Connell joconnel@redhat.com
Date: Wed Jun 10 13:26:28 2026 -0400
commit f89bd7b
Author: Jared O'Connell joconnel@redhat.com
Date: Wed Jun 10 17:51:12 2026 -0400
commit 05ca95f
Author: Jared O'Connell joconnel@redhat.com
Date: Wed Jun 10 17:54:39 2026 -0400
Assisted-by: Cursor AI Claude Opus 4.6
Generated-by: Cursor AI Claude Opus 4.6
Signed-off-by: Jared O'Connell joconnel@redhat.com