packer-cn/packer
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
* I had to contextualise Communicator.Start and RemoteCmd.StartWithUi
NOTE: Communicator.Start starts a RemoteCmd but RemoteCmd.StartWithUi will run the cmd and wait for a return, so I renamed StartWithUi to RunWithUi so that the intent is clearer.
Ideally in the future RunWithUi will be named back to StartWithUi and the exit status or wait funcs of the command will allow to wait for a return. If you do so please read carrefully https://golang.org/pkg/os/exec/#Cmd.Stdout to avoid a deadlock
* cmd.ExitStatus to cmd.ExitStatus() is now blocking to avoid race conditions
* also had to simplify StartWithUi
2019-04-08 20:09:21 +02:00
..
plugin Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
rpc allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
test-fixtures add tests fixtures 2019-03-13 10:49:13 -07:00
tmp clarify comments 2019-01-09 16:30:43 +01:00
artifact.go Expand Artifact API to expose build state 2014-09-22 11:15:47 +01:00
artifact_mock.go Add to vagrant post-processor support for Azure 2018-08-08 10:04:28 -05:00
artifact_test.go Expand Artifact API to expose build state 2014-09-22 11:15:47 +01:00
build.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
build_test.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
builder.go change hooks to be passed a context for cancellation 2019-04-03 15:55:54 +02:00
builder_mock.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
builder_test.go packer: builder prepare can return warnings 2013-11-02 22:31:12 -05:00
cache.go I use Dir instead of Base for mkdirall call 2019-03-28 13:17:15 -07:00
cache_test.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
communicator.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
communicator_mock.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
communicator_mock_test.go packer: Add UploadDir to the Communicator interface 2013-08-25 20:30:56 -07:00
communicator_test.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
config_file.go Merge branch 'master' into pr/6950 2019-01-09 10:11:18 +01:00
config_file_test.go Added tests for packer.ExpandUser in packer/config_file_test.go. 2018-12-04 16:54:49 -06:00
config_file_unix.go make code of homeDir, configFile & configDir not os specific anymore 2018-11-30 15:47:43 +01:00
config_file_windows.go make code of homeDir, configFile & configDir not os specific anymore 2018-11-30 15:47:43 +01:00
core.go remove unreachable code 2019-03-14 10:05:10 -07:00
core_test.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
hook.go allow a provisioner to timeout 2019-04-08 20:09:21 +02:00
hook_mock.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
hook_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
logs.go replace scrubconfig with packer.LogSecretFilter.Set 2018-08-20 15:35:55 -07:00
multi_error.go WIP 2018-10-26 16:59:20 -07:00
multi_error_test.go packer: no more asserts lib 2013-10-16 21:09:27 -10:00
packer_test.go packer: Core, and template validate 2015-05-23 14:48:07 -07:00
post_processor.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
post_processor_mock.go Merge remote-tracking branch 'origin/master' into context_provisioner 2019-04-08 20:09:01 +02:00
progressbar.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
progressbar_test.go Use the hashicorp/go-getter to download files 2019-03-13 12:11:58 +01:00
provisioner.go add a 5 seconds timeout to provisioner hook 2019-04-08 20:09:21 +02:00
provisioner_mock.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
provisioner_test.go [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method 2019-04-03 15:55:55 +02:00
telemetry.go Remove telemetry error reporting message. 2018-02-20 10:54:20 -08:00
telemetry_test.go add config key reporting 2017-11-14 16:30:44 -08:00
testing.go packer: remove Ui/Cache from CoreConfig 2015-05-27 20:09:52 -07:00
tty.go Close tty on exit (#7411) 2019-03-15 11:10:30 +01:00
ui.go make sure we filter the ui as well as the logs 2019-04-03 10:43:41 -07:00
ui_test.go Close tty on exit (#7411) 2019-03-15 11:10:30 +01:00