Skip to content

Catch EHOSTUNREACH as expected#79

Merged
kostyanf14 merged 1 commit into
masterfrom
exp2
Jun 3, 2026
Merged

Catch EHOSTUNREACH as expected#79
kostyanf14 merged 1 commit into
masterfrom
exp2

Conversation

@kostyanf14

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the handle_action_exceptions method in lib/rtoolsHCK.rb to rescue Errno::EHOSTUNREACH in addition to RToolsHCKError and Errno::ECONNREFUSED, allowing the action wrapper to retry on network issues or machine reboots. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the action exception wrapper in RToolsHCK to treat Errno::EHOSTUNREACH as an expected, handled failure (similar to Errno::ECONNREFUSED), allowing higher-level retry behavior to proceed without surfacing an unhandled exception.

Changes:

  • Add Errno::EHOSTUNREACH to the list of rescued exceptions in handle_action_exceptions.
  • Add an explanatory inline comment describing when EHOSTUNREACH can occur.

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

Comment thread lib/rtoolsHCK.rb
Comment on lines 415 to +419
# We can have ECONNREFUSED error due to direct connection to
# clients instead of proxy through studio
# We can have EHOSTUNREACH error due to network issues or machine rebooting
# Safety catch this exception, the action wrapper will retry if needed
rescue RToolsHCKError, Errno::ECONNREFUSED => e
rescue RToolsHCKError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e
@kostyanf14 kostyanf14 merged commit 4765eca into master Jun 3, 2026
2 checks passed
@kostyanf14 kostyanf14 deleted the exp2 branch June 3, 2026 08:48
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.

3 participants