opentofu/internal
Martin Atkins 4e6e0bc47b core: Fix test flake in TestContext2Apply_stop
This test was previously not taking into account the fact that the
"Stopping" hook gets sent in the goroutine that calls ctx.Stop, whereas
all of the others get called from inside ctx.Apply, and so there are no
ordering guarantees for that event in relation to the others.

We now handle the stopping event as a special case that is allowed to
appear anywhere in the sequence as long as it appears. The other events
are still strongly ordered because their ordering is important for
correctness of Terraform Core's own behavior.

As some extra insurance we also now check whether the provider's
ApplyResourceChange and Stop functions both ran and reached a suitable
point of execution related to the stop request, which help to ensure not
only that something called Stop but that Terraform Core correctly
interacted with the provider to handle the stop.
2023-03-15 13:44:33 -07:00
..
addrs structured run output: impose canonical ordering on jsonstate and jsonplan packages (#32649) 2023-02-13 15:40:17 +01:00
backend return early from opPlan when the plan is nil 2023-03-10 09:34:47 -05:00
builtin allow terraform_data to import 2023-02-14 09:37:21 -05:00
checks initwd: Switch from earlyconfig to configs 2023-03-06 09:14:28 -05:00
cloud Remove failing DNS query in cloud tests 2023-03-06 09:32:03 -05:00
command Merge pull request #32846 from hashicorp/fix-32793 2023-03-14 14:58:47 -04:00
communicator fix typo in upload size check 2022-11-11 14:25:34 -05:00
configs Add support for scoped resources (#32732) 2023-03-10 11:11:10 +01:00
copy test: use T.TempDir to create temporary test directory (#30803) 2022-04-08 17:34:16 +01:00
dag Clarify some comments in internal/dag 2022-10-06 15:10:33 -07:00
depsfile Ignore existing package hashes for providers lock command (#31389) 2022-07-20 13:27:24 +01:00
didyoumean didyoumean: move from "helper" to "internal" 2020-10-02 13:35:07 -07:00
e2e fix: pre allocate for composite literal 2022-11-22 02:20:54 +09:00
experiments build: Use Go 1.19 2022-08-22 10:59:12 -07:00
getmodules add XTerraformGetLimit to prevent redirect loops 2022-06-01 12:46:22 -04:00
getproviders build: Use Go 1.19 2022-08-22 10:59:12 -07:00
grpcwrap s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
helper/slowmessage remove wrapped streams and readline 2021-10-28 11:51:39 -04:00
httpclient backend/azurerm: removing ADAL support 2022-05-18 16:56:10 +02:00
initwd initwd: Add fake range for fake root module 2023-03-06 14:35:06 -05:00
instances InstancesForModule should not panic 2021-12-17 13:31:41 -05:00
ipaddr build: Use Go 1.19 2022-08-22 10:59:12 -07:00
lang Add support for scoped resources (#32732) 2023-03-10 11:11:10 +01:00
legacy Remove redundant CheckCoreVersionRequirements 2023-03-06 09:14:28 -05:00
logging cleanup panic output 2021-12-17 11:57:52 -05:00
modsdir sort modules.json for stable order (#32618) 2023-02-13 18:26:16 +01:00
moduledeps Move plugin/ and plugin6/ to internal/plugin{,6}/ 2021-05-17 14:09:07 -07:00
moduletest fixup broken test fixtures 2022-07-06 13:47:35 -04:00
plans remove unused actionforchange (#32759) 2023-03-01 14:15:26 +00:00
plugin s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
plugin6 fix: pre allocate for composite literal 2022-11-22 02:20:54 +09:00
provider-simple s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
provider-simple-v6 s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
provider-terraform/main Move plugin/ and plugin6/ to internal/plugin{,6}/ 2021-05-17 14:09:07 -07:00
providercache cliconfig: Allow forcing use of the plugin cache despite the lock file 2023-01-25 08:23:01 -08:00
providers s/Capabilities/ServerCapabilities/ 2022-07-06 13:47:35 -04:00
provisioner-local-exec/main Move plugin/ and plugin6/ to internal/plugin{,6}/ 2021-05-17 14:09:07 -07:00
provisioners Move configs/ to internal/configs/ 2021-05-17 14:09:07 -07:00
refactoring initwd: Switch from earlyconfig to configs 2023-03-06 09:14:28 -05:00
registry revert "run goimports" 2022-08-01 16:26:26 -05:00
repl Unify all sensitive value plan output as "(sensitive value)" 2022-10-24 12:50:46 -06:00
replacefile Upgrade to Go 1.17 2021-08-17 15:20:05 -07:00
states Update internal/states/remote/state.go 2023-02-07 17:35:56 -05:00
terminal remove the use of panicwrap 2021-10-28 11:51:39 -04:00
terraform core: Fix test flake in TestContext2Apply_stop 2023-03-15 13:44:33 -07:00
tfdiags build: Use Go 1.19 2022-08-22 10:59:12 -07:00
tfplugin5 go get cloud.google.com/go/storage@v1.28.0 (#32203) 2022-11-21 13:14:55 +00:00
tfplugin6 go get cloud.google.com/go/storage@v1.28.0 (#32203) 2022-11-21 13:14:55 +00:00