feat: introduce unified sync command and grouped syncs#500
Draft
okurz wants to merge 2 commits intoopenSUSE:masterfrom
Draft
feat: introduce unified sync command and grouped syncs#500okurz wants to merge 2 commits intoopenSUSE:masterfrom
okurz wants to merge 2 commits intoopenSUSE:masterfrom
Conversation
Motivation: The CLI was getting cluttered with commands mostly used for testing or advanced debugging. Design Choices: Used Typer sub-apps to group "repo-diff" and "sub-comment" under an "advanced" sub-command. Benefits: Cleaner main CLI interface while keeping necessary debugging tools available.
Motivation: Each command execution in production has a high container startup overhead. Combining the most frequent sync operations into a single command reduces this overhead significantly. Design Choices: - Introduced a new "sync" command that runs both SMELT and Gitea syncs. - Moved individual "smelt-sync" and "gitea-sync" commands into the "advanced" sub-command group. - Added hidden, deprecated top-level aliases for "smelt-sync" and "gitea-sync" to maintain backward compatibility. - Unified sync accepts all Gitea-related options. Benefits: - Reduced production runtime by approximately 30 seconds per execution. - Improved CLI organization while maintaining compatibility with existing automation pipelines.
c21effa to
0ec9025
Compare
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.
Motivation:
Each command execution in production has a high container startup overhead.
Combining the most frequent sync operations into a single command reduces this
overhead significantly.
Design Choices:
sub-command group.
to maintain backward compatibility.
Benefits:
automation pipelines.