tilt-dev / tilt-dev/tilt

readiness probe verbosity

Open
#4,855 1 comment 0 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

Our storybook server has a readiness probe like this:

local_resource(
  'storybook',
  serve_cmd='yarn run storybook -- --ci',
  links=['http://localhost:9009'],
  readiness_probe=probe(http_get=http_get_action(port=9009)),
  labels=["frontend"])

When it succeeds, it prints the complete HTML returned by the server

Screenshot from 2021-08-12 10-35-46

What do you all think of either (a) truncating at some max length, or (b) defaulting to some other kind of log (like an apache-style HTTP log)? cc @milas

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

Reproduce the Storybook local_resource configuration and inspect the readiness_probe=probe(http_get=http_get_action(port=9009)) output path. Determine whether the desired behavior is truncation or an HTTP-style log, then verify that successful probes no longer print the complete HTML response.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.