Use Cargo directly for focused Rust tests and Criterion benchmarks. Select the package, target, and features for the change; these examples are alternatives, not a mandatory checklist.
cargo test -p rocketmq-namesrv --test namesrv_bootstrap_config cargo test -p rocketmq-protocol --test request_header_java_compatibility cargo test -p rocketmq-store --test ha_transfer_engine cargo bench -p rocketmq-namesrv --bench topic_table_hot_path_bench cargo bench -p rocketmq-client-rust --features test-support --bench client_hot_path_benchmark
The test and benchmark sources remain owned by their crates. Routine development does not need separate wrappers to enumerate tests, collect prototype reports, or compare historical snapshots.
| Task | Entry point |
|---|---|
| Inspect which root CI checks a path selects | python scripts/ci_scope.py --paths <changed-path> ... |
| Check project instruction routing | PowerShell or Bash |
| Refresh the generated validation index | python scripts/architecture_documentation_guard.py --write |
| Inspect request-header compatibility fixtures | Protocol fixtures |
| Generate Admin operation fixtures | Golden fixture generator |
Train the Broker PGO and BOLT profiles for release images (run by docker/Dockerfile.base) |
Bash |
Scripts used by workflows, compatibility fixtures, or documented manual operations belong here. Keep one-time migration edits and ad hoc report converters out of the maintained toolset. Before removing a script, check imports, callers, workflow routes, fixture generators, and documentation; the absence of a CI invocation alone does not make a manual tool obsolete.
- Choose the next version based on public API compatibility. Update
workspace.package.versionand the corresponding internal dependency versions in the rootCargo.toml. Members keepversion.workspace = trueand inherit shared dependencies throughworkspace.dependencies. - Update existing version requirements in standalone
Cargo.tomlfiles that point to the changed root workspace crates. Keep independent package versions and unrelated dependency requirements unchanged. - Run
cargo update --workspaceat the repository root. Refresh each affected standalone lockfile withcargo update --workspace --manifest-path <path/to/Cargo.toml>, including consumers with path-only dependencies. Review the Cargo-generated diffs; do not edit lockfiles by hand. Add--offlinewhen all dependencies are cached. - Run the relevant package and consumer checks with
--locked, following theirAGENTS.mdguides. At release time, move the relevantCHANGELOG.mdentries fromUnreleasedinto a dated version section with a comparison link. The release tag must matchv<workspace.package.version>.
| Directory | Current purpose |
|---|---|
interop/ |
Live Java/Rust, HA, and storage-fault interoperability checks |
java/ |
Java client compatibility smoke harness |
kubernetes/ |
Live cluster fault operations for dedicated qualification runs |
fixtures/ |
Input corpora and generated compatibility data used by maintained tools |
tests/ |
Regression tests and fixtures for maintained script behavior |
Retired stage-closeout assertions, module size freezes, implementation fingerprints, and V2/V3 or remoting refactor baseline collectors are no longer development gates. Historical review reports remain reference material. Use the maintained crate tests and benchmark targets when investigating behavior or performance.
The M10 target-hardware report collectors and the Transport P0, persistent-TCP, and TLS RSS probes are retired. Package-owned Criterion benchmarks and behavior tests remain maintained. Run one-off measurement helpers inline or from a system temporary directory outside the repository, and keep their outputs there as well.
The completed M04-M09 migration suites have been retired, including source-text,
fixed-layout, line-count, and exact-ledger assertions. Their milestone_contract
runner tier is no longer available. Use the owning crate's behavior tests and the
maintained dependency/API checks when those boundaries change. Dynamic-fixture
regression suites remain available through the current CI routes.
The completed Store capability and canonical-export source checks, Trait identity inventory, Rust lint debt inventory, and central debt count gate are also retired, including their dedicated tests and unused baselines. Keep regression tests for maintained CI routing, generators, runtime/error checks, and compatibility behavior. Removing an obsolete gate includes its workflow calls, runner inventory entry, and documentation commands.
The 1.0 release-candidate system is retired as well: the v1 capability, functional
acceptance, candidate lifecycle, and phase-aware core release checks; the candidate,
handoff, archive, SBOM, OCI layout, Helm, and crate staging tools under distribution/;
and the release-candidate, v1-functional-acceptance, and core-service-image-publish
workflows. Registry packages are prepared with Cargo directly. core-release-scope.json
remains because the --scope core-release checks below read it.
| Purpose | Maintained command |
|---|---|
| Package layering and dependency direction | python scripts/architecture_dependency_guard.py --scope core-release |
| Production unsafe and runtime contracts | python scripts/rust_hygiene_guard.py --scope core-release |
| Typed errors and safe output | python scripts/error_architecture_guard.py |
| Public API intent | python scripts/public_api_intent_guard.py --scope core-release |
| Telemetry contracts and generated metrics | python scripts/telemetry_semantic_guard.py --scope core-release; python scripts/generate_metric_catalog.py --check |
| Relevant property/state tests | python scripts/run_property_state_suites.py --suite <suite-id> |
| Runtime ownership review report | python scripts/runtime_audit.py --scope core-release (PowerShell/Bash wrappers are also available) |
ArcMut location freezes, full public API snapshots, M10 performance gates, release-plan snapshots, cross-registry quotas, and runtime escape inventories are retired with their dedicated tests and data. Dependency checks validate actual boundaries; they do not freeze dependency versions, feature lists, or package counts. Rust hygiene keeps safety failures and reports other observations without a baseline. Runtime auditing now uses one cross-platform report generator; no fingerprints, per-file migration dispositions, or baseline-enforcement options remain.
Keep operational tools for fixture generation, container checks, interoperability, and live fault/soak testing. Select those tools for the corresponding task; they are not an additional routine development checklist.