Robert Estelle
6ff0868457
http: Response refers to requested ETag on 304, not 200
...
Otherwise a 200 response without an ETag could be incorrectly associated
to previous content in the following scenario:
* The remote server had in the past responded with an ETag for this
resource, which was cached.
- (Otherwise, onlyETag would be empty)
* That was the only ETag cached for this resource.
- (Otherwise, onlyETag would be empty)
* The remote server then stopped supporting ETag/If-None-Match for this
resource at all.
- (Otherwise, it would respond with a 304 or a 200+ETag)
Signed-off-by: Robert Estelle <robertestelle@gmail.com>
2019-09-04 20:25:53 -04:00
Robert Estelle
c63c6f9683
http: Handle missing but unambiguous ETags in response
...
If a single ETag is requested in `If-None-Match`, some servers do not
include that (unambiguous) ETag header in the response.
For detailed description, see:
https://github.com/moby/buildkit/issues/905#issuecomment-528058142
Signed-off-by: Robert Estelle <robertestelle@gmail.com>
2019-09-04 18:10:56 -04:00
Tõnis Tiigi
9a490d39cc
Merge pull request #1156 from tonistiigi/multiple-cache-importers
...
llbsolver: fix error on multiple cache importers
2019-08-30 10:01:50 -07:00
Andy Caldwell
17769771d4
Rename tests to be called tests
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-30 16:44:28 +01:00
Tibor Vass
dd6731b000
Merge pull request #1157 from tonistiigi/travis-logs
...
travis: print main buildkit logs on job failure
2019-08-29 18:53:02 -07:00
Tonis Tiigi
6ff2cd9922
travis: print main buildkit logs on job failure
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-29 15:29:26 -07:00
Tonis Tiigi
1d7e7a6b51
llbsolver: fix error on multiple cache importers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-29 15:21:17 -07:00
Andy Caldwell
d637340066
Fix up guard and add extra negative test
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-29 18:29:47 +01:00
Tõnis Tiigi
6cb8555622
Merge pull request #1144 from tiborvass/fsutil-sockets
...
Fix socket handling
2019-08-28 17:43:48 -07:00
Akihiro Suda
96d13d600f
Merge pull request #1150 from tonistiigi/ssh-release
...
session: release forwarded ssh socket connection per connection
2019-08-28 17:06:37 +09:00
Tõnis Tiigi
61e246a001
Merge pull request #1148 from SamWhited/testing_backend
...
Factor only required methods out of Sandbox
2019-08-27 15:29:11 -07:00
Sam Whited
e90be385b4
all: factor only required methods out of Sandbox
...
Signed-off-by: Sam Whited <sam@samwhited.com>
2019-08-27 16:54:20 -05:00
Tibor Vass
aa3ad5f985
vendor fsutil to 3d2716dd0a4d to fix sockets handling
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-27 20:53:37 +00:00
Tibor Vass
bd8f49ed58
dockerfile: add TestCopySocket test + vendor needed continuity fix
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-27 20:53:37 +00:00
Tibor Vass
77ca4bce2e
client: add exporter test for sockets
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-08-27 20:53:37 +00:00
Tõnis Tiigi
df7e93a159
Merge pull request #1147 from tonistiigi/cross-repo-push
...
add cross-repo push support
2019-08-27 10:48:43 -07:00
Andy Caldwell
808ad65222
Add guard for CNI tests
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-27 14:43:22 +01:00
Tonis Tiigi
bc3a1eefdd
session: release forwarded ssh socket connection per connection
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-26 15:34:55 -07:00
Tõnis Tiigi
6885427759
Merge pull request #1149 from SamWhited/internal_test_conf
...
util/testutil/integration: s/TestConf/testConf/
2019-08-26 09:01:31 -07:00
Sam Whited
93687ae5bf
util/testutil/integration: s/TestConf/testConf/
...
Signed-off-by: Sam Whited <sam@samwhited.com>
2019-08-26 07:56:33 -05:00
Tonis Tiigi
481d39c176
add cross-repo push support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-22 17:25:13 -07:00
Akihiro Suda
763379fb2c
Merge pull request #1145 from tonistiigi/update-containerd
...
vendor: update containerd to v1.3.0-beta.2
2019-08-22 15:54:41 +09:00
Tonis Tiigi
fdce39046a
vendor: update containerd to v1.3.0-beta.2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-21 20:22:55 -07:00
Andy Caldwell
b939973129
Remove note about entitlement on dockerd
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-21 22:03:01 +01:00
Andy Caldwell
113e3133cd
Don't set network/security mode on stable dockerfile
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-21 13:08:22 +01:00
Tibor Vass
458661a4ca
Merge pull request #1107 from tonistiigi/containerd-update
...
vendor: update containerd to 1.3.0-beta
2019-08-20 17:43:25 -07:00
Tonis Tiigi
a859c9df82
hack: enabled progressflag for ci_first_pass
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:26:48 -07:00
Tonis Tiigi
ac8fd77049
client: update tests to new deps
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:03:05 -07:00
Michael Crosby
9290c15ffc
Pin containerd runtime to v1
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2019-08-20 17:03:04 -07:00
Tonis Tiigi
5d617c557d
vendor: update containerd to f0821348
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:03:04 -07:00
Tonis Tiigi
e86374886a
util: check for localhost for plainhttp
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:03:04 -07:00
Tonis Tiigi
be3635e8cb
util: remove unused dockerexporter package
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:03:04 -07:00
Tonis Tiigi
b407790852
update containerd daemon to 1.2.7 and old to 1.1.7
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:02:43 -07:00
Tonis Tiigi
615347271d
vendor: update containerd to 1.3.0-beta.0
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-20 17:00:47 -07:00
Akihiro Suda
a545b2dd5b
Merge pull request #1120 from tonistiigi/ci-caching
...
Use buildkit cache and parallelization in CI
2019-08-21 08:21:11 +09:00
Andy Caldwell
2ccafc16b7
Update documentation
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-20 19:23:07 +01:00
Andy Caldwell
cc1b7b56c7
Add test that global network is applied if otherwise unspecified
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-20 14:57:31 +01:00
Tibor Vass
588c73e1e4
Merge pull request #1140 from tonistiigi/fix-symlink-parent
...
contenthash: fix symlinks with unscanned parents
2019-08-19 13:56:08 -07:00
Akihiro Suda
5559a45319
Merge pull request #1139 from tonistiigi/oomscoreadj
...
runcexecutor: avoid setting oomscoreadj from main process
2019-08-19 15:17:59 +09:00
Akihiro Suda
c16bf8f83f
Merge pull request #1137 from tonistiigi/double-unmount
...
fix possible double release on mountable
2019-08-19 15:11:22 +09:00
Andy Caldwell
588c07f9b4
Set RunOptions rather than modifying solve state
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-18 21:45:47 +01:00
Tonis Tiigi
2cea1107d6
travis: add ci caching
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-17 09:13:06 -07:00
Andy Caldwell
5ea3a003f7
Implement support for RUN --network=none|default|host
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com>
2019-08-17 01:44:46 +01:00
Tonis Tiigi
3504fae6f2
contenthash: fix symlinks with unscanned parents
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-16 15:03:14 -07:00
Tonis Tiigi
b8284301fd
integration: detect double released and leaked mountpoints
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-16 08:03:26 -07:00
Tonis Tiigi
a0dead0809
fix possible double release on mountable
...
Refactor the interface to avoid such issues in the future.
BuildKit own mounts are stateless and not affected but
a different mountable implementation could get confused.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-16 08:03:16 -07:00
Tonis Tiigi
25ebc26d21
runcexecutor: avoid setting oomscoreadj from main process
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-15 23:16:02 -07:00
Tõnis Tiigi
be0d75f074
Merge pull request #1133 from tonistiigi/concurrent-write
...
remotecache: fix concurrent write
2019-08-14 17:41:23 -07:00
Tonis Tiigi
0d45d77756
remotecache: fix concurrent write
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-14 17:02:16 -07:00
Tõnis Tiigi
48f4a9b00e
Merge pull request #1132 from tonistiigi/keep-git
...
git: updates for keep git dir
2019-08-14 14:10:52 -07:00