Skip to content

feat(release)!: release graph aware filtering, updateDependents can now be "always"#32971

Merged
JamesHenry merged 1 commit intomasterfrom
release-graph
Oct 8, 2025
Merged

feat(release)!: release graph aware filtering, updateDependents can now be "always"#32971
JamesHenry merged 1 commit intomasterfrom
release-graph

Conversation

@JamesHenry
Copy link
Copy Markdown
Contributor

@JamesHenry JamesHenry commented Oct 6, 2025

When release groups changed to become more flexible and powerful, with updateDependents tracing across any number of transitive release groups, the logic for filtering (e.g. --projects and --groups on the CLI) was never updated to reflect this new dynamism and complexity.

Now in this PR, release graph construction has been fully separated out from the release-group-processor. It now lives in the new ReleaseGraph. This is also now where filtering takes place so that the filters can be fully graph aware.

There is additionally a new always option available for updateDependents in addition to auto and never which are unchanged. always means that a project's dependents will be updated wherever they may live in the graph, regardless of whether or not they were directly included within a project or graph filter. We feel that this is what people want most of the time so this is also going to become the default in a follow up breaking change PR. In order to be easier to review, and to increase confidence in this refactor, this PR does not yet make that change to leave as many tests as possible untouched (other than utilities changing).

BREAKING CHANGE: The signature of init() on VersionActions has changed, it no longer accepts a second argument. Validation of the manifest files, if any, now takes place via a separate method (validate()) call after construction of the new ReleaseGraph. For the most part, users do not need custom VersionActions so only a small percentage of consumers should be impacted.

Fixes #31273

@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 8, 2025 1:08pm

@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 6, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit dbcad4f
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68e6582a645e260007394473
😎 Deploy Preview https://deploy-preview-32971--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Oct 6, 2025

View your CI Pipeline Execution ↗ for commit dbcad4f

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 5m 47s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 42s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 6s View ↗
nx documentation ✅ Succeeded 53s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-08 13:21:47 UTC

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

@JamesHenry JamesHenry changed the title chore(core): wip feat(release): use new ReleaseGraph to apply group aware filtering Oct 8, 2025
@JamesHenry JamesHenry changed the title feat(release): use new ReleaseGraph to apply group aware filtering feat(release)!: release graph aware filtering, updateDependents can now be "always" Oct 8, 2025
nx-cloud[bot]

This comment was marked as resolved.

@JamesHenry JamesHenry marked this pull request as ready for review October 8, 2025 13:24
@JamesHenry JamesHenry requested review from a team and Coly010 as code owners October 8, 2025 13:24
@JamesHenry JamesHenry merged commit 55c0ce2 into master Oct 8, 2025
26 of 27 checks passed
@JamesHenry JamesHenry deleted the release-graph branch October 8, 2025 14:22
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nx release version - unable to find project

2 participants