Repository navigation
refactor: split monorepo.rs and versioning.rs into focused submodules - #449
Merged
Merged
Conversation
There was a problem hiding this comment.
Benchmark
Details
| Benchmark suite | Current: e5c5e51 | Previous: 0b5fe57 | Ratio |
|---|---|---|---|
git_find_tag/100 |
1355511 ns/iter (± 38746) |
||
git_find_tag/1000 |
13933470 ns/iter (± 208995) |
This comment was automatically generated by workflow using github-action-benchmark.
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.
Why
Two more monoliths trimmed down following #447 (config) and #448 (git):
src/monorepo.rssrc/monorepo/— 8 files, biggest isrun.rs(1125 LOC, isolates therun_release_logicpipeline)src/versioning.rssrc/versioning/— 4 filesmonorepo split
mod.rscheckandreleasecheck.rscheckentry pointrelease.rsrelease,cleanup_failed_release_attempt,MAX_RELEASE_REGENERATE_ATTEMPTSrun.rsrun_release_logic— the core pipeline bothcheckandreleasecallpreview.rsutil.rstags_for_package,pick_higher_semver,collect_dirty_files,auto_stage_new_files,is_package_touchedtypes.rsCheckCommit,CheckPackage,CheckResulttests.rsversioning split
mod.rsbootstrap_version,compute_next_version,bump_version,truncate_versionstrategies.rsbump_semver,calver_version,calver_seq_version,bump_sequential,bump_zeroverdetect.rsstrip_tag_prefix,TagClass,classify_tag,detect_strategy_from_tagstests.rsCompat
All external imports unchanged (
use crate::monorepo::*,use crate::versioning::*keep working via re-exports).Verification
cargo test --bin ferrflow→ 598 passedcargo clippy --workspace --all-targets -- -D warnings→ cleancargo fmt --check→ cleanConflict
refactor/git-split-into-modules(#448) andfix/push-tags-shell-out-libgit2-revwalk-bugmay need to be rebased on top of this. Suggested order: merge those two first if possible, then rebase this.