Skip to content

fix(gradle): use tooling api compatible flags#34247

Merged
lourw merged 4 commits intomasterfrom
feature/nxc-3781-ensure-that-nx-batch-mode-works-on-ocean-and-nx
Jan 28, 2026
Merged

fix(gradle): use tooling api compatible flags#34247
lourw merged 4 commits intomasterfrom
feature/nxc-3781-ensure-that-nx-batch-mode-works-on-ocean-and-nx

Conversation

@lourw
Copy link
Copy Markdown
Contributor

@lourw lourw commented Jan 28, 2026

Current Behavior

Expected Behavior

--rerun is not tooling api compatible and therefore will break usage of the batch executor. Replaced the flag with --rerun-tasks.

Also updated the build and test listeners so that we normalize the task paths that we use between Gradle and Nx. There were cases where gradle prepended : to its task paths, which did not match what Nx was using.

Related Issue(s)

Fixes #

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 28, 2026

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

Project Deployment Review Updated (UTC)
nx-dev Ready Ready Preview Jan 28, 2026 8:53pm

Request Review

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 28, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 858d9f4
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/697a761ebba6c7000837eca1
😎 Deploy Preview https://deploy-preview-34247--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 Jan 28, 2026

View your CI Pipeline Execution ↗ for commit 858d9f4

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 8m 17s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 1m 45s 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-01-28 21:23:17 UTC

@lourw lourw force-pushed the feature/nxc-3781-ensure-that-nx-batch-mode-works-on-ocean-and-nx branch from 3b956a3 to e5d0f7f Compare January 28, 2026 19:33
@lourw lourw self-assigned this Jan 28, 2026
@lourw lourw force-pushed the feature/nxc-3781-ensure-that-nx-batch-mode-works-on-ocean-and-nx branch from 6fbc036 to 3f720f3 Compare January 28, 2026 20:22
@lourw lourw enabled auto-merge (squash) January 28, 2026 20:22
@lourw lourw force-pushed the feature/nxc-3781-ensure-that-nx-batch-mode-works-on-ocean-and-nx branch from 357b985 to 858d9f4 Compare January 28, 2026 20:48
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 has identified a possible root cause for your failed CI:

Our build encountered a Gradle daemon cache cleanup failure where the daemon attempted to delete compilation cache directories while still holding file locks. This is an infrastructure-level timing issue with daemon cache management, not a code logic error from the PR changes.

No code changes were suggested for this issue.

Trigger a rerun:

Rerun CI

Nx Cloud View detailed reasoning on Nx Cloud ↗


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

@lourw lourw merged commit 5a424fa into master Jan 28, 2026
21 of 22 checks passed
@lourw lourw deleted the feature/nxc-3781-ensure-that-nx-batch-mode-works-on-ocean-and-nx branch January 28, 2026 21:23
FrozenPandaz pushed a commit that referenced this pull request Jan 29, 2026
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

--rerun is not tooling api compatible and therefore will break usage of
the batch executor. Replaced the flag with --rerun-tasks.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit 5a424fa)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 3, 2026

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 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