Commit Graph
4026 Commits
Author SHA1 Message Date
Tonis Tiigi eba72a35e4 vendor: update buildkit to v0.29.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-25 15:47:08 -07:00
Tõnis TiigiandGitHub a7d3578248 Merge pull request #3286 from crazy-max/bake-rdc339parse
bake: add unixtimestampparse and formattimestamp functions
2026-03-25 14:14:37 -07:00
Tõnis TiigiandGitHub 9504ab6678 Merge pull request #3740 from crazy-max/update-crazy-max-actions
ci: bump crazy-max/.github to 1.1.0
2026-03-25 09:34:45 -07:00
CrazyMax dcc591ea91 ci: bump crazy-max/.github to 1.1.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-25 12:06:59 +01:00
CrazyMax 92905a8f5a bake: support unix output in formattimestamp
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-25 11:59:24 +01:00
CrazyMax 2798e134e9 bake: add formattimestamp and tighten unix timestamp parsing
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-25 11:46:49 +01:00
CrazyMax 11395747a6 bake: add unixtimestampparse function
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-25 11:46:48 +01:00
Tõnis TiigiandGitHub b1c10489eb Merge pull request #3734 from crazy-max/build-fix-empty-syntax
build: reject empty BUILDKIT_SYNTAX overrides
2026-03-24 17:34:54 -07:00
Tõnis TiigiandGitHub 7ac8168016 Merge pull request #3738 from tonistiigi/policy-eval-upt
Updated for policy eval
2026-03-24 17:08:04 -07:00
Tõnis TiigiandGitHub be5de2c200 Merge pull request #3736 from jsternberg/dap-general-availability
dap: make dap generally available
2026-03-24 17:07:38 -07:00
CrazyMax 7c44ec11ec build: reject empty BUILDKIT_SYNTAX overrides
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-24 15:35:08 +01:00
CrazyMaxandGitHub f48bd18b4f Merge pull request #3737 from allexistence/docs-variable-example
docs: add example for --list=variables with variable descriptions
2026-03-24 09:34:00 +01:00
Tonis Tiigi 64cd4136d9 policy: support reading policy from stdin via --file -
Allow passing policy content through stdin by specifying
"--file -" in the eval command. This enables piping policy
data without requiring a file on disk.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-23 11:13:46 -07:00
Tonis Tiigi 7df7b4205b policy: align eval file flag
Use --file/-f for policy eval and keep hidden --filename as a
backward-compatible alias.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-23 11:04:14 -07:00
Tonis Tiigi 9dcb37f47c policy: add --platform to eval
Allow buildx policy eval to accept an explicit target platform and skip
worker platform discovery when the flag is provided.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-23 11:04:12 -07:00
Jonathan A. Sternberg a8d359a9ca dap: make dap generally available
Removes the experimental flags and bits for dap and deletes some dead
code that somehow made its way this far without anyone noticing.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2026-03-23 10:43:27 -05:00
Jonathan A. SternbergandGitHub dc5f9862a5 Merge pull request #3735 from jsternberg/dap-exit-code
dap: pass exit code through exited event
2026-03-23 10:42:57 -05:00
rishabh 0dede5c898 docs: add example for --list=variables with variable descriptions
Signed-off-by: rishabh <rishank69@gmail.com>
2026-03-23 12:04:02 +08:00
Jonathan A. Sternberg 180cfd9e41 dap: pass exit code through exited event
Pass the exit code through the exited event back to the client and
ensure that the printed text is printed completely.

Previously, the exited event just had a big todo and the printer would
sometimes fail to send messages to the connected client. This moves the
printer wait to before the debug adapter is closed to ensure that all
messages get sent through the connection to the editor. While there, I
also plumbed in the exit code to exited. It's not necessarily the real
exit code but it will produce a zero on build success and a non-zero
code on build failure so that should be good enough.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2026-03-20 14:02:21 -05:00
Tõnis TiigiandGitHub ba04f8f7b4 Merge pull request #3687 from jsternberg/dap-filter-inputs
dap: defer inputs for a step to prevent overeager evaluation
2026-03-20 10:57:30 -07:00
Jonathan A. Sternberg c79061526f dap: defer inputs for a step to prevent overeager evaluation
When the debug thread was updated to always solve inputs from the
operation that it was tied to it became a bit overeager to evaluate
them. The intention of the steps is to have a single direct parent and
then potentially multiple "function calls" that can be evaluated with
step into and step out to leave.

With the change, that logic stayed in, but the inputs were always being
evaluated before they were stepped into or over. Now, when we construct
the steps, we also attach a list of inputs that we should defer
evaluation on to ensure we don't execute inputs that haven't been
executed yet.

It will then wrap the reference with a version that causes `Evaluate` to
do nothing. This prevents the overeager evaluation but allows the
reference to be evaluated if we need to read the filesystem.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2026-03-20 09:26:32 -05:00
Tõnis TiigiandGitHub a0a8f63cd5 Merge pull request #3730 from crazy-max/history-mv-buildname
history: move BuildName to util/history
2026-03-19 16:55:45 -07:00
Tõnis TiigiandGitHub 771e0de740 Merge pull request #3732 from tonistiigi/imagetools-manifest-regex
imagetools: use regex for manifest template matching
2026-03-18 18:25:27 -07:00
Tõnis TiigiandGitHub 1e54ca2ce7 Merge pull request #3731 from tonistiigi/imagetools-push-parallelization
imagetools: share ingester across concurrent copies
2026-03-18 18:25:14 -07:00
CrazyMaxandGitHub de2c485cd9 Merge pull request #3728 from allexistence/docs-clarify-bake-env-override
docs: clarify Bake environment variable override behavior
2026-03-18 17:21:54 +01:00
rishabh 8bcf041190 docs: clarify Bake environment variable override behavior
Signed-off-by: rishabh <rishank69@gmail.com>

docs: address review feedback on bake env lookup

Signed-off-by: rishabh <rishank69@gmail.com>
2026-03-18 22:51:13 +08:00
Tonis Tiigi 78439e263b imagetools: use regex for manifest template matching
Allow optional whitespace inside the {{.Manifest}} template
delimiters when detecting whole-manifest format strings.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-17 17:46:01 -07:00
Tonis Tiigi e4f6e373af imagetools: share ingester across concurrent copies
Reuse a single ingester per target repository when imagetools create
copies multiple manifests in parallel.

This lets the pushing ingester serialize same-digest pushes and avoids
racing duplicate blob uploads against registries to work around bug in
Registry v3.0.0 (and possibly others).

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-17 17:18:55 -07:00
CrazyMax b272a37d46 history: move BuildName to util/history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-17 23:49:53 +01:00
Tõnis TiigiandGitHub c461e702bf Merge pull request #3716 from crazy-max/history-fix-finalize
history: finalize export records on their owning node
2026-03-17 12:34:14 -07:00
Tõnis TiigiandGitHub 3b8709777a Merge pull request #3701 from jsternberg/dap-fix-can-invoke
dap: fix the check to determine whether exec will succeed
2026-03-17 09:36:00 -07:00
Jonathan A. Sternberg b33ef2c9d4 dap: fix the check to determine whether exec will succeed
This refines the check for determining whether exec will succeed to work
when an error occurs. This check previously relied on the `Ref` being
populated in the result context but this would only happen if we were
paused from a breakpoint or by stepping. An error would not fill in this
field.

The check is now refined to use the new gateway filesystem exec API so
we can create the container and then check even if we don't have a
returned gateway reference. The logic to determine which mount to check
has also been moved.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2026-03-17 10:31:11 -05:00
CrazyMax 5245d50a5b tests: history finalize on multi-node
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-17 11:08:18 +01:00
CrazyMax c4e9dfcad9 bundle: use all node content stores during export
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-17 11:08:18 +01:00
CrazyMaxandCrazyMax b1a2f3006b history: finalize export records on their owning node
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-17 11:08:18 +01:00
CrazyMax 9fef35c40b e2e: test build records export
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-03-17 11:02:22 +01:00
CrazyMaxandGitHub ac1a8eed8e Merge pull request #3729 from docker/dependabot/github_actions/softprops/action-gh-release-2.6.1
build(deps): bump softprops/action-gh-release from 2.5.0 to 2.6.1
2026-03-17 10:10:17 +01:00
Tõnis TiigiandGitHub 19258b1d84 Merge pull request #3691 from jsternberg/dap-entrypoint-breakpoint
dap: fix skipped breakpoint when the breakpoint and the entrypoint were the same
2026-03-16 17:58:47 -07:00
dependabot[bot]andGitHub 1effa26aac build(deps): bump softprops/action-gh-release from 2.5.0 to 2.6.1
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/a06a81a03ee405af7f2048a818ed3f03bbf83c7b...153bb8e04406b158c6c84fc1615b65b24149a1fe)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 19:03:20 +00:00
Tõnis TiigiandGitHub 88b75da82d Merge pull request #3717 from crazy-max/fix-history-export-clients
history: deduplicate node clients during export
2026-03-13 17:36:47 -07:00
Tõnis TiigiandGitHub 86381f1f38 Merge pull request #3721 from tonistiigi/imagetools-oci-layout
imagetools: add oci-layout support
2026-03-13 17:34:13 -07:00
Tonis Tiigi 863398c789 imagetools: pass referrer filter opts to oci-layout path
FetchReferrers accepted FetchReferrersOpt but dropped them
when resolving OCI layout referrers. Forward the options and
apply ArtifactTypes filtering so callers can narrow results
consistently for both registry and local layout sources.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-12 23:15:01 -07:00
Tonis Tiigi 6eb48d9c8c imagetools: fix oci-layout index update when blob exists
When pushing to an OCI layout where the top-level descriptor
blob already existed, pushOCILayout returned early without
updating index.json or writing pending referrers. Restructure
the control flow so the blob-exists case skips only the write
but still updates the index and flushes referrers.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-12 22:54:35 -07:00
Tonis Tiigi 3e5c05cb1f imagetools: support oci-layout referrers
Handle OCI layout referrers via subject-annotated index entries and add
integration coverage for copying signed attestations through oci-layout.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-12 22:45:01 -07:00
Tonis Tiigi 9894189361 imagetools: support oci-layout refs
Add oci-layout:// source and target support to imagetools create and
inspect while keeping merge, filter, and referrer logic shared.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-12 22:45:01 -07:00
Tonis Tiigi 71edf28d8e tests: add negative checks for imagetools signature coverage
Verify imagetools copies signatures only for attestation manifests and
does not copy image-manifest signatures or unsupported referrers.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-03-12 22:45:01 -07:00
Tõnis TiigiandGitHub f14c1ae88e Merge pull request #3725 from crazy-max/update-crazy-max-github
ci: update crazy-max/.github reusable workflows to latest
2026-03-12 14:49:17 -07:00
Tõnis TiigiandGitHub 18c3dc273c Merge pull request #3724 from crazy-max/tests-multi-node
ci: run integration tests with the remote multi-node worker
2026-03-12 11:37:37 -07:00
CrazyMaxandGitHub 08152f55be Merge pull request #3727 from jsternberg/ci-netbsd-remove
ci: remove test-bsd-unit workflow
2026-03-12 17:39:08 +01:00
Jonathan A. Sternberg 8e29ab9493 ci: remove test-bsd-unit workflow
This workflow doesn't provide much value. It mostly fails on temporary
errors regarding vagrant and doesn't provide a very useful signal that
the build is broken.

We perform cross-compilation and ensure `buildx` still compiles on
different bsd variants. That should be enough to make sure we don't
inadvertently break something.

Closes #3711.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2026-03-12 10:36:36 -05:00