Tõnis Tiigi and GitHub
59f52c9505
Merge pull request #2507 from daghack/update-lint-metric-regex
...
Update the lint metrics to match agains the rule URL
2024-06-10 13:33:25 -07:00
Tõnis Tiigi and GitHub
39db6159f9
Merge pull request #2503 from tonistiigi/20240606-update-buildkit
...
update buildkit to v0.14.0-rc2
2024-06-06 16:30:31 -07:00
Tonis Tiigi
922328cbaf
build: update lint fallback image to v1.8.0-rc2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-06 16:18:43 -07:00
Tonis Tiigi
aa0f90fdd6
vendor: update buildkit to v0.14.0-rc2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-06 16:17:17 -07:00
Tõnis Tiigi and GitHub
d8de5bb345
Merge pull request #2498 from tonistiigi/0603-lint-fallback-update
...
build: update lint fallback image
2024-06-03 13:28:21 -07:00
Tonis Tiigi
eff1850d53
build: update lint fallback image
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-03 13:17:52 -07:00
Tõnis Tiigi and GitHub
a24043e9f1
Merge pull request #2487 from daghack/call-lint
...
Rename --print to --call and make previous name hidden
2024-06-03 12:39:43 -07:00
Tonis Tiigi
0902294e1a
ensure call aliases also work formatting parameters
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-03 12:09:47 -07:00
Tonis Tiigi
89810dc998
build: set default call method name to build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-03 10:42:35 -07:00
Tõnis Tiigi and GitHub
5afb210d43
Merge pull request #2491 from jsternberg/update-buildkit
...
vendor: update buildkit to v0.14.0-rc1
2024-06-03 10:23:26 -07:00
Tõnis Tiigi and GitHub
03f84d2e83
Merge pull request #2496 from crazy-max/dial-cmd-flags
...
dial-stdio: remove extra cmd.flags()
2024-06-03 09:08:32 -07:00
Tonis Tiigi
9a30215886
tests: avoid early shutdown of sandbox
...
Because sandbox is closed down when the main test
that created the sandbox returns it can't have subtests
that set themselves as parallel as they would continue
to run in a different lifecycle.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-31 17:38:32 -07:00
Tõnis Tiigi and GitHub
bc83ecb538
Merge pull request #2490 from tonistiigi/lint-fallback-update
...
build: update --print fallback image to 1.8.0-rc1
2024-05-31 14:08:08 -07:00
Tonis Tiigi
ceaa4534f9
build: update --print fallback image to 1.8.0-rc1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-31 13:57:56 -07:00
Tõnis Tiigi and GitHub
9b6c4103af
Merge pull request #2488 from tonistiigi/add-jonathan
...
add Jonathan to buildx maintainers
2024-05-31 10:07:21 -07:00
Tõnis Tiigi and GitHub
4549283f44
Merge pull request #2482 from rvoh-tismith/fix/single_source_create
...
Add `--prefer-index` flag for`imagetools create` on a single source
2024-05-31 09:44:43 -07:00
Tonis Tiigi
b2e907d5c2
add Jonathan to buildx maintainers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-31 08:36:15 -07:00
Tõnis Tiigi and GitHub
7427adb9b0
Merge pull request #2484 from jsternberg/lint-metrics
...
metrics: record the number of times lint rules are triggered during a build
2024-05-30 15:15:03 -07:00
Tõnis Tiigi and GitHub
e3d5e64ec9
Merge pull request #2475 from thaJeztah/remove_urlutil
...
remove uses of github.com/docker/docker/builder/remotecontext package
2024-05-28 22:51:36 -07:00
Tõnis Tiigi and GitHub
2e7da01560
Merge pull request #2473 from tonistiigi/prune-negative-filter
...
prune: allow negative and prefix filters
2024-05-28 13:53:06 -07:00
Tonis Tiigi
781dcbd196
prune: allow negative and prefix filters
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-24 16:57:25 -07:00
Tõnis Tiigi and GitHub
37c4ff0944
Merge pull request #2467 from tonistiigi/fix-resolvednode-cache-panic
...
build: fix resolvedNode cache and panic protection
2024-05-22 07:07:36 -07:00
Tõnis Tiigi and GitHub
cc9ea87142
Merge pull request #2460 from jsternberg/vendor-update
...
vendor: update buildx to latest docker/cli
2024-05-21 09:20:09 -07:00
Tonis Tiigi
035236a5ed
driver: handle nil logger for bootstrap
...
resolveNode methods can call with nil logger. Although
the results should already be cached now in resolver
this makes the protection more explicit.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-20 16:38:01 -07:00
Tonis Tiigi
99777eaf34
build: add cache to resolvedNode
...
Currently it is possible for boot() to be called
multiple times, resulting multiple slow requests to
establish connection (eg. multiple container inspects
for container driver).
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-20 16:31:42 -07:00
Tonis Tiigi and Jonathan A. Sternberg
3f1aaa68d5
build: fix multiple named contexts pointing to same bake target
...
Contexts using target: schema are replaced by input: pointing
to previous build result before build request is sent. Currently
this replacement did not work if multiple contexts pointed to
the same target name.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
(cherry picked from commit f8c6a97edc )
2024-05-16 12:14:08 -05:00
Tonis Tiigi and Jonathan A. Sternberg
b77648d5f8
build: avoid default load with --print
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
(cherry picked from commit fbb0f9b424 )
2024-05-16 11:29:59 -05:00
Tõnis Tiigi and GitHub
2f98e6f3ac
Merge pull request #2444 from tonistiigi/fix-base-duplicate-target-ref
...
build: fix multiple named contexts pointing to same bake target
2024-05-13 08:48:55 -07:00
Tonis Tiigi
f8c6a97edc
build: fix multiple named contexts pointing to same bake target
...
Contexts using target: schema are replaced by input: pointing
to previous build result before build request is sent. Currently
this replacement did not work if multiple contexts pointed to
the same target name.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-02 18:08:45 -07:00
Tõnis Tiigi and GitHub
1d88c4b169
Merge pull request #2439 from crazy-max/ci-split-validate
...
ci(validate): split lint
2024-05-01 13:58:20 -07:00
Tõnis Tiigi and GitHub
1fb5d2a9ee
Merge pull request #2422 from crazy-max/skip-provenance-internal
...
build: don't generate metadata file when print flag is used
2024-04-29 17:12:20 -07:00
Tonis Tiigi
7ea5cffb98
make: tidy redirects to bake
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-25 17:08:21 -07:00
Tonis Tiigi
d0cc9ed0cb
hack: add gopls based linters
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-24 18:11:30 -07:00
Tonis Tiigi
b30566438b
lint: gopls fixes
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-24 17:58:17 -07:00
Tonis Tiigi
ec98985b4e
hack: linter updates
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-24 17:20:27 -07:00
Tonis Tiigi
9428447cd2
lint: unusedwrite fixes
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-24 17:19:52 -07:00
Tonis Tiigi
6112c41637
lint: nilness fixes
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-24 17:19:32 -07:00
Tõnis Tiigi and GitHub
a727de7d5f
Merge pull request #2421 from tonistiigi/print-default-load
...
build: avoid default load with --print
2024-04-24 16:38:21 -07:00
Tõnis Tiigi and GitHub
4a8fcb7aa0
Merge pull request #2423 from crazy-max/test-build-print
...
test: build print
2024-04-24 16:38:03 -07:00
Tõnis Tiigi and GitHub
771e66bf7a
Merge pull request #2424 from jaihwan104/exit-1-when-manifest-merge-failed
...
fix exit code when manifest merge failed
2024-04-24 16:37:18 -07:00
Tonis Tiigi
fbb0f9b424
build: avoid default load with --print
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-18 18:12:39 -07:00
Tõnis Tiigi and GitHub
171fcbeb69
Merge pull request #2417 from tonistiigi/update-buildkit-240417
...
vendor: update buildkit to 71f99c52a669
2024-04-17 10:02:29 -07:00
Tonis Tiigi
370a5aa127
update lint fallback image
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-17 09:18:52 -07:00
Tonis Tiigi
13653fb84d
vendor: update buildkit to 71f99c52a669
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-17 08:21:11 -07:00
Tõnis Tiigi and GitHub
1b16594f4a
Merge pull request #2415 from igaskin/scheduler-name
...
feat: adding option to add scheduler name to kubernetes driver
2024-04-17 08:18:23 -07:00
Tõnis Tiigi and GitHub
3905e8cf06
Merge pull request #2416 from crazy-max/print-internal
...
build: mark information requests as internal
2024-04-17 08:15:55 -07:00
Tõnis Tiigi and GitHub
ac331d3569
Merge pull request #2401 from crazy-max/ci-k3s-update
...
ci: switch to reusable workflow to install k3s
2024-04-15 16:00:55 -07:00
Tõnis Tiigi and GitHub
07c9b45bae
Merge pull request #2408 from tonistiigi/print-statuscode
...
build: support statuscode response for print requests
2024-04-15 15:58:52 -07:00
Tõnis Tiigi and GitHub
b91957444b
Merge pull request #2406 from tonistiigi/print-lint-fallback
...
build: add fallback image for --print=lint
2024-04-15 15:58:34 -07:00
Tonis Tiigi
46c44c58ae
build: support statuscode response for print requests
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-15 10:38:54 -07:00
Tonis Tiigi
126fe653c7
build: refactor print fallbacks to own function
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-12 17:09:43 -07:00
Tonis Tiigi
f0cbc95eaf
build: add fallback image for --print=lint
...
Fallback to known supporting image if lint called
on old frontend.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-12 17:09:38 -07:00
Tõnis Tiigi and GitHub
d294232cb5
Merge pull request #2404 from tonistiigi/buildkit-vendor-lint-update
...
vendor: update buildkit v0.14-dev version 549891b
2024-04-11 08:24:21 -07:00
Tonis Tiigi
46cf94092c
commands: use vendored formatter for lint responses
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-11 07:52:07 -07:00
Tonis Tiigi
da3435ed3a
vendor: update buildkit v0.14-dev version 549891b
...
Brings in formatter for lint requests.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-11 07:49:31 -07:00
Tõnis Tiigi and GitHub
3e90cc4b84
Merge pull request #2280 from crazy-max/provenance-metadata
...
build: set record provenance in response
2024-04-11 07:31:12 -07:00
Tõnis Tiigi and GitHub
60f48059a7
Merge pull request #2394 from crazy-max/fix-stdin-controller
...
build: fix stdin handling when building with controller
2024-04-09 09:57:31 -07:00
Tõnis Tiigi and GitHub
0d6b3a9d1d
Merge pull request #2336 from crazy-max/bake-load-override
...
bake: load override
2024-04-08 16:12:22 -07:00
Tõnis Tiigi and GitHub
38fbd9a85c
Merge pull request #2377 from crazy-max/test-stdin
...
tests: build from stdin
2024-04-02 09:54:45 -07:00
Tonis Tiigi
858e347306
handle json formatting for print
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-01 16:46:04 -07:00
Tõnis Tiigi and GitHub
c690d460e8
Merge pull request #2362 from jsternberg/single-tracer-delegate-client
...
driver: initialize tracer delegate in driver handle instead of individual plugins
2024-03-29 11:47:41 -07:00
Tõnis Tiigi and GitHub
35781a6c78
Merge pull request #2366 from crazy-max/update-buildkit
...
vendor: github.com/moby/buildkit 25bec7145b39 (v0.14.0-dev)
2024-03-29 10:59:43 -07:00
Tõnis Tiigi and GitHub
8abef59087
Merge pull request #2344 from jsternberg/progress-metrics-non-experimental
...
progress: remove the experimental label from progress metrics
2024-03-22 09:23:39 -07:00
Tõnis Tiigi and GitHub
4af0ed5159
Merge pull request #2323 from jsternberg/build-idle-time-metric
...
metrics: measure idle time during builds
2024-03-18 15:15:29 -07:00
Tõnis Tiigi and GitHub
520dc5968a
Merge pull request #2298 from LaurentGoderre/imagetools-inspect-tests
...
Add tests for imagetools inspect
2024-03-15 13:04:06 -07:00
Tõnis Tiigi and GitHub
324afe60ad
Merge pull request #2341 from crazy-max/tests-refactor-worker-handling
...
tests: refactor worker handling in sandbox
2024-03-15 12:53:27 -07:00
Tõnis Tiigi and GitHub
ed76661b0d
Merge pull request #2317 from jsternberg/build-export-image-metric
...
metrics: measure export image operation
2024-03-14 14:59:35 -07:00
Tõnis Tiigi and GitHub
d410597f5a
Merge pull request #2316 from jsternberg/build-exec-command-time
...
metrics: measure run operations for exec operations
2024-03-14 13:13:51 -07:00
Tõnis Tiigi and GitHub
2565c74a89
Merge pull request #2254 from crazy-max/rm-local-dirs
...
chore: switch to LocalMounts implementation
2024-03-14 11:34:12 -07:00
Tõnis Tiigi and GitHub
eab5cccbb4
Merge pull request #2271 from jsternberg/build-image-transfer-metric
...
metrics: measure image transfers for image source operations
2024-03-14 10:28:50 -07:00
Tõnis Tiigi and GitHub
a8af6fa013
Merge pull request #2332 from crazy-max/build-move-opts
...
build: move funcs related to solve opts handling
2024-03-13 10:58:26 -07:00
Tõnis Tiigi and GitHub
df4b13320d
Merge pull request #2330 from crazy-max/fix-bake-load-push
...
bake: fix output handling for push
2024-03-12 09:34:07 -07:00
Tõnis Tiigi and GitHub
bb511110d6
Merge pull request #2327 from tonistiigi/remote-connhelper-fix
...
remote: fix connhelpers with custom dialer
2024-03-12 09:01:23 -07:00
Tonis Tiigi
8f576e5790
remote: fix connhelpers with custom dialer
...
With the new dial-stdio command the dialer is split
from `Client` function in order to access it directly.
This breaks the custom connhelpers functionality
as support for connhelpers is a feature of the default
dialer. If client defines a custom dialer then only
it is used without extra modifications. This means
that remote driver dialer needs to detect the
connhelpers on its own.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-03-08 18:35:53 -08:00
Tõnis Tiigi and GitHub
9ebfde4897
Merge pull request #2302 from crazy-max/multi-load-push
...
build: handle push/load shorthands for multi exporters
2024-03-05 09:09:30 -08:00
Tõnis Tiigi and GitHub
e4ee2ca1fd
Merge pull request #2308 from tonistiigi/vendor-buildkit-240305
...
vendor: update to buildkit v0.13.0
2024-03-05 09:09:07 -08:00
Tonis Tiigi
849456c198
vendor: update to buildkit v0.13.0
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-03-05 08:53:44 -08:00
Tõnis Tiigi and GitHub
e273a53c88
Merge pull request #2194 from LaurentGoderre/sbom-dsse
...
Add support for DSSE envelope for attestation in imagetools
2024-02-28 20:08:07 -08:00
Tonis Tiigi
dcdcce6c52
imagetools: supress warnings for dsse mediatypes
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-02-28 19:25:42 -08:00
Tõnis Tiigi and GitHub
c5b4ce9e7b
Merge pull request #2292 from crazy-max/go-minor
...
pin to go 1.21
2024-02-28 14:26:28 -08:00
Tõnis Tiigi and GitHub
8f484f6ac1
Merge pull request #2290 from tonistiigi/multi-export
...
build: allow multiple exports if supported by buildkit
2024-02-28 14:20:21 -08:00
Tonis Tiigi
fcbe2803c8
build: allow multiple exports if supported by buildkit
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-02-28 13:16:15 -08:00
Tõnis Tiigi and GitHub
83c30c6c5a
Merge pull request #2291 from crazy-max/update-buildkit
...
vendor: github.com/moby/buildkit v0.13.0-rc3
2024-02-28 13:13:06 -08:00
Tõnis Tiigi and GitHub
8db86e4031
Merge pull request #2287 from iankingori/fix-dialer
...
remote: use winio DialPipeContext for named pipes
2024-02-28 13:12:29 -08:00
Tõnis Tiigi and GitHub
e705cafcd5
Merge pull request #2289 from tonistiigi/prompt-cancel
...
commands: handle ctrl-c on active prompt
2024-02-28 13:11:48 -08:00
Tonis Tiigi
ce9a486a0e
commands: handle ctrl-c on active prompt
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-02-27 17:35:27 -08:00
Tõnis Tiigi and GitHub
e5acb010c9
Merge pull request #2284 from crazy-max/update-uuid
...
vendor: update github.com/google/uuid to v1.6.0
2024-02-26 08:39:01 -08:00
Tõnis Tiigi and GitHub
5723ceefb6
Merge pull request #2281 from crazy-max/update-buildkit
...
vendor: github.com/moby/buildkit v0.13.0-rc2
2024-02-25 22:19:45 -08:00
Tõnis Tiigi and GitHub
af75d0bd7d
Merge pull request #2235 from jsternberg/build-context-transfer-metric
...
metrics: measure context transfers for local source operations
2024-02-23 13:25:58 -08:00
Tõnis Tiigi and GitHub
fd11d93381
Merge pull request #2275 from crazy-max/buildkitd-flags-network-mode
...
driver: docs to set buildkitd network mode and add tests
2024-02-23 13:20:20 -08:00
Tõnis Tiigi and GitHub
d8e9c7f5b5
Merge pull request #2268 from crazy-max/dirver-align-flags
...
driver: make buildkitd "config" and "flags" names consistent
2024-02-22 13:50:24 -08:00
Tõnis Tiigi and GitHub
daaa8f2482
Merge pull request #2242 from crazy-max/bake-ulimits-shmsize
...
bake: ulimits and shm-size support
2024-02-21 16:30:27 -08:00
Tõnis Tiigi and GitHub
2eccaadce5
Merge pull request #2258 from jsternberg/docker-otel-non-experimental
...
metricutil: remove BUILDX_EXPERIMENTAL from internal docker reporting
2024-02-21 11:45:23 -08:00
Tõnis Tiigi and GitHub
aa4317bfce
Merge pull request #2267 from crazy-max/update-buildkit
...
vendor: github.com/moby/buildkit db304eb93126 (v0.13.0-dev)
2024-02-21 10:22:14 -08:00
Tonis Tiigi
698eb840a3
bake: avoid evaluating parent targets before child LLB loaded
...
Because of the way buildkit cache works if you have request
with external cache, if some vertices from the request have
already been evaluated and are available in the shared graph
BuildKit will not load cache keys from external source for such
vertices. This may mean that children of such vertices will
not load cache because there isn't a cache path through the parent.
To work around it, wait before child definition is loaded before
evaluating the parent.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-02-20 19:52:17 -08:00
Tõnis Tiigi and GitHub
c9d1c41d20
Merge pull request #2225 from jsternberg/command-duration-metric
...
metrics: add build command duration metric
2024-02-14 15:38:41 -08:00
Tõnis Tiigi and GitHub
481384b185
Merge pull request #2112 from cpuguy83/dialstdio
...
Add dial-stdio command
2024-02-09 17:13:46 -08:00
Tõnis Tiigi and GitHub
67d9385ce0
Merge pull request #2252 from ndeloof/rawjson
...
don't print build details when progress is rawjson
2024-02-09 16:40:50 -08:00
Tõnis Tiigi and GitHub
8babd5a147
Merge pull request #2215 from thaJeztah/bump_cobra_1.8
...
vendor: github.com/spf13/cobra v1.8.0
2024-01-30 17:57:41 -08:00
Tõnis Tiigi and GitHub
cb856682e9
Merge pull request #2224 from jsternberg/otelsdk-package
...
otel: include service instance id attribute to resource and move to metricutil package
2024-01-30 14:45:24 -08:00