gitpod-io / gitpod-io/gitpod

Dockerfile always rebuilding with "Incremental Prebuilds" enabled

Open
#11,455 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:question: clarification required meta: never-stale type: bug
Dominant language
TypeScript
Stars
13.8k
Forks
1.4k
Avg merge
17h 58m
Merged PRs (30d)
5

Description

Bug description

I have Incremental Prebuilds enabled for my project (https://gitpod.io/projects/rdflib/settings), however every time I commit to a PR branch the docker build starts from scratch as far as I can tell.

Steps to reproduce
  1. Create a branch from https://github.com/aucampia/rdflib/tree/iwana-20220718T2235-gitpod-issue
  2. Create a (draft) PR from the branch
  3. Wait for it to do a prebuild
  4. Create an arbitrary update to README.md on the branch
  5. Wait for it to do a prebuild
Workspace affected

https://gitpod.io/#https://github.com/aucampia/rdflib/tree/iwana-20220718T2235-gitpod-issue

Expected behavior

Each update to README.md after the first prebuild does not do a full docker build

Example repository

https://github.com/aucampia/rdflib/tree/iwana-20220718T2235-gitpod-issue

Anything else?

No response

Front logo Front conversations

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 with the linked example repository and its Dockerfile-related prebuild behavior, using the README.md update in the reproduction steps to compare successive prebuilds. Review the referenced issue 14334 and available prebuild logs first. Done means an arbitrary README.md commit reuses the prior Docker build rather than rebuilding from scratch.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
build-system, devops
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.