Skip to content

feat(rust): complete native component and scope fork workflows - #276

Merged
zkochan merged 6 commits into
rust-workspace-materializationfrom
rust-client-fork-completion
Oct 18, 2026
Merged

zkochan merged 6 commits into
rust-workspace-materializationfrom
rust-client-fork-completion

Conversation

@zkochan

@zkochan zkochan commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Native component and scope fork workflows

bit fork and bit scope fork now use the Rust client engine for local, remote and patterned selection, immutable source capture, materialization, refactoring, bitmap/provenance updates, package links, history and dependency-policy publication. Actual Harmony/environment/onLoad/onComponentAdd, package/compiler and TypeScript AST adapters remain in the installed CLI. Remote forks use private source captures without publishing imported model objects into the consumer scope.

The implementation preserves the released CLI’s local/remote option-forwarding differences, remote ordering, duplicate local/remote matches, callback failure prefixes and exact dependency-cache serialization. Shared rename planning reuses lazy package regex matchers per phase and scope rename combines cache seeding with the following on-add host request while retaining capture/proof boundaries.

Validation

  • All seven required local checks and Rust scope validation pass: 1,460 workspace tests and 735 strict e2e tests on head 26249cc8d.
  • 34 strict fork fixtures cover local, file/HTTP remote, batch, AST, callbacks, installation and failures; all 14 original fork and three scope-fork assertions are individually mapped.
  • Complete-command qualification: all 360 fresh-copy pairs pass across 24 workloads, 350 native pairs and 70 eligible native workload/mode medians lower than Node. Ten intentionally delegated add CI error pairs are excluded. Each whole workload qualified on its first attempt after 20 quiet seconds and a closed 0.5-second CPU monitor. Source 4799396e8, release binary, helper fingerprints, complete samples and prior slower trials are preserved in scripts/rust/benchmarks/fork-planning-reuse*.json and fork-completion*.json. The earlier baseline passed all correctness checks but scope rename CI was 1021.802ms versus Node 1014.847ms; the changed implementation measured 1014.069ms versus Node 1041.988ms. No unchanged rerun or sample deletion replaced that result. These are warm-metadata Linux file-remote fixtures, not first-use/network/cross-platform speed claims.
  • Windows fork parity receives its own CI shard; all 19 actual cross-platform checks must pass on the final head before merge. Installation project paths use Windows separators. Functional batch fixtures register a real target environment and verify callback receipts before comparing complete histories.
  • Installation comparisons validate completion durations and one exact redundant timer-driven zero-add redraw immediately before the hard-link banner. The banner must repeat identical counters and control bytes; all distinct transitions, messages, paths and full installation state remain exact. Three parser cases reject changed counters, controls and ordering. Production reporting and benchmark helpers are unchanged.
  • Offline doctor fixtures preserve strict result/request counts and record actual BVM child output/exit and tunnel lifecycle on failure. These are diagnostics; no transport fix or retry is introduced.

Unsupported grammar/inventory and unsafe preflight plans decline before providers or mutation; once effects begin, failures remain owned. Node service retirement remains separate because fallback registrations, IDE APIs, extensions and server endpoints still use those services.

Part of #73. Base: rust-workspace-materialization; this is a fork PR for subsequent integration into teambit#10813, which remains open.

@zkochan zkochan mentioned this pull request Oct 18, 2026
9 tasks done
@zkochan
zkochan merged commit f8929e6 into rust-workspace-materialization Oct 18, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant