Repository navigation
fix(affected): narrower pnpm-workspace.yaml selection; chain-first admission - #381
Merged
Merged
Conversation
…gest dependent chain A packages:-only edit to pnpm-workspace.yaml reaches the root and the packages whose membership changed; other setting edits reach the packages that resolve from the root. Waiting targets take free slots by the longest chain they gate, then by request order, instead of whichever lock poll came first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
ArchDev is watching this pull request. State: settled (cycle 1 of 1 for head b15c81c).
Paused by the |
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.
Review on ArchCode
Problem and author intent
Two scheduling problems seen in firstlanding CI.
pnpm-workspace.yamledit ran every Node project in full.src/related/engine.rsmarked everynodejsproject under the file's directory with "pnpm-workspace.yaml changed; running in full".pnpm-lock.yamledits were already narrowed to the importers they change; the workspace file was not.packages:, yet it selected 112 dependents, including the 10-minute Rust e2e lane.What changed
src/related/engine.rs,src/git/affected.rs,src/plugins/nodejs.rs):packages:list changed → only packages whose membership changed are reached. The lockfile rule judges their importers.node_modules(nopnpm-workspace.yaml,pnpm-lock.yamlornode_modulesof their own).packages:list reaches everything, as before.#after whitespace, outside quotes), so a#inside a value can't hide an edit.src/executor/admission_order.rs,admission.rs):ReadyQueuealso releases longest chain first.#[cfg(unix)].Scope and risk
Planner and executor. Medium risk.
User impact
Fewer targets for
packages:-only workspace edits, and chain-gating targets start earlier. No CLI or config change.Testing
asterbinary.a_pnpm_workspace_edit_runs_only_the_packages_it_can_reachintests/related.rscoverspackages:-only edits, settings edits, unlisted nested projects and#in values.the_target_gating_the_longest_chain_takes_a_slot_before_independent_targetsintests/execution_capacity.rsruns 4 slots and 9 ready targets, withz-gategating a chain. Against the old binary it failed 6 of 6 times, with a different random admitted set each time.--related --dry-run:ReadyQueue(12 independent 5 s targets, a 1 s → 10 s → 10 s chain, 4 slots): 36 s → 25 s.-D warnings,cargo doc -D warnings, andcargo test --all-targets --all-features.Follow-ups
Merge order: independent of the plan replay PR. Both touch
src/git/affected.rsandtests/related.rs, so whichever merges second may need a rebase.🤖 Generated with Claude Code