Skip to content

history: allow disabling build history - #7040

Open
tonistiigi wants to merge 2 commits into
moby:masterfrom
tonistiigi:history-zero-fix
Open

history: allow disabling build history#7040
tonistiigi wants to merge 2 commits into
moby:masterfrom
tonistiigi:history-zero-fix

Conversation

@tonistiigi

Copy link
Copy Markdown
Member

replaces #7038
Closes #3798.

CAOShurong and others added 2 commits August 13, 2026 17:10
Skip build-history recording entirely when history.maxEntries is explicitly set to zero, while still closing progress for normal builds. Cover successful and failed builds across the integration worker matrix and document the configuration.

Closes moby#3798.

Assisted-by: OpenAI Codex
Signed-off-by: Shurong Cao <170531907+CAOShurong@users.noreply.github.com>
maxEntries is now a pointer so an omitted value is distinguishable from an
explicit zero. Omitting it keeps the previous age-only GC behavior, the
default of 50 applies only when the whole history section is absent, and
an explicit zero disables recording of new build history.

Build metrics no longer depend on history being recorded. The step
summary and the error status are shared with the history path, and the
solver emits the same completion metrics when history is off. Collection
is skipped entirely when no meter provider is configured.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add special handling for HistoryAPI maxentries=0

3 participants