-
Notifications
You must be signed in to change notification settings - Fork 147
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
Implement message attribute parsing for PublishBatch #338
Implement message attribute parsing for PublishBatch #338
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small thing, but otherwise this looks great! Thanks for cleaning up a lot of my duplicate code!
542e1ac
to
68ce795
Compare
@toastwaffle Hm, looks like the tests are failing sadly. Would you mind having a look? Also, would you mind squashing your commits into a single one when you're done? It's easier for me to figure out each change in retrospect that way. Thank you for taking this on! |
68ce795
to
542b5be
Compare
I believe that test is flaky on master:
Note that running it with I ran it on this PR branch and it actually passed every time:
|
Actually, |
@toastwaffle Yeah, that's a known issue, we're not ready to go into parallelism on the tests. There's a lot of memory management and sharing going on that parallel tests would just cause parallel tests to implode on themselves. Like I said though, known. I also know the Dead Letter queue is dicey. If you're blocked on this. I will try to look at it when I can and you can rebase after I fix that one up. Up to you. |
We basically have this PR as an internal patch, so we're not exactly blocked. We'd prefer to not have the patch at all, but it's not doing any harm right now. I'm happy to wait until you have time to look into the flaky test if you'd rather not merge this before fixing it. |
Makes sense, thanks for understanding! I'll try to have a look at that test as soon as possible, so we can get this rolling. Thank you! |
@toastwaffle Ok, thanks for hanging in there. I think I got a few of those problematic tests sorted for now. A couple others I'll migrate, but for now I hope you're clear. Would you mind doing a quick rebase when you have a chance? I can't seem to fire the PR checks again without it. |
Factor out attribute parsing for SendMessage, SendMessageBatch, and Publish in the process. I believe this change is adequately covered by the smoke tests, but am happy to be convinced otherwise
542b5be
to
e4761de
Compare
I've rebased, but aside: it actually fails with a segfault; I had to change the test to
To be able to see the error message ( |
I don't think the credentials thing is something to worry about for now, unless we absolutely have to. I think Goaws is supposed to be avoiding dealing with any credentials, other than just blindly accepting them, and I think there may a few disconnects in some of the SDKs when they see some scenarios. Though so far I have been able to get work arounds. If I need to make that more robust I will but it's going to take some significant investigation, since I have so far been avoiding it like the plague. The tests seem to pass now and that's good enough for me, so let's merge this. Feel free to follow up with me though if you have issues once I get this into the new version? 😄 |
Factor out attribute parsing for SendMessage, SendMessageBatch, and Publish in the process.
I believe this change is adequately covered by the smoke tests, but am happy to be convinced otherwise