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

chore(deps): Bump the bundler group with 2 updates #374

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 2, 2024

Bumps the bundler group with 2 updates: async-http and async.

Updates async-http from 0.64.2 to 0.86.0

Release notes

Sourced from async-http's releases.

v0.65.0

What's Changed

Full Changelog: socketry/async-http@v0.64.2...v0.65.0

Changelog

Sourced from async-http's changelog.

v0.86.0

v0.84.0

  • Minor consistency fixes to Async::HTTP::Internet singleton methods.

v0.82.0

  • protocol-http1 introduces a line length limit for request line, response line, header lines and chunk length lines.

v0.81.0

  • Expose protocol and endpoint as tags to async-pool for improved instrumentation.

v0.77.0

  • Improved HTTP/1 connection handling.
  • The input stream is no longer closed when the output stream is closed.

v0.76.0

  • Async::HTTP::Body::Writable is moved to Protocol::HTTP::Body::Writable.
  • Remove Async::HTTP::Body::Delayed with no replacement.
  • Remove Async::HTTP::Body::Slowloris with no replacement.

v0.75.0

  • Better handling of HTTP/1 <-> HTTP/2 proxying, specifically upgrade/CONNECT requests.

v0.74.0

Async::HTTP::Internet accepts keyword arguments

Async::HTTP::Internet now accepts keyword arguments for making a request, e.g.

internet = Async::HTTP::Internet.instance
This will let you override the authority (HTTP/1.1 host header, HTTP/2 :authority header):
internet.get("https://proxy.local", authority: "example.com")
This will let you override the scheme:
internet.get("https://example.com", scheme: "http")

v0.73.0

Update support for interim_response

... (truncated)

Commits

Updates async from 1.32.1 to 2.21.1

Release notes

Sourced from async's releases.

v2.14.2

Full Changelog: socketry/async@v2.14.1...v2.14.2

v2.12.0

What's Changed

Full Changelog: socketry/async@v2.11.0...v2.12.0

v2.11.0

What's Changed

Full Changelog: socketry/async@v2.10.2...v2.11.0

v2.10.2

What's Changed

New Contributors

Full Changelog: socketry/async@v2.10.1...v2.10.2

v2.10.1

What's Changed

Full Changelog: socketry/async@v2.10.0...v2.10.1

v2.10.0

What's Changed

Full Changelog: socketry/async@v2.9.0...v2.10.0

v2.9.0

What's Changed

  • Introduce Scheduler#load and Async::Idler for load shedding and saturation. (socketry/async#309)

Full Changelog: socketry/async@v2.8.2...v2.9.0

v2.8.2

What's Changed

... (truncated)

Changelog

Sourced from async's changelog.

v2.21.1

Worker Pool

Ruby 3.4 will feature a new fiber scheduler hook, blocking_operation_wait which allows the scheduler to redirect the work given to rb_nogvl to a worker pool.

The Async scheduler optionally supports this feature using a worker pool, by using the following environment variable:

ASYNC_SCHEDULER_DEFAULT_WORKER_POOL=true

This will cause the scheduler to use a worker pool for general blocking operations, rather than blocking the event loop.

It should be noted that this isn't a net win, as the overhead of using a worker pool can be significant compared to the rb_nogvl work. As such, it is recommended to benchmark your application with and without the worker pool to determine if it is beneficial.

v2.20.0

Traces and Metrics Providers

Async now has traces and metrics providers for various core classes. This allows you to emit traces and metrics to a suitable backend (including DataDog, New Relic, OpenTelemetry, etc.) for monitoring and debugging purposes.

To take advantage of this feature, you will need to introduce your own config/traces.rb and config/metrics.rb. Async's own repository includes these files for testing purposes, you could copy them into your own project and modify them as needed.

v2.19.0

Async::Scheduler Debugging

Occasionally on issues, I encounter people asking for help and I need more information. Pressing Ctrl-C to exit a hung program is common, but it usually doesn't provide enough information to diagnose the problem. Setting the CONSOLE_LEVEL=debug environment variable will now print additional information about the scheduler when you interrupt it, including a backtrace of the current tasks.

> CONSOLE_LEVEL=debug bundle exec ruby ./test.rb
^C  0.0s    debug: Async::Reactor [oid=0x974] [ec=0x988] [pid=9116] [2024-11-08 14:12:03 +1300]
               | Scheduler interrupted: Interrupt
               | #<Async::Reactor:0x0000000000000974 1 children (running)>
               | 	#<Async::Task:0x000000000000099c /Users/samuel/Developer/socketry/async/lib/async/scheduler.rb:185:in `transfer' (running)>
               | 	→ /Users/samuel/Developer/socketry/async/lib/async/scheduler.rb:185:in `transfer'
               | 	  /Users/samuel/Developer/socketry/async/lib/async/scheduler.rb:185:in `block'
               | 	  /Users/samuel/Developer/socketry/async/lib/async/scheduler.rb:207:in `kernel_sleep'
               | 	  /Users/samuel/Developer/socketry/async/test.rb:7:in `sleep'
               | 	  /Users/samuel/Developer/socketry/async/test.rb:7:in `sleepy'
               | 	  /Users/samuel/Developer/socketry/async/test.rb:12:in `block in <top (required)>'
               | 	  /Users/samuel/Developer/socketry/async/lib/async/task.rb:197:in `block in run'
               | 	  /Users/samuel/Developer/socketry/async/lib/async/task.rb:420:in `block in schedule'
/Users/samuel/Developer/socketry/async/lib/async/scheduler.rb:317:in `select': Interrupt
... (backtrace continues) ...

This gives better visibility into what the scheduler is doing, and should help diagnose issues.

Console Shims

The async gem depends on console gem, because my goal was to have good logging by default without thinking about it too much. However, some users prefer to avoid using the console gem for logging, so I've added an experimental set of shims which should allow you to bypass the console gem entirely.

... (truncated)

Commits
  • 367745d Bump patch version.
  • a4c54b0 Update release notes.
  • a953095 Add test coverage for worker pool.
  • 41a0c92 Make the worker pool an optional feature that defaults to off.
  • 9449e6f Work pool for (more) efficient handling of blocking_operation_wait. (#359)
  • 34464e5 Bump minor version.
  • c317990 Add support for Fiber::Scheduler#blocking_operation_wait. (#352)
  • b6bfc3c Bump minor version.
  • f3c79da Newlines.
  • ffc19a4 Add missing documentation and improve documentation consistency.
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the bundler group with 2 updates: [async-http](https://github.com/socketry/async-http) and [async](https://github.com/socketry/async).


Updates `async-http` from 0.64.2 to 0.86.0
- [Release notes](https://github.com/socketry/async-http/releases)
- [Changelog](https://github.com/socketry/async-http/blob/main/releases.md)
- [Commits](socketry/async-http@v0.64.2...v0.86.0)

Updates `async` from 1.32.1 to 2.21.1
- [Release notes](https://github.com/socketry/async/releases)
- [Changelog](https://github.com/socketry/async/blob/main/releases.md)
- [Commits](socketry/async@v1.32.1...v2.21.1)

---
updated-dependencies:
- dependency-name: async-http
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: bundler
- dependency-name: async
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: bundler
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Dec 2, 2024
Copy link
Owner

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

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

LGTM

@stevehipwell stevehipwell merged commit 066582d into main Dec 2, 2024
4 checks passed
@stevehipwell stevehipwell deleted the dependabot/bundler/bundler-c4dbf6e4ec branch December 2, 2024 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant