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 CI #400

Merged
merged 5 commits into from
Aug 26, 2024
Merged

Fix CI #400

merged 5 commits into from
Aug 26, 2024

Conversation

sharshenov
Copy link
Contributor

Problem

Screenshot from 2024-08-25 20-57-02

Tests fail and contain a noise in the output. Example

Solution

This PR contains a few changes to fix the CI

The main branch is `main`, not `master`. This change is required to trigger GithubActions on each push to the `main` branch.
Removes the next message from RSpec output:

```
** [Bugsnag] 2024-08-25 16:46:45 +0100: Notifying https://notify.bugsnag.com of RuntimeError
```
Removes the next message from RSpec output:

```
E, [2024-08-25T18:20:18.087844 #62797] ERROR -- ddtrace: [ddtrace] (gems/ddtrace-1.23.3/lib/datadog/tracing/transport/http/client.rb:41:in `rescue in send_request') Internal error during Datadog::Tracing::Transport::HTTP::Client request. Cause: Errno::ECONNREFUSED Failed to open TCP connection to 127.0.0.1:8126 (Connection refused - connect(2) for "127.0.0.1" port 8126) Location: /lib/ruby/2.7.0/net/http.rb:960:in `initialize'
```
Error handling specs were broken since `c66dc7139a467ef9398c86f1aca6f65ee83c59bc` as the RSpec stubs methods with arity `-1` causing the next exception:

```
Failure/Error: backend.handle *args.first(backend.method(:handle).arity)

ArgumentError:
  negative array size
```

This commit fixes the error to skipping stubbing and testing the result (log output). Also it adds a couple of specs to ensure error handlers for support of delivery_info
@michaelklishin michaelklishin merged commit 7f0db03 into ruby-amqp:main Aug 26, 2024
6 checks passed
@michaelklishin
Copy link
Member

@sharshenov sweet, thank you so much!

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.

2 participants