#88 Make the live build logs a stream
Closed: MIGRATED a year ago by nikromen. Opened 6 years ago by ngompa.

Currently, the live build logs are written in such a way that when you curl them, it reaches the end and stops. This is contrast to how OBS does it, in which when you curl an in-progress build log, curl keeps receiving data and appending to the stream (as if it's actually writing to stdout).

Please make the live build logs work that way, as it makes watching them much better.


I'm not aware of OBS details, but note that the log is transferred from builder to backend, and backend (from the end-user perspective) is "just" rock solid http server; at least nowadays. Also, builders are not accessible from the outside.
Can this feature be implemented without adding specific streaming server (daemon) onto backend side, only because of live logs?

@praiskup My understanding is that what makes it a stream is that it has no EOF, so curl doesn't quit and keeps pulling stuff as it updates.

Hms, the log on backend is just result of ssh remote-builder '/usr/bin/tail -F -n +0 --pid=<PID> log_file'. This is "stream" from the OS perspective; the question is how to configure http server to allow http streaming without implementing streaming daemon.

Metadata Update from @msuchy:
- Issue tagged with: RFE

5 years ago

Metadata Update from @nikromen:
- Issue close_status updated to: MIGRATED
- Issue status updated to: Closed (was: Open)

a year ago

Login to comment on this ticket.

Metadata