This issue has been created
There are 3 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d061dc83-89a2-4be0-bf69-c4ae271b648a XWIKI-22195 Open

NotificationsIT#simpleNotifications and NotificationsIT.guestUsersDontSeeNotificationMenu are flickering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-77e4f3d1-38c4-4f44-8943-6c86b964f74e Florean Oana-Lavinia created this issue on 28/May/24 18:00
 
Summary: NotificationsIT#simpleNotifications is flickering
Issue Type: cid:jira-generated-image-avatar-d061dc83-89a2-4be0-bf69-c4ae271b648a Bug
Affects Versions: 16.4.0-rc-1
Assignee: Unassigned
Components: Development Issues only
Created: 28/May/24 18:00
Labels: flickering
Priority: cid:jira-generated-image-static-major-16945bfa-8ae8-448a-b13a-d6a78716b3a8 Major
Reporter: Florean Oana-Lavinia
Description:

This test is flickering with the following stacktrace:

java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 0
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
	at java.base/java.util.Objects.checkIndex(Objects.java:359)
	at java.base/java.util.ArrayList.get(ArrayList.java:427)
	at org.xwiki.platform.notifications.test.ui.NotificationsIT.setup(NotificationsIT.java:114)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) 
 
 

3 updates

 
cid:jira-generated-image-avatar-77e4f3d1-38c4-4f44-8943-6c86b964f74e Changes by Florean Oana-Lavinia on 28/May/24 18:01
 
Summary: NotificationsIT#simpleNotifications is and NotificationsIT.guestUsersDontSeeNotificationMenu are flickering
Description: This test is These tests are both flickering with the following stacktrace:
{code:java}
java.lang.IndexOutOfBoundsException: Index 2 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.base/java.util.Objects.checkIndex(Objects.java:359)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at org.xwiki.platform.notifications.test.ui.NotificationsIT.setup(NotificationsIT.java:114)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) {code}
Flickering Test: org.xwiki.platform.notifications.test.ui.AllIT$NestedNotificationsIT.simpleNotifications(TestUtils, TestReference)|org.xwiki.platform.notifications.test.ui.AllIT$NestedNotificationsIT.guestUsersDontSeeNotificationMenu(TestUtils)
 
 

1 comment

 
cid:jira-generated-image-avatar-77e4f3d1-38c4-4f44-8943-6c86b964f74e Florean Oana-Lavinia on 28/May/24 18:07
 

The reason for this flicker might be the same for some occurrences of NotificationsIT#ownEventNotifications, mentioned in XWIKI-21076 comments.
Looking at the timing of the comments where this stacktrace was first mentioned there, a reason for the failure could be XWIKI-18998 , but I am not sure if the issue coming from AbstractNotificationsSettingsPage#getSystemNotificationFilterPreferences was not actually present there before.