Skip to content

Conversation

@priya-kinthali
Copy link
Contributor

@priya-kinthali priya-kinthali commented Oct 22, 2025

Description:
This PR enhances error logging in setup-java to improve troubleshooting and clarity. It adds detailed logs for aggregate network errors, including specific information such as endpoints, ports, and stack traces, making it easier to diagnose and resolve issues effectively. Additionally, it implements a retry mechanism for transient network failures to improve reliability when encountering temporary connectivity issues. Updates workflows to replace usage of macos-13 with macos-15-intel, ensuring compatibility with newer macOS runner versions.

Related issue:
#897, #923

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@priya-kinthali priya-kinthali requested a review from a team as a code owner October 22, 2025 13:31
@priya-kinthali priya-kinthali self-assigned this Oct 22, 2025
mahabaleshwars
mahabaleshwars previously approved these changes Oct 24, 2025
aparnajyothi-y
aparnajyothi-y previously approved these changes Oct 29, 2025
Copilot AI review requested due to automatic review settings November 7, 2025 02:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances error handling and introduces retry logic for Java installation failures, particularly for transient network issues. It also updates GitHub Actions workflow configurations to use a newer macOS runner.

Key changes:

  • Adds retry logic with up to 4 attempts for network-related errors (ETIMEDOUT, ECONNRESET, etc.) and HTTP errors (429, 502, 503, 504)
  • Improves error logging to include detailed information about aggregate errors and network failures
  • Updates CI workflows to use macos-15-intel instead of macos-13

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/distributions/base-installer.ts Adds retry loop with network error detection, enhanced error logging with support for aggregate errors, console timer cleanup, and null check for foundJava
dist/setup/index.js Compiled JavaScript output reflecting the TypeScript changes
package-lock.json Removes extra blank line at the beginning of the file
.github/workflows/e2e-versions.yml Updates macOS runner from macos-13 to macos-15-intel
.github/workflows/e2e-cache.yml Updates macOS runner from macos-13 to macos-15-intel

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@priya-kinthali priya-kinthali changed the title Enhance error logging for network failures to include endpoint/IP details and add retry mechanism Enhance error logging for network failures to include endpoint/IP details, add retry mechanism and update workflows to use macos-15-intel Nov 7, 2025
@HarithaVattikuti HarithaVattikuti merged commit 6ba5449 into actions:main Nov 13, 2025
367 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants