tilt-dev / tilt-dev/tilt

erroneous duplicate builds

Open
#4,535 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm seeing a problem where Tilt sometimes duplicates builds incorrectly. The flow looks like this:

  1. Deliberately introduce a typo in a Dockerfile
  2. Let tilt build it
  3. Fix the typo

Expected behavior:
Tilt should re-run the build with the typo fixed.

Actual behavior:
Tilt re-runs the build twice: once with the typo not fixed, and once with the typo fixed. Sometimes this means I'm waiting around for a few minutes while Tilt runs the build that I think is going to fail

I strongly suspect this is related to recent filewatch changes and synchronization.... 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 sequence with a Dockerfile typo, an initial Tilt build, and a subsequent fix. Start by inspecting the recent filewatch and synchronization changes mentioned in the report; done means Tilt runs only the build using the fixed Dockerfile, without an extra build using the stale typo.

Written by the indexing model from the issue text.

Assessment

Tech stack
dockerfile
Domain
build-system, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.