Skip to content

fix(workspace): clean up owners and conformance project refs on remove#34815

Draft
barbados-clemens wants to merge 3 commits intomasterfrom
cu/remove-handles-owners-conformance-projects
Draft

fix(workspace): clean up owners and conformance project refs on remove#34815
barbados-clemens wants to merge 3 commits intomasterfrom
cu/remove-handles-owners-conformance-projects

Conversation

@barbados-clemens
Copy link
Contributor

Current Behavior

When a project is removed via @nx/workspace:remove, stale references to that project can remain in nx.json under conformance.rules[].projects and owners.patterns[].projects.

Expected Behavior

The remove generator now strips exact project name matches from:

  • conformance.rules[].projects — both plain string entries and { matcher, explanation } objects
  • owners.patterns[].projects — plain string entries

Glob patterns (e.g. finance-*), tag references (e.g. tag:rust), and other non-exact-match filters are left untouched.

Related Issue(s)

🤖 Generated with Claude Code

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 1671b1a
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69b43b25527e12000872057e
😎 Deploy Preview https://deploy-preview-34815--nx-dev.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.

@netlify
Copy link

netlify bot commented Mar 13, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 1671b1a
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69b43b25a326e0000897d637
😎 Deploy Preview https://deploy-preview-34815--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
Contributor

nx-cloud bot commented Mar 13, 2026

View your CI Pipeline Execution ↗ for commit 1671b1a

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ❌ Failed 51m 54s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 59s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-13 17:26:07 UTC

When removing a project, also strip exact project name matches from
`conformance.rules[].projects` and `owners.patterns[].projects` in
nx.json so stale references don't linger.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@barbados-clemens barbados-clemens force-pushed the cu/remove-handles-owners-conformance-projects branch from ac82355 to 028acf8 Compare March 13, 2026 15:20
Add the owners configuration object to nx-schema.json matching the
docs (format, outputPath, patterns, GitLab sections). Also update the
remove generator to filter project refs from section-level patterns
and handle the `owners: true` shorthand.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
nx-cloud[bot]

This comment was marked as outdated.

Add the owners configuration object to nx-schema.json matching the
docs (format, outputPath, patterns, GitLab sections). Also update the
remove generator to filter project refs from section-level patterns
and handle the `owners: true` shorthand.

Co-Authored-By: Claude Opus 4.6 <[email protected]> [Self-Healing CI Rerun]
Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud has identified a possible root cause for your failed CI:

We identified that the e2e-gradle:e2e-ci--src/gradle-import.test.ts failure is unrelated to this PR's changes, which are scoped entirely to the nx schema and workspace remove generator. The failure appears to stem from an environment or infrastructure issue during test setup, as the task output showed node_modules installation activity rather than a test assertion error.

No code changes were suggested for this issue.

Trigger a rerun:

Rerun CI

Nx Cloud View detailed reasoning on Nx Cloud ↗

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.


🎓 Learn more about Self-Healing CI on nx.dev

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