Learn/crawl/nitin ex1 orientation#202
Closed
sanghinitin wants to merge 2 commits into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Error fix using GHCP learning
Description
Enhanced
EcErrorHandlerwith transient error classification, error counting, consistent exit-status enforcement, and expanded rescue clauses in backup/restore/import commands.Changes:
TRANSIENT_ERRORSconstant to classify network/server errors (ECONNRESET, ECONNREFUSED, ETIMEDOUT, EHOSTUNREACH)error_counttracking andhas_errors?predicatetransient_error?(ex)method to tag errors as transient vs permanent in error logsat_exithook now enforces exit 1 when errors occurred (even with-VVVflag)suppress_exit:option for testabilityec_backup.rb,ec_restore.rb,ec_import.rbto catchNet::HTTPFatalErrorandErrno::ECONNRESET/ECONNREFUSED/ETIMEDOUTrequire 'digest'guard inec_base.rbfor Ruby >= 3.2 compatibilityAI Track: Walk / Exercise 1 (Repo Orientation + Low-Risk Module)
Related Issue
GHCP Learning Track – Crawl/Walk exercise 1: repo orientation and low-risk module improvement.
Types of changes
Checklist:
Gemfile.lockhas changed, I have used--conservativeto do it and included the full output in the Description above.