-
Notifications
You must be signed in to change notification settings - Fork 317
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
Timeout on Tycho 4/5 builds #2895
Comments
SeveralEditorsQueuedBuildTest seems to be one culprit, SaveWithReconciliationQueuedBuildDataTest another one |
Only in Jenkins? Or also on GitHub Actions? |
does this run on actions daily at all. not to MY knowledge |
I meant the workflows that ran the first time you pushed those branches. |
this branches are month old and updated quite seldom only. |
wonder if there is an option to get a jstack / thread dump on timeout |
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
we might also have to set a test timeout. |
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
I don't know if that's the case, but the last time I saw a stuck job on Xtext GitHub Actions, which I had to cancel, was due to a small bug I introduced in my fork that caused Xtend renaming, throwing an exception. Of course, I could reproduce the bug locally: everything was stuck due to the Eclipse dialog showing the uncaught exception. With that dialog on the way, the tests did not proceed at all... |
hang can be reproduced locally |
maybe |
I'm pretty sure there should be an event since we change the content of the editor. |
If I understand correctly this problem shows up only since Tycho 4, right? |
saw it run as plugin test. |
What do you mean? |
No it hang on the 10th attempt or so |
Maybe trying with By the way, def waitForElementChangedEvent(int eventMask, =>void producer) {
if (VERBOSE) {
println('''start waiting for an element changed event: «eventMask»''')
}
val changed = new AtomicBoolean(false)
JavaCore.addElementChangedListener(
[
JavaCore.removeElementChangedListener(self)
if (!changed.get) {
changed.set(true)
if (VERBOSE) {
println(it)
}
}
], eventMask)
producer.apply
while (!changed.get) {
if (Display.getCurrent() !== null) {
while (Display.getDefault().readAndDispatch()) {
// process queued ui events
}
}
}
if (VERBOSE) {
println('''end waiting for an element changed event: «eventMask»''')
}
} maybe it should never be the case but if Display.getCurrent() is null we never exit that while loop. |
log says start waiting for an element changed event: 1 |
maybe in recent jdt something about reconciliation has changed that it never happens |
The latest. Reloaded this morning. |
am also using latest |
What does the screenshot want to show? Is the program stuck there? |
yes. so the event is never produced |
I cannot reproduce it on macOS m1 nor on a slower laptop with Linux... On the screenshot, the console shows that the event has been caught and printed on the screen. Could you please try this? while (!changed.get && Display.getDefault().readAndDispatch()) {
if (VERBOSE) {
println("readAndDispatch")
}
} |
leads to test errors with
|
Yes, on this line (assertThereAreNotDeltas) barEditor.save
queuedBuildDataContribution.unconfirmedDeltas.assertThereAreDeltas("mypackage.Bar")
queuedBuildData.andRemovePendingDeltas.assertThereAreNotDeltas |
...but only sometimes on my computer (though I'm not using your suite) |
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
…ad dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de> [#2895] attempt to archive surefire reports in the hope to get a thread dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com> in timeout see #3073 add another 10 mins Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de> [#2895] attempt to archive surefire reports in the hope to get a thread dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com> in timeout see #3073 add another 10 mins Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de> [#2895] attempt to archive surefire reports in the hope to get a thread dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com> in timeout see #3073 add another 10 mins Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de> [#2895] attempt to archive surefire reports in the hope to get a thread dump Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com> in timeout see #3073 add another 10 mins Signed-off-by: Christian Dietrich <christian.dietrich.opensource@gmail.com>
Tycho 4/5 builds regularly get killed due to hanging tests it seems
needs to be investigated
cc @LorenzoBettini @szarnekow
https://ci.eclipse.org/xtext/job/xtext/job/cd_tycho40/
https://ci.eclipse.org/xtext/job/xtext/job/cd_tycho50/
The text was updated successfully, but these errors were encountered: