Skip to content

fix(core): disable ignore filters for outputs expansion#34316

Merged
FrozenPandaz merged 1 commit intomasterfrom
gh-32620
Feb 5, 2026
Merged

fix(core): disable ignore filters for outputs expansion#34316
FrozenPandaz merged 1 commit intomasterfrom
gh-32620

Conversation

@leosvelperez
Copy link
Copy Markdown
Member

Current Behavior

When a task output directory contains a nested .gitignore that hides its contents, Nx can treat the outputs as already present and skip restoring them from cache. This can result in generated files being missing from disk, even though the cache entry is valid.

Expected Behavior

Nx should restore cached outputs regardless of ignore rules inside the output directory.

Related Issue(s)

Fixes #32620

@leosvelperez leosvelperez self-assigned this Feb 4, 2026
@leosvelperez leosvelperez requested review from a team as code owners February 4, 2026 13:46
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 4, 2026

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

Project Deployment Actions Updated (UTC)
nx-dev Ready Ready Preview Feb 4, 2026 5:54pm

Request Review

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 4, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 3ae6dd3
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69847f61512c84000885ba28
😎 Deploy Preview https://deploy-preview-34316--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 Feb 4, 2026

View your CI Pipeline Execution ↗ for commit 3ae6dd3

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 1h 19s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 50s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s 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-02-05 12:36:41 UTC

nx-cloud[bot]

This comment was marked as outdated.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 4, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 3ae6dd3
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69847f61986ee1000814c841
😎 Deploy Preview https://deploy-preview-34316--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.

Copy link
Copy Markdown
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.

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud is proposing a fix for your failed CI:

We added .gradle to the list of always-ignored directories in the file walker to fix the Gradle e2e test failure. The PR's change to disable standard filters for output expansion was allowing the walker to enter .gradle/ directories, which interfered with Gradle daemon lock files and caused the daemon to shut down with "stop command received" errors.

Warning

We could not verify this fix.

diff --git a/packages/nx/src/native/walker.rs b/packages/nx/src/native/walker.rs
index f73cfa158f..ffdd6af4b1 100644
--- a/packages/nx/src/native/walker.rs
+++ b/packages/nx/src/native/walker.rs
@@ -170,6 +170,7 @@ where
         "**/.nx/cache",
         "**/.nx/workspace-data",
         "**/.yarn/cache",
+        "**/.gradle",
     ])
     .expect("These static ignores always build");
 

Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally Jya8-84eH

Apply fix locally with your editor ↗   View interactive diff ↗


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

@FrozenPandaz FrozenPandaz merged commit dffdfa6 into master Feb 5, 2026
23 checks passed
@FrozenPandaz FrozenPandaz deleted the gh-32620 branch February 5, 2026 21:37
FrozenPandaz pushed a commit that referenced this pull request Feb 6, 2026
## Current Behavior

When a task output directory contains a nested `.gitignore` that hides
its contents, Nx can treat the outputs as already present and skip
restoring them from cache. This can result in generated files being
missing from disk, even though the cache entry is valid.

## Expected Behavior

Nx should restore cached outputs regardless of ignore rules inside the
output directory.

## Related Issue(s)

Fixes #32620

(cherry picked from commit dffdfa6)
@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 Feb 11, 2026
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.

Cache outputs are not restored on local cache hit

2 participants