Repository navigation
Conversation
This branch has not been deployed
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.
Boundary Metadata (Machine-Checked)
问题与目的(Scope Contract & Summary)
#7224,修改oasis7_world_state),rust-baseline耗时高达20.2m,成为核心 Rust PR 进入10m窗口的主要并行瓶颈之一。根因在于plan-rust-required-scope.py与cargo-dev-architecture.py的build_policy_version=2沿用了v1(inline 模式)的not plan['oasis7_required_wasm_packages']与extra_groups <= {'consensus', 'distfs', 'net', 'node'}限制:只要触达oasis7_world_state或oasis7_runtime,传递依赖就会拉入oasis7_required_wasm_packages(及workspace_support、viewer_js_required、launcher_web、pixel_world_bridge、fleet_health等已单独调度的反向消费者组),导致build_policy_version=2100% 不生效,cargo-dev-architecture.py在rust-baseline内串行重跑多达 34 次额外 profilecargo check(耗时约10m+),之后同一台机器再串行跑ordinary_clippy与ordinary_wasm。doc/testing/ci/ci-pr-fast-and-periodic-full-design.md中architecture.build_policy_version的范围说明;build_policy_version=1/2既有语义与历史兼容回退 100% 不变的前提下,在scripts/plan-rust-required-scope.py与scripts/cargo-dev-architecture.py中新增build_policy_version=3:当ordinary_wasm_group == 'rust_baseline'已承接oasis7_required_wasm_packages(严格子集于PORTABLE_REQUIRED_PACKAGES)的wasm32-unknown-unknown检查、且所有额外选中组均由policy_shapackage_groups与真实 Cargo 反向依赖边证明为受影响消费者组时,保留全部cargo tree依赖图边界检查并将冗余额外 profilecargo check延后至periodic-full/candidate-full;scripts/cargo-dev-architecture.test.py与scripts/plan-rust-required-scope-targeted-plans.test.py补齐v3正负向与防篡改回归单测。.github/workflows/rust.yml或scripts/ci-required-scope.json。本次改动与结果
验证结果(
testing-manual.md)scripts/cargo-dev-architecture.test.pyscripts/plan-rust-required-scope-targeted-plans.test.py./scripts/doc-governance-check.sh&./scripts/check-pr-boundaries.sh --slice Chore --allowed-crates nonepython3 scripts/check-local.py --profile quick --base-ref origin/mainRequirement trace (when applicable)
O7-REQ-a34ef03b-c8ee-4988-af23-67ad20e65e29:快速反馈与四小时完整回归要求、CI PR 快速反馈与周期完整回归设计rust-baseline中重复执行 30+ 次额外架构 profilecargo check的~10m串行开销。