merge queue: embarking main (1b711ca) and #1322 together#1337
Closed
mergify[bot] wants to merge 2 commits into
Closed
merge queue: embarking main (1b711ca) and #1322 together#1337mergify[bot] wants to merge 2 commits into
mergify[bot] wants to merge 2 commits into
Conversation
…in Rust `config validate` (#1282) and `config simulate` (#1298) ship native in the Rust binary. With the maturin wheel from the previous commit, both routes resolve to the Rust dispatch — the Python implementations are dead code, just waiting to drift out of sync with the Rust copy. Per the post-port plan agreed during review, every command's Python copy is removed in the same change that makes it releasable as a single Rust source. For commands already merged before the rule was adopted, this commit catches them up: - Delete `mergify_cli/config/` package (cli.py, validate.py). - Delete `mergify_cli/tests/config/` (the 18 Python tests for validate/simulate; the Rust crate's 24 tests cover the same surface plus extras). - Drop the two `[[command]]` entries from `PORT_STATUS.toml` — the inventory test only needs to track *Python* commands, and these are no longer Python. - Trim the cross-command exit-code contract suite of its three config-related cases; the Rust crate enforces those exit codes natively. - Drop the `from mergify_cli.config import cli as config_cli_mod` import + matching `cli.add_command(...)` from the root Python CLI; with no Python config commands left, the `config` group disappears from the click tree (the Rust binary intercepts before any click group lookup, so end-users see no behavior change). The wheel still builds, installs, and runs both `mergify config validate` (Rust native) and `mergify --help` (Python shim). 592 of the previous 610 Python tests pass; the missing 18 are the deleted config tests. Change-Id: Ic88170ca01430b62fb98df9aa5fd8e644bdb6e09
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.
🎉 This pull request has been checked successfully and will be merged soon. 🎉
Branch main (1b711ca) and #1322 are embarked together for merge.
This pull request has been created by Mergify to speculatively check the mergeability of #1322.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.
Required conditions of queue rule
defaultfor merge:title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:#approved-reviews-by>=2author = dependabot[bot]author = mergify-ci-botauthor = renovate[bot]body ~= (?ms:.{48,})#changes-requested-reviews-by = 0#review-requested = 0#review-threads-unresolved = 0check-success=ci-gateRequired conditions to stay in the queue:
base=mainlabel!=manual mergetitle ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:#approved-reviews-by>=2author = dependabot[bot]author = mergify-ci-botauthor = renovate[bot]body ~= (?ms:.{48,})#changes-requested-reviews-by = 0#review-requested = 0#review-threads-unresolved = 0check-success=ci-gate