Skip to content

fix(maven): de-flake maven e2e by dropping -X debug forks and widening timeout#36091

Merged
FrozenPandaz merged 1 commit into
masterfrom
fix-maven-e2e-flake
Jun 24, 2026
Merged

fix(maven): de-flake maven e2e by dropping -X debug forks and widening timeout#36091
FrozenPandaz merged 1 commit into
masterfrom
fix-maven-e2e-flake

Conversation

@FrozenPandaz

Copy link
Copy Markdown
Contributor

Current Behavior

The e2e/maven/src/maven.test.ts cases "should build Maven project with dependencies without batch mode" and "should support targetNamePrefix option" intermittently time out (e.g. Command timed out after 600s: run app:install --no-batch).

nx run <project>:install --no-batch fans the build out into one task per Maven lifecycle phase per module (~87 tasks), each spawning a fresh mvn JVM that re-scans the whole reactor. That serial fan-out alone runs ~450-550s even with a warm ~/.m2. The install run additionally passed verbose: true, which sets NX_VERBOSE_LOGGING=true and makes every one of the ~87 forks run mvn -X (full debug) — a large amount of extra per-fork log I/O that pushed it over the previous 10-minute budget.

Expected Behavior

  • The install run no longer passes verbose: true, so the ~87 forks don't each run mvn -X. The assertions (BUILD SUCCESS + jar existence) don't need verbose output.
  • Both --no-batch runs get a 15-minute timeout, comfortably above the inherent serial fan-out floor, so CI load no longer tips them over.

Related Issue(s)

N/A — CI flake fix.


View session information ↗

@netlify

netlify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 80efc64
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6a3b444285a4b000080687d9
😎 Deploy Preview https://deploy-preview-36091--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

netlify Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 80efc64
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6a3b4442ed82270008eed911
😎 Deploy Preview https://deploy-preview-36091--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

nx-cloud Bot commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 80efc64

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 13m 34s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 43s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 17s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗

☁️ Nx Cloud last updated this comment at 2026-06-24 03:00:56 UTC

@FrozenPandaz FrozenPandaz marked this pull request as ready for review June 24, 2026 02:33
@FrozenPandaz FrozenPandaz requested a review from a team as a code owner June 24, 2026 02:33
@FrozenPandaz FrozenPandaz requested a review from lourw June 24, 2026 02:33
@FrozenPandaz FrozenPandaz force-pushed the fix-maven-e2e-flake branch from b9d05f8 to 80efc64 Compare June 24, 2026 02:43
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) June 24, 2026 14:56
@FrozenPandaz FrozenPandaz merged commit f287e80 into master Jun 24, 2026
26 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-maven-e2e-flake branch June 24, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants