Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
8e1bbed
git source: add AttrGitChecksum
AkihiroSuda Apr 10, 2025
13f36e6
dockerfile: implement `ADD --checksum=COMMIT_HASH GIT_URL`
AkihiroSuda May 16, 2025
17ae6d0
git: verify checksum early and more tests
tonistiigi May 17, 2025
93b71cd
git: add testcase for checking that adding checksum doesn't break cache
tonistiigi May 17, 2025
a3712e2
allow duration based filters on diskusage requests
tonistiigi Oct 24, 2024
13cf07c
Merge pull request #5979 from crazy-max/v0.22-picks-0.22.0-rc2
tonistiigi May 19, 2025
d976b7f
add eager compression
amyhu-b10 Apr 9, 2026
a48b0d5
address comments
amyhu-b10 Apr 10, 2026
ce339b5
add push
amyhu-b10 Apr 10, 2026
1b7a396
add info logging
amyhu-b10 Apr 10, 2026
8f3a208
fix bug
amyhu-b10 Apr 10, 2026
0e5dec4
Add parallel layer extraction support
amyhu-b10 Apr 10, 2026
548d483
debug loggiing + fix
amyhu-b10 Apr 10, 2026
d048126
hm
amyhu-b10 Apr 10, 2026
dc202e8
small change
amyhu-b10 Apr 10, 2026
c585ef2
cleanup
amyhu-b10 Apr 10, 2026
02aa68f
cleanup
amyhu-b10 Apr 10, 2026
b88d6f3
safety check
amyhu-b10 Apr 10, 2026
825205b
add logs
amyhu-b10 Apr 10, 2026
4349a09
get faster decompression speeds
amyhu-b10 Apr 10, 2026
c11f52c
Merge pull request #4 from basetenlabs/amyhu/switch-decompression-method
amyhu-b10 Apr 10, 2026
bf6084e
add tests
amyhu-b10 Apr 10, 2026
fe763ef
Add CI and post-merge GitHub Actions workflows
amyhu-b10 Apr 10, 2026
8d11945
Fix CI lint and unit test failures
amyhu-b10 Apr 10, 2026
157019a
Add CODEOWNERS to require runtime-fabric team review
amyhu-b10 Apr 10, 2026
fa6d0ca
Fix CI: only-new-issues for lint, exclude privileged test packages
amyhu-b10 Apr 10, 2026
bbf9686
Update post-merge image tag format and add explicit target
amyhu-b10 Apr 10, 2026
dc3f0d9
Add workflow_dispatch and print pushed image name
amyhu-b10 Apr 10, 2026
4a190a6
Merge pull request #5 from basetenlabs/amyhu/setup-ci-workflows
amyhu-b10 Apr 10, 2026
8b8198f
fix lint
amyhu-b10 Apr 11, 2026
68e0d62
fix lint
amyhu-b10 Apr 13, 2026
f38de16
Merge branch 'v0.22-base' into amyhu/eager-push
amyhu-b10 Apr 13, 2026
6b87176
quick fix
amyhu-b10 Apr 14, 2026
468ae24
add user facing logs
amyhu-b10 Apr 14, 2026
0a6f4ca
Merge pull request #3 from basetenlabs/amyhu/eager-push
amyhu-b10 Apr 14, 2026
a4b9322
quick logging fix
amyhu-b10 Apr 14, 2026
c836708
Merge pull request #15 from basetenlabs/amyhu/add-user-facing-logs
amyhu-b10 Apr 14, 2026
fd8052f
updates
amyhu-b10 Apr 15, 2026
09df157
Merge pull request #2 from basetenlabs/amyhu/parallel-extract-v0.22
amyhu-b10 Apr 15, 2026
276c48e
Treat OTel export failures as non-fatal (fixes moby/buildkit#4616)
ndeepak-baseten Apr 16, 2026
39e6b5e
Merge pull request #16 from basetenlabs/ndeepak/fix-otel-shutdown-stall
ndeepak-baseten Apr 16, 2026
278e172
add prefer push registry
amyhu-b10 Apr 16, 2026
fece4ec
probe push registry blob before committing to it
amyhu-b10 Apr 16, 2026
8685c83
add timeout for the probe
amyhu-b10 Apr 16, 2026
ba31bb3
add tests for pushFallbackProvider and fix lint
amyhu-b10 Apr 16, 2026
6a31d5b
Merge pull request #17 from basetenlabs/amyhu/pull-from-push-registry
amyhu-b10 Apr 16, 2026
cad552f
fix bug
amyhu-b10 Apr 18, 2026
a790b18
more cleanup
amyhu-b10 Apr 20, 2026
7eb5d37
update comments
amyhu-b10 Apr 20, 2026
c6374ef
remove the lock on the channel send
amyhu-b10 Apr 20, 2026
75f4621
fix eager pipeline gofmt lint failure
amyhu-b10 Apr 20, 2026
1e63eff
Merge pull request #18 from basetenlabs/amyhu/fix-channel-close-bug
amyhu-b10 Apr 20, 2026
43f01d6
add logging
amyhu-b10 Apr 22, 2026
ba9740e
Merge pull request #19 from basetenlabs/amyhu/add-more-logging
amyhu-b10 Apr 22, 2026
6402220
more logging
amyhu-b10 Apr 22, 2026
a13eba0
Merge pull request #20 from basetenlabs/amyhu/add-more-logging-pt-2
amyhu-b10 Apr 22, 2026
cd0caac
add a span for eager compress + push
amyhu-b10 Apr 23, 2026
750c0c9
make this an info level log
amyhu-b10 Apr 23, 2026
b55e8c5
fix lint: ineffectual assignment to ctx
amyhu-b10 Apr 23, 2026
6e12d51
Merge pull request #21 from basetenlabs/amyhu/add-wait-for-eager-span
amyhu-b10 Apr 23, 2026
cc85e1a
fix eager export
amyhu-b10 Apr 28, 2026
9811c24
adjust comments
amyhu-b10 Apr 28, 2026
238ab9d
cleanup
amyhu-b10 Apr 28, 2026
0244ef5
address comments
amyhu-b10 Apr 28, 2026
2d9d471
don't be too spammy
amyhu-b10 Apr 28, 2026
7afc895
add comments
amyhu-b10 Apr 28, 2026
f60202c
address comments
amyhu-b10 Apr 29, 2026
76ec659
Merge pull request #22 from basetenlabs/amyhu/fix-eager-export
amyhu-b10 Apr 29, 2026
384fe01
more improvements
amyhu-b10 Apr 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @basetenlabs/runtime-fabric
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
pull_request:
branches:
- v0.22-base

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
GO_VERSION: "1.24"

jobs:
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- uses: golangci/golangci-lint-action@v7
with:
version: latest
args: --modules-download-mode=vendor
only-new-issues: true

unit-tests:
name: Unit Tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Run unit tests
run: |
go test -mod=vendor -count=1 -timeout 10m \
$(go list -mod=vendor ./... | grep -v -E '(worker/(containerd|runc)|cache$|cache/contenthash|snapshot$|source/(git|http)|util/overlay)$')
env:
SKIP_INTEGRATION_TESTS: "1"
94 changes: 94 additions & 0 deletions .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Post-Merge

on:
push:
branches:
- v0.22-base
workflow_dispatch:
inputs:
skip_integration_tests:
description: 'Skip integration tests'
required: false
type: boolean
default: false
skip_build:
description: 'Skip image build & push'
required: false
type: boolean
default: false

permissions:
contents: read

env:
GO_VERSION: "1.24"
SETUP_BUILDX_VERSION: "edge"
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
IMAGE_NAME: "baseten/buildkit"

jobs:
integration-tests:
name: Integration Tests
if: ${{ !inputs.skip_integration_tests }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: crazy-max/ghaction-github-runtime@v3
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
version: ${{ env.SETUP_BUILDX_VERSION }}
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
buildkitd-flags: --debug
- name: Build integration test image
uses: docker/bake-action@v6
with:
targets: integration-tests
set: |
*.cache-from=type=gha,scope=integration-tests
*.cache-to=type=gha,scope=integration-tests,repository=${{ github.repository }},ghtoken=${{ secrets.GITHUB_TOKEN }}
- name: Run integration tests
run: ./hack/test integration
env:
TESTPKGS: ./client ./cmd/buildctl ./solver ./frontend
TESTFLAGS: "-v --parallel=6 --timeout=30m"
GOTESTSUM_FORMAT: standard-verbose
TEST_IMAGE_BUILD: "0"
CACHE_FROM: type=gha,scope=integration-tests

build-and-push:
name: Build & Push Image
if: ${{ !inputs.skip_build }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
with:
version: ${{ env.SETUP_BUILDX_VERSION }}
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
buildkitd-flags: --debug
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Generate tag
id: tag
run: |
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
TIMESTAMP=$(date -u +%Y%m%d%H%M%S)
echo "tag=v0.22.0-${SHORT_SHA}-${TIMESTAMP}" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
target: buildkit
platforms: linux/amd64
tags: ${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }}
cache-from: type=gha,scope=build-image
cache-to: type=gha,scope=build-image,mode=max
- name: Print image
run: echo "Pushed ${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }}"
7 changes: 6 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ linters:
gosec:
excludes:
- G101
- G115
- G118
- G120
- G122
- G402
- G504
- G601
- G115
- G703
config:
G306: "0644"
govet:
Expand Down Expand Up @@ -119,6 +123,7 @@ linters:
text: if-return
paths:
- .*\.pb\.go$
- .*_test\.go$
- examples
formatters:
enable:
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ FROM scratch AS release
COPY --link --from=releaser /out/ /

FROM alpine:${ALPINE_VERSION} AS buildkit-export-alpine
RUN apk add --no-cache fuse3 git openssh pigz xz iptables ip6tables \
RUN apk add --no-cache fuse3 git openssh pigz isa-l xz iptables ip6tables \
&& ln -s fusermount3 /usr/bin/fusermount
COPY --link examples/buildctl-daemonless/buildctl-daemonless.sh /usr/bin/
VOLUME /var/lib/buildkit
Expand All @@ -213,6 +213,7 @@ RUN apt-get update \
git \
openssh-client \
pigz \
isal \
xz-utils \
iptables \
ca-certificates \
Expand Down Expand Up @@ -458,7 +459,7 @@ VOLUME /var/lib/buildkit

# rootless builds a rootless variant of buildkitd image
FROM alpine:${ALPINE_VERSION} AS rootless
RUN apk add --no-cache fuse3 fuse-overlayfs git openssh pigz shadow-uidmap xz
RUN apk add --no-cache fuse3 fuse-overlayfs git openssh pigz isa-l shadow-uidmap xz
RUN adduser -D -u 1000 user \
&& mkdir -p /run/user/1000 /home/user/.local/tmp /home/user/.local/share/buildkit \
&& chown -R user /run/user/1000 /home/user \
Expand Down
Loading