Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@muhammad-asghar-ali
Copy link
Contributor

  • Sends messages from Resonate to AWS SQS queues
  • Uses worker threads to process messages concurrently
  • Integrates with AWS SDK for SQS operations

@codecov
Copy link

codecov bot commented Sep 6, 2025

Codecov Report

❌ Patch coverage is 73.55372% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.53%. Comparing base (95e5fb3) to head (f60121e).
⚠️ Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
internal/app/plugins/sqs/sqs.go 78.09% 20 Missing and 3 partials ⚠️
internal/app/subsystems/aio/sender/sender.go 43.75% 8 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #793      +/-   ##
==========================================
+ Coverage   48.64%   50.53%   +1.89%     
==========================================
  Files         123      124       +1     
  Lines       14564    14132     -432     
==========================================
+ Hits         7085     7142      +57     
+ Misses       7013     6526     -487     
+ Partials      466      464       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@avillega
Copy link
Member

avillega commented Sep 8, 2025

Thanks for your contribution! I think it looks quite solid. It was not clear to me what is the schema you are using for the sqs pluging. I guess it would be possible to add some tests to make sure the schema is being correctly parsed

@dfarr
Copy link
Member

dfarr commented Sep 9, 2025

Thank you so much @muhammad-asghar-ali this looks fantastic. I don't have immediate access to an AWS account atm, so it will take me a few days to get around to testing this but we will work to get this in very soon. In the meantime do you mind seeing @avillega's comment above?

Can you also please confirm the intended schema is this?

sqs://<aws-region>/<queue-name>

@dfarr
Copy link
Member

dfarr commented Sep 9, 2025

Thanks for your contribution! I think it looks quite solid. It was not clear to me what is the schema you are using for the sqs pluging. I guess it would be possible to add some tests to make sure the schema is being correctly parsed

Actually now that I look at it, we don't have unit tests for the sender subsystem (where the url parsing occurs). Let me add some for testing parsing of http(s) and poll urls and then you can rebase this PR and plug in additional tests for sqs urls.

@dfarr dfarr mentioned this pull request Sep 9, 2025
@dfarr
Copy link
Member

dfarr commented Sep 9, 2025

@muhammad-asghar-ali if you get a chance take a look at the referenced PR and if you rebase we should be able to add url parsing tests there.

@muhammad-asghar-ali
Copy link
Contributor Author

Thanks for review, I'll look into the suggestion.

@muhammad-asghar-ali
Copy link
Contributor Author

Thank you so much @muhammad-asghar-ali this looks fantastic. I don't have immediate access to an AWS account atm, so it will take me a few days to get around to testing this but we will work to get this in very soon. In the meantime do you mind seeing @avillega's comment above?

Can you also please confirm the intended schema is this?

sqs://<aws-region>/<queue-name>

sure I'll provide it.. meanwhile I'm working on test-case suggested by @avillega

@muhammad-asghar-ali
Copy link
Contributor Author

@avillega @dfarr please review the PR
Thank you

Copy link
Member

@dfarr dfarr 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 so much again @muhammad-asghar-ali!

I dusted off the old AWS account and tried this feature out and it looks great! I was able to see messages enqueued in the queue no problem at all :)

I have a few ideas, take a look and let me know what you think. We are happy to help in any way we can just let us know.

@muhammad-asghar-ali
Copy link
Contributor Author

@dfarr Thank you for your suggestions, I really appreciate them and will start working on them as soon as possible.

Copy link
Member

@dfarr dfarr 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 @muhammad-asghar-ali , just want to make sure we account for the updated format in the sender subsystem too, and then I think we're good to go!

@flossypurse flossypurse mentioned this pull request Sep 15, 2025
@muhammad-asghar-ali
Copy link
Contributor Author

@dfarr Thank you for your suggestion. I'm still working to understand the broader context and truly appreciate your insight and patience.

@dfarr
Copy link
Member

dfarr commented Sep 15, 2025

@dfarr Thank you for your suggestion. I'm still working to understand the broader context and truly appreciate your insight and patience.

Of course and thank you! If you ever want to jump on a call reach out to me on our discord, more than happy to answer any questions there :)

Copy link
Member

@dfarr dfarr 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 so much @muhammad-asghar-ali !!!

@muhammad-asghar-ali
Copy link
Contributor Author

🎉 Thank you so much @muhammad-asghar-ali !!!

Thank you for the suggestion. I'm looking forward to contributing more and tackling new challenges.

@dfarr dfarr merged commit 78d1fd6 into resonatehq:main Sep 17, 2025
7 checks passed
This was referenced Oct 1, 2025
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.

3 participants