Skip to content

Add testcluster node log location to gradle run error message #127665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ankit--sethi
Copy link
Contributor

@ankit--sethi ankit--sethi commented May 2, 2025

This PR enhances the failure message emitted to console when a test cluster node fails to come up.

When ./gradlew run fails, we would frequently need to peruse the node's logs (stored elsewhere on disk) to learn what went wrong, but it is reasonable expectation that errors would show up in console with other gradle output. This confusion can lead to a frustrating developer experience, so we should point to the log location for debugging next steps.

image

For the case of a cluster, the log message points to the log file of the first node. Hopefully, that is enough of a hint and the developer can pursue the logs of other nodes as needed.

…luster node fails to come up.

When `./gradlew run` fails, we would frequently need to see the node's log (stored elsewhere on disk) to learn what went wrong, but it is common expectation that errors would show up in console with other gradle output. This can lead to a frustrating developer experience, so we should point to the log location for debugging next steps.

For the case of a cluster, the log message points to the log file of the first node. Hopefully, that is enough of a hint and the developer can pursue the logs of other nodes as needed.
@ankit--sethi ankit--sethi requested a review from a team as a code owner May 2, 2025 20:54
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 labels May 2, 2025
@ankit--sethi ankit--sethi added the :Delivery/Build Build or test infrastructure label May 2, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label May 2, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

@elasticsearchmachine elasticsearchmachine removed the needs:triage Requires assignment of a team area label label May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >enhancement Team:Delivery Meta label for Delivery team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants