Skip to content

Draft: Stream job logs with WebSocket protocol using session server

What does this MR do?

Existing long polling process of providing job logs is suboptimal for user experience.

  • This provides JobTrace subscription support
  • Adds websocket log endpoint to the session server, which utilizes trace subscription

Why was this MR needed?

To later support websocket logs in gitlab for users that have logs page opened

What's the best way to test this MR?

Added functionality covered with unit tests. Also endpoint could be tested using tools like postman or wscat.

What are the relevant issue numbers?

gitlab#421512 gitlab#334778

Merge request reports

Loading