apache / apache/maven-surefire

[SUREFIRE-1801] New TCP communication mode defers "Listening for transport" debug message

Open
#3,047 5 comments 0 reactions 0 assignees View on GitHub
bug priority:minor
Dominant language
Java
Stars
461
Forks
588
Avg merge
1d 8h
Merged PRs (30d)
19

Description

**[Falko Modler](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=famod)** opened **[SUREFIRE-1801](https://issues.apache.org/jira/browse/SUREFIRE-1801?redirect=false)** and commented

When using

```xml

```

and `-Dmaven.surefire.debug` you see the message

```
Listening for transport dt_socket at address: 5005
```

_only after_ you have connected the debugger, which defeats the whole point of this message and leaves the user under the impression that test execution is stuck before opening the debug port.

In "legacy" mode the message is displayed as expected (before connecting the debugger).

---

**Affects:** 3.0.0-M5

**Issue Links:**
- [SUREFIRE-1881](https://issues.apache.org/jira/browse/SUREFIRE-1881) Java agent printing to native console makes build block when using SurefireForkNodeFactory

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with SurefireForkNodeFactory, -Dmaven.surefire.debug, and the XML forkNode configuration, then compare the output with legacy mode. Done means the "Listening for transport dt_socket at address: 5005" message appears before the debugger connects, rather than afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.