tilt-dev / tilt-dev/tilt

initial web load should stream logs

Open
#3,369 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
10.1k
Forks
413
Avg merge
1d 10h
Merged PRs (30d)
6

Description

Currently, when you visit http://localhost:10350/, the webview's initial pageload contains all the logs we've seen so far (up to a maximum payload).

But it would be too slow to display those logs all at once, so it:

  1. Only renders a window of the logs
  2. Incrementally streams new logs as they come in

The problem with this approach is that the initial web load takes much longer than it should.

We currently work-around this issue by capping the max logs in the logstore. But a better approach would be to only load the first "window" of logs in the initial payload, and backfill the historic logs as we need them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the webview's initial page-load payload and the logstore's existing log-window and incremental-streaming paths. Determine where historic logs can be requested or backfilled, then verify that the initial load contains only the first window while older logs appear as needed without breaking new-log streaming.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.