-
Notifications
You must be signed in to change notification settings - Fork 462
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
JAMES-2586 Fix some jmap postgres integration tests #2048
JAMES-2586 Fix some jmap postgres integration tests #2048
Conversation
...ration-tests/src/test/java/org/apache/james/jmap/rfc8621/postgres/PostgresThreadGetTest.java
Show resolved
Hide resolved
.../postgres/src/main/java/org/apache/james/mailbox/postgres/mail/PostgresAttachmentModule.java
Outdated
Show resolved
Hide resolved
...-common/src/main/scala/org/apache/james/jmap/rfc8621/contract/EmailQueryMethodContract.scala
Outdated
Show resolved
Hide resolved
...postgres/src/main/java/org/apache/james/mailbox/postgres/mail/dao/PostgresAttachmentDAO.java
Outdated
Show resolved
Hide resolved
org.apache.james.events.PostgresEventDeadLettersTest Related? |
Please rebase |
ec122f5
to
857c591
Compare
} | ||
return Mono.just(messageBuilder.build()); | ||
}, ReactorUtils.DEFAULT_CONCURRENCY); | ||
} | ||
|
||
private Mono<SimpleMailboxMessage> retrieveFullMessage(SimpleMailboxMessage.Builder messageBuilder, Record record) { |
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.
I see a lot of methods were written for adding attachment metadata to SimpleMailboxMessage.Builder
.
it is similar to what we did in AttachmentLoader
Can we reuse it?
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.
I remember that AttachmentLoader's method does not fit this case
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.
let me try it a bit
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.
caught
- Current
AttachmentLoader
get each by eachMessageAttachmentMetadata
by id - Your new code: get list MessageAttachmentMetadata by list id 👍
I have a refactor for that 437550f
can you look it
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.
great. tks. could you push it to this PR?
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.
I don't have permission, you can fetch my code, and cherry-pick this commit
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.
FYI that commit is what is making tests failing/hanging forever on imap mpt tests
...postgres/src/main/java/org/apache/james/mailbox/postgres/mail/dao/PostgresAttachmentDAO.java
Show resolved
Hide resolved
we can cherry-pick fixup commit: #2093 |
857c591
to
5a716f0
Compare
Hanging again, same point... do we have an issue here in our pg test with the docker postgres signleton extension? we should investigate... I'm suspecting something being potentially unstable on our side as all the timeout builds have occured on different workers in the last few days |
Any chance it is related to this change: ... |
No I don't think so... I think I have a clue, and maybe we are a bit unlucky on some of our builds... let me try something and open an other PR, I noticed a pattern when such thing happens |
My 50 cents, let's see :) |
@hungphan227 @vttranlina I'm going on my PR to test back without the last commit, could not fix it. Feel free to fix it yourselves if you want it back For example locally you can try to run |
Fixed 144ac90 Reason: Hanging when Collections is empty |
Thanks. Can you test guys locally on those tests and make sure it passes with those fixes? => https://ci-builds.apache.org/job/james/job/ApacheJames/job/PR-2095/3/testReport/ |
|
ac1309f
to
b2ead22
Compare
11:29:37,710 [INFO] Apache James :: Server :: JMAP RFC-8621 :: Postgres Integration Testing FAILURE [46:53 min] 46 mins... Maybe unstable CI or maybe not. Will restart the build to see |
…st, PostgresMailboxSetMethodTest
- get the list replaced to get each by each
b2ead22
to
ec60c86
Compare
Build was green (finally) I squashed and rebased |
The JMAP integration test part seems to take often 40 ~ 50 minutes to complete which is too long (we consider less than 30 minutes ok) @hungphan227 Can we investigate again? |
No description provided.