Skip to content

fix(gradle): increase project graph timeout defaults#35058

Merged
FrozenPandaz merged 2 commits into
masterfrom
fix/gradle-project-graph-timeout
Mar 28, 2026
Merged

fix(gradle): increase project graph timeout defaults#35058
FrozenPandaz merged 2 commits into
masterfrom
fix/gradle-project-graph-timeout

Conversation

@FrozenPandaz

@FrozenPandaz FrozenPandaz commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Current Behavior

The Gradle plugin's createNodes project graph generation has a fixed 60-second timeout. For large Gradle workspaces, this is too short and causes timeouts — especially in CI environments where builds may be slower.

Expected Behavior

  • Local: Default timeout increased to 2 minutes (120s)
  • CI: Default timeout increased to 10 minutes (600s)
  • The NX_GRADLE_PROJECT_GRAPH_TIMEOUT env var still works as an override
  • The publish workflow explicitly sets NX_GRADLE_PROJECT_GRAPH_TIMEOUT=600 for extra safety

Increase the default Gradle project graph timeout from 60s to 3 minutes
locally and 10 minutes in CI. Also explicitly set the timeout env var in
the publish workflow.
@FrozenPandaz FrozenPandaz requested a review from a team as a code owner March 28, 2026 03:29
@FrozenPandaz FrozenPandaz requested a review from MaxKless March 28, 2026 03:29
@netlify

netlify Bot commented Mar 28, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 052cb42
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69c74b498f65c600085f9b35
😎 Deploy Preview https://deploy-preview-35058--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.

@netlify

netlify Bot commented Mar 28, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

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

@nx-cloud

nx-cloud Bot commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 052cb42

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 14m 47s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 6s View ↗
nx-cloud record -- pnpm nx conformance:check ✅ Succeeded 7s View ↗
nx build workspace-plugin ✅ Succeeded <1s 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-28 03:49:12 UTC

@FrozenPandaz FrozenPandaz enabled auto-merge (squash) March 28, 2026 03:47
@FrozenPandaz FrozenPandaz merged commit 9a0ac75 into master Mar 28, 2026
25 checks passed
@FrozenPandaz FrozenPandaz deleted the fix/gradle-project-graph-timeout branch March 28, 2026 03:49
FrozenPandaz added a commit that referenced this pull request Mar 31, 2026
## Current Behavior

The Gradle plugin's `createNodes` project graph generation has a fixed
60-second timeout. For large Gradle workspaces, this is too short and
causes timeouts — especially in CI environments where builds may be
slower.

## Expected Behavior

- **Local**: Default timeout increased to 3 minutes (180s)
- **CI**: Default timeout increased to 10 minutes (600s)
- The `NX_GRADLE_PROJECT_GRAPH_TIMEOUT` env var still works as an
override
- The publish workflow explicitly sets
`NX_GRADLE_PROJECT_GRAPH_TIMEOUT=600` for extra safety

(cherry picked from commit 9a0ac75)
@github-actions

github-actions Bot commented Apr 3, 2026

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 Apr 3, 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.

2 participants