Skip to content
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

Fix faraday connectionfailed issue #178

Merged
merged 9 commits into from
Jan 7, 2020

Conversation

satoryu
Copy link
Contributor

@satoryu satoryu commented Jan 5, 2020

This pull-request is to close #177

@satoryu
Copy link
Contributor Author

satoryu commented Jan 5, 2020

While all tests passed on Travis CI, some tests failed on Appvoyer.
Is there anyone who give me hints to fix it?

@ashmaroli ashmaroli requested a review from a team January 5, 2020 17:43
@ashmaroli
Copy link
Member

Is there anyone who give me hints to fix it?

The failures were due to flaky tests. They have now passed when re-run.

Copy link
Member

@parkr parkr left a comment

Choose a reason for hiding this comment

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

This gem locks faraday to 1.x, which may cause breakages in gems used in tandem in Jekyll projects. I’d be interested in finding a way to detect if Faraday::Error exists and use the proper error class. I have used arrays of class names in the past which is useful here since they can be dynamically defined.

We could also lock Faraday to <1.0 for now to help folks out now, but that might cause confusion because it may hold back other gems, too.

Comment on lines +71 to +78
# NOTE: Faraday's error classes has been promoted to under Faraday module from v1.0.0.
# This patch aims to prevent on locking specific version of Faraday.
FARADAY_FAILED_CONNECTION =
begin
Faraday::Error::ConnectionFailed
rescue NameError
Faraday::ConnectionFailed
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@parkr this tries to detect whether Faraday::Error::ConnectionFailed works or not. This would prevents from locking specific version of Faraday. All tests passes for the both versions v0.17 and v1.0 of Faraday: Build #517 - jekyll/github-metadata - Travis CI.

.travis.yml Outdated Show resolved Hide resolved
@ashmaroli ashmaroli requested a review from parkr January 6, 2020 15:22
.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
Copy link
Member

@parkr parkr left a comment

Choose a reason for hiding this comment

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

Thank you!

@ashmaroli
Copy link
Member

Thank you for your contribution @satoryu.

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 5004444 into jekyll:master Jan 7, 2020
jekyllbot added a commit that referenced this pull request Jan 7, 2020
@satoryu satoryu deleted the fix_faraday_connectionfailed_issue branch January 7, 2020 02:54
@ericherman ericherman mentioned this pull request Jan 7, 2020
serahkiburu added a commit to csvconf/csvconf.com that referenced this pull request Mar 11, 2020
@jekyll jekyll locked and limited conversation to collaborators Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Faraday::Error::ConnectionFailed has moved since v1.0.0
5 participants