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
Aws sqs test fix #3170
Aws sqs test fix #3170
Conversation
...ws2-sqs-sns/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsSnsTest.java
Show resolved
Hide resolved
...ws2-sqs-sns/src/test/java/org/apache/camel/quarkus/component/aws2/sqs/it/Aws2SqsSnsTest.java
Outdated
Show resolved
Hide resolved
8a2a299
to
b396e5f
Compare
We can open a separate issue to fix the queue delay. So that we could fix later |
Beyond previous comments from Zineb, I think that the aggregated changes looks good. However, I wonder whether those commits should be squashed ? For instance one commit is adding method "deleteQueueAndListQueues" and then another commit is deleting this very same method. Also the CI build is failing, maybe running |
oh, you are right. This should not have happened. Not sure what got wrong with my fork |
5493555
to
a11bc61
Compare
Are you able to reproduce the failures on your localhost? I have tried it both with localstack and with AWS credentials and the test is passing. The failing test is |
Is it related to this PR : #3175 ? |
f10261a
to
b335ed1
Compare
I don't understand. It has been rebased with newest changes and yet the tests (not sqs tests) are failing... |
Let me try this locally on my machine |
b335ed1
to
818f9ad
Compare
@zbendhiba any luck? |
Let me try to push differently. I feel there's a problem with the branch. Locally, the tests run just fine |
818f9ad
to
d9d117a
Compare
I've cherry picked this commit on top of main locally. |
@VratislavHais could you please rebase so that there is a chance to get a clean CI build? |
@VratislavHais did rebase and it didn't work |
We had few successful builds on CI main those days without this PR. I've tried to run the aws grouped tests with and without this PR locally 10 times and I ended up with: So, at this stage the best explanation would be that this PR is really introducing a build issue but only on CI. |
Thanks for the explanation @zbendhiba and @aldettinger |
Hello, will do. Thank you for investigating |
I really don't see how my changes can affect that. Not being able to reproduce it also does not help |
@VratislavHais If we are not sure this PR is causing the build issue. I would propose to rebase and push without the fix, have a CI build, then push the fix and have another CI build. It may be a good experiment. If we are sure the PR is causing the issue on CI, then would it be possible to comment parts of the PRs and have intermediate CI builds to check which part would be problematic ? If we are not able to correct, maybe implementing test in another way would be a way to avoid long investigation on CI builds ? And yeah, you are right those issues occurring on CI only are really hard to deal with. Sadly, it happens from time to time. |
9107a16
to
d9d117a
Compare
d9d117a
to
55a063e
Compare
I was wondering - what OS are you on @aldettinger @zbendhiba ? Maybe it can be OS related as it is running on Ubuntu? (just a wild guess) |
As far as I remember, we are running on RHEL 7 and RHEL 8 and the test passes on our machines. CI builds seem to occur on Ubuntu 20.04.3. |
Thank you @aldettinger . I'll attempt to run it on Ubuntu |
@VratislavHais Well done for attempting to run the test on Ubuntu 👍 So, we now have more information that the O/S is not the root cause of this issue. Do you have any error message in the logs by grepping something like "Failures: 1" or "Errors: 1". Maybe, it would ring any bell to someone. |
@aldettinger I believe this is the problem: https://pastebin.com/xzbUFnbv |
@JiriOndrusek, @VratislavHais, @zbendhiba The build is passing now, well done for this hard investigation 👍 |
@aldettinger From my POV it could be merged, even if I don't like tha fact that sqs test on CI takes ~8mins. I created an issue - #3207 - where I;d like to make timeouts for local test smaller. |
Fix of the |
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.
Ok, so it's providing value and we have a ticket for further enhancements. Looks good to me.
This PR fixes the problem with
sqsDeleteMessage
test. Unfortunately when testing I have discovered that test for delay queue is broken. I am still investigating it. It looks like the problem is on AWS side as everything works as expected in CQ a camel.