Skip to content

refactor(build): remove --rebuild-dependents (redundant after dep-aware key)#5427

Closed
adrians5j wants to merge 1 commit into
claude/build-dep-aware-cache-keyfrom
claude/build-remove-rebuild-dependents
Closed

refactor(build): remove --rebuild-dependents (redundant after dep-aware key)#5427
adrians5j wants to merge 1 commit into
claude/build-dep-aware-cache-keyfrom
claude/build-remove-rebuild-dependents

Conversation

@adrians5j

Copy link
Copy Markdown
Member

Stacked on #5425 — merge that first. Base is the dep-aware-key branch so this diff shows only the removal; retarget to next once #5425 lands.

Why

The dependency-aware effective key (#5425) marks every dependent of a changed package as a cache miss, so dependents rebuild on a plain yarn build. --rebuild-dependents was a manual, order-dependent approximation of the same propagation — it anchored off transient cache misses and silently did nothing if not run on the first build after a change. Now redundant.

Changes

  • getBatches.ts: delete step 1.5 (the dependents taint loop) + the rebuildDependents option
  • buildPackages.ts: drop the rebuildDependents option + pass-through
  • CI: remove --rebuild-dependents → plain yarn build, edited the WAC sources (createInstallBuildSteps.ts, push.wac.ts, pullRequests.wac.ts) and regenerated push.yml / pullRequests.yml

Verified

  • yarn build runs unchanged (flag no longer referenced)
  • generated yml contains no --rebuild-dependents; diffs are purely the flag removal
  • format + lint clean

🤖 Generated with Claude Code

The dependency-aware effective key already marks every dependent of a changed
package as a cache miss, so it rebuilds on a plain `yarn build`. The
`--rebuild-dependents` flag was a manual, order-dependent approximation of the
same thing (it anchored off transient cache misses and could miss its window).

Remove it: the getBatches step 1.5 taint loop + the `rebuildDependents` option,
and drop `--rebuild-dependents` from CI (regenerated push.yml/pullRequests.yml
from their WAC sources).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adrians5j

Copy link
Copy Markdown
Member Author

Superseded: #5425 now gates the dependency-aware key behind WEBINY_EXPERIMENTAL_DEP_AWARE_CACHE (off by default). While it's off, --rebuild-dependents is still the mechanism that rebuilds dependents, so it must stay. Reopen/redo this once the flag is promoted to default-on.

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