jina-ai / dashboard

Interactive UI for analyzing Jina logs, designing Flows and viewing Hub images
https://dashboard.jina.ai
Apache License 2.0
118 stars 61 forks source link

fix: use readline module to clear dev-server logs before writing #129

Closed Roshanjossey closed 3 years ago

Roshanjossey commented 3 years ago

I made this change to run dev-server in CI.

However, logs from dev-server messes out the output from tests.

  Logs page
Active Streams: 0 | Messages Sent: 100 | Current Speed: 0 msg/sActive Streams: 0 | Messages Sent: 100 | Current Speed: 0 msg/sActive Streams: 0 | Messages Sent: 100 | Current Speed: 0 msg/sActive Streams: 1 | Messages Sent: 101 | Current Speed: 0 msg/sActive Streams: 2 | Messages Sent: 102 | Current Speed: 0 msg/s    ✓ should redirect to /logs (2613ms)
Active Streams: 2 | Messages Sent: 103 | Current Speed: 0 msg/sActive Streams: 2 | Messages Sent: 104 | Current Speed: 0 msg/s    ✓ should display the title "Log Stream" (109ms)
    log level timeline
      ✓ shows a graph with time axis and occurence count level (155ms)
      on changing log duration
Active Streams: 2 | Messages Sent: 105 | Current Speed: 0 msg/sActive Streams: 2 | Messages Sent: 106 | Current Speed: 0 msg/sActive Streams: 2 | Messages Sent: 106 | Current Speed: 6 msg/sActive Streams: 2 | Messages Sent: 107 | Current Speed: 6 msg/sActive Streams: 2 | Messages Sent: 108 | Current Speed: 6 msg/sActive Streams: 2 | Messages Sent: 109 | Current Speed: 6 msg/sActive Streams: 2 | Messages Sent: 110 | Current Speed: 6 msg/s        ✓ changes duration from the dropdown menu (456ms)
Active Streams: 2 | Messages Sent: 111 | Current Speed: 6 msg/sActive Streams: 2 | Messages Sent: 112 | Current Speed: 6 msg/s

  4 passing (4s)

Do you suggest not logging in CI?