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

Delivery failure #1163

Merged
merged 30 commits into from
Jul 31, 2023
Merged

Conversation

thomasjohansen
Copy link
Contributor

@thomasjohansen thomasjohansen commented Jul 10, 2023

Changes

/kind enhancement

Fixes #1154

Release Note

Added error information to failed messages

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 10, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@knative-prow
Copy link

knative-prow bot commented Jul 10, 2023

Welcome @thomasjohansen! It looks like this is your first PR to knative-sandbox/eventing-rabbitmq 🎉

@knative-prow knative-prow bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 10, 2023
@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Merging #1163 (44c9f9f) into main (2e216ec) will increase coverage by 0.37%.
Report is 19 commits behind head on main.
The diff coverage is 47.65%.

❗ Current head 44c9f9f differs from pull request most recent head 107f3c3. Consider uploading reports for the commit 107f3c3 to get more accurate results

@@            Coverage Diff             @@
##             main    #1163      +/-   ##
==========================================
+ Coverage   74.22%   74.59%   +0.37%     
==========================================
  Files          44       44              
  Lines        3309     3417     +108     
==========================================
+ Hits         2456     2549      +93     
- Misses        764      767       +3     
- Partials       89      101      +12     
Files Changed Coverage Δ
pkg/rabbit/rabbit_mocks.go 78.37% <ø> (+11.71%) ⬆️
pkg/dispatcher/dispatcher.go 50.82% <36.88%> (+8.75%) ⬆️
pkg/reconciler/trigger/trigger.go 63.19% <80.00%> (+0.18%) ⬆️
pkg/reconciler/broker/broker.go 86.12% <100.00%> (+0.04%) ⬆️
pkg/reconciler/broker/resources/dispatcher.go 94.15% <100.00%> (+0.24%) ⬆️
pkg/reconciler/trigger/resources/dispatcher.go 95.02% <100.00%> (+0.37%) ⬆️

... and 3 files with indirect coverage changes

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 17, 2023
pkg/dispatcher/dispatcher.go Outdated Show resolved Hide resolved
thomasjohansen and others added 2 commits July 24, 2023 19:47
…ed in the trigger, if its not defined in the trigger then in the broker, and if neither is defined then they are not rerouted
err = msg.Nack(false, false)
if err != nil {
logging.FromContext(ctx).Warn("failed to NACK event: ", err)
if event == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we don't need this if, the event probably is going to be nill anyways, so just set the headers and to the else part

@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 31, 2023
@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 31, 2023
@knative-prow
Copy link

knative-prow bot commented Jul 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gabo1208, thomasjohansen

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 31, 2023
@knative-prow knative-prow bot merged commit 06ad50d into knative-extensions:main Jul 31, 2023
19 checks passed
@gabo1208
Copy link
Contributor

/cherry-pick release-1.11

@knative-prow-robot
Copy link

@gabo1208: new pull request could not be created: failed to create pull request against knative-sandbox/eventing-rabbitmq#release-1.11 from head knative-prow-robot:cherry-pick-1163-to-release-1.11: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","field":"head","code":"invalid"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request"}

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@gabo1208
Copy link
Contributor

/cherry-pick release-1.11

@knative-prow-robot
Copy link

@gabo1208: new pull request created: #1187

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@gabo1208
Copy link
Contributor

/cherry-pick release-1.11

@knative-prow-robot
Copy link

@gabo1208: new pull request created: #1188

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/enhancement lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RabbitMQ Trigger knativeerrordest extension
3 participants