1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/integration-cli
Josh Hawn 0e10507a1c [builder] Make build cache ignore mtime
Build cache uses pgk/tarsum to get a digest of content which is
ADD'd or COPY'd during a build. The builder has always used v0 of
the tarsum algorithm which includes mtimes however since the whole
file is hashed anyway, the mtime doesn't really provide any extra
information about whether the file has changed and many version
control tools like Git strip mtime from files when they are cloned.

This patch updates the build subsystem to use v1 of Tarsum which
explicitly ignores mtime when calculating a digest. Now ADD and
COPY will result in a cache hit if only the mtime and not the file
contents have changed.

NOTE: Tarsum is NOT a meant to be a cryptographically secure hash
function. It is a best-effort approach to determining if two sets of
filesystem content are different.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2015-06-08 13:54:47 -07:00
..
fixtures/https Move https integration tests as unit tests under client 2015-04-23 15:40:46 +00:00
check_test.go Implement daemon suite for integration-cli 2015-04-27 15:48:29 -07:00
docker_api_attach_test.go Remove c.Fatal from goroutine in TestGetContainersAttachWebsocket 2015-04-27 13:56:55 +02:00
docker_api_containers_test.go Avoid nil pointer dereference while creating a container with an empty Config 2015-06-06 20:07:32 +02:00
docker_api_exec_resize_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_api_exec_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_api_images_test.go Remove API codepaths < 1.12 2015-05-12 20:09:49 +02:00
docker_api_info_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_api_inspect_test.go Remove API codepaths < 1.12 2015-05-12 20:09:49 +02:00
docker_api_logs_test.go Delete "defer deleteAllContainers()" from integration-cli 2015-05-22 17:01:52 +08:00
docker_api_resize_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_api_stats_test.go Rename test file to have _test postfix 2015-06-05 13:49:58 -07:00
docker_api_test.go Make version check return 400 instead of 404 2015-05-19 11:21:05 -07:00
docker_api_version_test.go Fixing statusCode checks for sockRequest 2015-04-23 15:35:56 -07:00
docker_cli_attach_test.go c.Fatal won't fail and exit test inside a goroutine, errors should be handled outside with a channel 2015-04-29 17:02:22 +02:00
docker_cli_attach_unix_test.go c.Fatal won't fail and exit test inside a goroutine, errors should be handled outside with a channel 2015-04-29 17:02:22 +02:00
docker_cli_build_test.go [builder] Make build cache ignore mtime 2015-06-08 13:54:47 -07:00
docker_cli_build_unix_test.go Do not require cgroups capabilities on windows to run the integration tests. 2015-05-29 11:42:40 -07:00
docker_cli_by_digest_test.go Prevent fallback to v1 registry for digest pulls 2015-05-18 08:26:26 +03:00
docker_cli_commit_test.go Use inspectField to simplify code 2015-05-18 10:06:13 +08:00
docker_cli_config_test.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
docker_cli_cp_test.go Merge pull request #13493 from jlhawn/volume_unmount_fix 2015-05-27 08:44:11 -07:00
docker_cli_create_test.go Container don't inherit from image labels 2015-06-05 11:11:22 -07:00
docker_cli_daemon_test.go Restore --default-gateway{,-v6} daemon options. 2015-06-05 06:21:22 +00:00
docker_cli_diff_test.go fixed TestDiffEnsureDockerinitFilesAreIgnored is too long #12672 2015-04-27 13:24:15 -07:00
docker_cli_events_test.go Merge pull request #13165 from ahmetalpbalkan/durations 2015-06-03 22:14:42 +02:00
docker_cli_events_unix_test.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
docker_cli_exec_test.go Revert "Add docker exec run a command in privileged mode" 2015-05-26 14:12:16 -07:00
docker_cli_exec_unix_test.go reuse same code for setting pipes in run/exec 2015-04-23 21:54:21 +00:00
docker_cli_experimental_test.go fix experimental version and release script 2015-05-29 10:00:22 -07:00
docker_cli_export_import_test.go Clean tests from not needed inspect call 2015-05-16 18:12:54 +02:00
docker_cli_help_test.go Carry #11858 2015-05-23 09:14:18 -07:00
docker_cli_history_test.go Implement teardown removeAllImages 2015-04-24 10:37:21 -07:00
docker_cli_images_test.go Implement teardown removeAllImages 2015-04-24 10:37:21 -07:00
docker_cli_import_test.go Fix a regression in docker import on error from URL 2015-05-14 06:56:52 -07:00
docker_cli_info_test.go Add suffix to experimental builds version 2015-05-21 16:27:42 -07:00
docker_cli_inspect_test.go Merge pull request #13282 from duglin/RemoveBash 2015-05-18 13:06:21 -07:00
docker_cli_kill_test.go Fix wrong kill signal parsing 2015-06-02 18:01:19 +02:00
docker_cli_links_test.go Docker integration with libnetwork 2015-05-19 22:40:19 +00:00
docker_cli_login_test.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
docker_cli_logs_test.go Fix goroutine leak on logs -f with no output 2015-06-04 13:56:40 -07:00
docker_cli_nat_test.go Fix nat integration tests 2015-06-02 18:21:16 -07:00
docker_cli_pause_test.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
docker_cli_port_test.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
docker_cli_proxy_test.go Implement daemon suite for integration-cli 2015-04-27 15:48:29 -07:00
docker_cli_ps_test.go Merge pull request #12838 from fntlnz/test-cmd 2015-06-02 14:12:22 -07:00
docker_cli_pull_test.go Implement DockerRegistrySuite in integration-cli 2015-04-24 14:17:00 -07:00
docker_cli_push_test.go Finally remove our copy of "archive/tar" now that Go 1.4 is the minimum! 2015-05-01 16:01:10 -06:00
docker_cli_rename_test.go Fix TestRenameStoppedContainer race 2015-04-23 16:11:46 +02:00
docker_cli_restart_test.go Use inspectField to simplify code 2015-05-18 10:06:13 +08:00
docker_cli_rm_test.go a few cleanups for client output 2015-05-05 15:59:17 +08:00
docker_cli_rmi_test.go fix bug with rmi multiple tag 2015-05-29 14:04:06 -07:00
docker_cli_run_test.go fix lxc build 2015-06-05 09:50:30 -07:00
docker_cli_run_unix_test.go Do not require cgroups capabilities on windows to run the integration tests. 2015-05-29 11:42:40 -07:00
docker_cli_save_load_test.go Clean tests from not needed inspect call 2015-05-16 18:12:54 +02:00
docker_cli_save_load_unix_test.go Fix kr/pty import path 2015-06-04 09:02:14 -07:00
docker_cli_search_test.go Verify the no-trunc option for the search operation. 2015-05-05 08:51:13 +08:00
docker_cli_start_test.go Volumes refactor and external plugin implementation. 2015-05-21 20:34:17 -07:00
docker_cli_start_volume_driver_unix_test.go Propagate unmount events to the external volume drivers. 2015-05-22 16:43:34 -07:00
docker_cli_stats_test.go Add docker stats --no-stream show cpu usage 2015-05-31 01:25:51 +08:00
docker_cli_tag_test.go Use inspectField to simplify code 2015-05-18 10:06:13 +08:00
docker_cli_top_test.go Removed deleteContainer calls 2015-05-20 08:38:23 +02:00
docker_cli_version_test.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
docker_cli_wait_test.go Use inspectField to simplify code 2015-05-18 10:06:13 +08:00
docker_test_vars.go Volumes refactor and external plugin implementation. 2015-05-21 20:34:17 -07:00
docker_test_vars_cli.go integration-cli: add mechanism to skip tests 2015-02-17 00:43:41 -08:00
docker_test_vars_daemon.go integration-cli: add mechanism to skip tests 2015-02-17 00:43:41 -08:00
docker_utils.go Made doc consistent with code 2015-06-07 22:32:29 +02:00
registry.go Use suite for integration-cli 2015-04-21 10:28:52 -07:00
requirements.go Do not require cgroups capabilities on windows to run the integration tests. 2015-05-29 11:42:40 -07:00
requirements_unix.go Do not require cgroups capabilities on windows to run the integration tests. 2015-05-29 11:42:40 -07:00
test_vars_exec.go integration-cli: add test requirement ExecSupport 2015-02-20 23:24:30 -08:00
test_vars_noexec.go integration-cli: add test requirement ExecSupport 2015-02-20 23:24:30 -08:00
test_vars_unix.go pkg/archive: adjust chmod bits on windows 2015-03-04 14:10:37 -08:00
test_vars_windows.go Change windows default permissions to 755 not 711, read access for all poses little security risk and prevents breaking existing Dockerfiles 2015-03-20 21:54:33 -07:00
utils.go Merge pull request #13499 from cpuguy83/fix_stats_unsubscribe 2015-05-27 11:10:36 -04:00