Skip to content

Updated Faraday#18762

Open
andsel wants to merge 2 commits intoelastic:8.19from
andsel:update_faraday_8.19
Open

Updated Faraday#18762
andsel wants to merge 2 commits intoelastic:8.19from
andsel:update_faraday_8.19

Conversation

@andsel
Copy link
Contributor

@andsel andsel commented Feb 11, 2026

No description provided.

@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • run exhaustive tests : Run the exhaustive tests Buildkite pipeline.

@andsel andsel self-assigned this Feb 11, 2026
@andsel andsel marked this pull request as ready for review February 11, 2026 16:21
Copy link
Contributor

@kaisecheng kaisecheng left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@donoghuc donoghuc left a comment

Choose a reason for hiding this comment

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

I'm not following this change? Why is this addition being added to the gemspec? If we want to simply ship a newer faraday, we should just update our gemfile.lock for this stream. Along that line I would expect a corresponding update

faraday (2.13.4)
if we are going to change the gemspec. Generally though carrying new dependencies in the gemspec seems overkill for this.

gem.add_runtime_dependency "elasticsearch", '~> 8'
gem.add_runtime_dependency "manticore", '~> 0.6'

gem.add_runtime_dependency "faraday", '< 3', '>= 2.14.1'
Copy link
Contributor

Choose a reason for hiding this comment

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

Gemfile.lock contains 2.13.x version. I think we should update that as well?!

@mashhurs
Copy link
Contributor

I'm not following this change? Why is this addition being added to the gemspec? If we want to simply ship a newer faraday, we should just update our gemfile.lock for this stream. Along that line I would expect a corresponding update

faraday (2.13.4)

if we are going to change the gemspec. Generally though carrying new dependencies in the gemspec seems overkill for this.

🤦 Ah, didn't see this comment! Sorry for noise.

@andsel
Copy link
Contributor Author

andsel commented Feb 12, 2026

@donoghuc If we update the gemspec we have a clear statement of the requirement I think, and next time we run the bump dependencies GH action (https://github.com/elastic/logstash/actions/workflows/version_bumps.yml) then the lock file should be updated contextually. But I could be wrong.

@andsel andsel requested a review from donoghuc February 12, 2026 08:12
@donoghuc
Copy link
Member

@andsel I am hesitent to start pulling transitive dependencies into the top level of the gemspec. Over time it becomes really difficult to reason through what logstash dependencies we actually have. If for example the gem for which faraday is a truly a dependency of (therefore a transitive dependency to logstash) moves on from Faraday, or bumps to the next major version we will risk a conflict.

IMO, we have the gemfile.lock pattern for this exact use case: Control exactly what gems we ship (rather than just the latest). The gemspec should be reserved for true top level dependencies or pinning to very specific versions (and that second use case could be argued for the Gemfile.template.

@elasticmachine
Copy link

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @andsel

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.

5 participants