target-repo | java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.write(byte[])" because the return value of "io.unlogged.logging.perthread.PerThreadBinaryFileAggregatedLogger.getStreamForThread(int)" is null
target-repo | at io.unlogged.logging.perthread.PerThreadBinaryFileAggregatedLogger.writeEvent(PerThreadBinaryFileAggregatedLogger.java:387)
target-repo | at io.unlogged.logging.impl.DetailedEventStreamAggregatedLogger.recordEvent(DetailedEventStreamAggregatedLogger.java:421)
target-repo | at io.unlogged.logging.Logging.recordEvent(Logging.java:63)
target-repo | at org.unlogged.demo.controller.CustomerController.Unlogged$Probed$$getCustomerProfile(CustomerController.java:25)
target-repo | at org.unlogged.demo.controller.CustomerController.getCustomerProfile(CustomerController.java)
target-repo | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
target-repo | at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
target-repo | at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
target-repo | at java.base/java.lang.reflect.Method.invoke(Method.java:568)
target-repo | at io.unlogged.AgentCommandExecutorImpl.executeCommandRaw(AgentCommandExecutorImpl.java:410)
target-repo | at io.unlogged.AgentCommandExecutorImpl.executeCommand(AgentCommandExecutorImpl.java:480)
target-repo | at io.unlogged.command.AgentCommandServer.serve(AgentCommandServer.java:74)
target-repo | at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945)
target-repo | at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192)
target-repo | at java.base/java.lang.Thread.run(Thread.java:840)
New Behaviour
An old session is created in IST. Then new session is created in UTC. The old session gets deleted by the plugin.
The pull request modifies the calculation of recent session by the plugin. It now uses timezone for calculation of the creation time of the session.
Old behaviour [github/client]
New Behaviour
Test Plan
Smoke Test
https://github.com/user-attachments/assets/07e13df9-40a9-46c4-86ca-6c1ae76cebce
Scanning Test
UI Test
gitlab/session_recent_ui_test
which has changes fromgithub/session_recent (this change)
andgitlab/client-ui-test (UI Tests)
Remote Mode (tested with server-jug)